Beiträge von Phantom.

    Funk net :/



    forward AntiMonyHack();
    public AntiMonyHack()
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(GetPlayerMoney(i) != playerCash[i])
    {
    if(GetPVarInt(i,"Adminlevel")== 0)
    {
    new string[128];
    format(string,sizeof(string),"{FF0000}[ANTI-CHEAT]{FFFFFF} {B96613}%s{FFFFFF} wurde vom Server Kick, Grund : {B96613}Money Hack{FFFFFF}",SpielerName(i));
    SendClientMessageToAll(Rot,string);
    Kick(i);
    return 1;
    }
    }
    }
    return 1;
    }

    ich werde nicht gekickt
    forward AntiMonyHack();
    public AntiMonyHack()
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(GetPlayerMoney(i) != playerCash)
    {
    if(GetPVarInt(i,"Adminlevel")== 0)
    {
    new string[128];
    format(string,sizeof(string),"{FF0000}[ANTI-CHEAT]{FFFFFF} {B96613}%s{FFFFFF} wurde vom Server Kick, Grund : {B96613}Money Hack{FFFFFF}",SpielerName(i));
    SendClientMessageToAll(Rot,string);
    Kick(i);
    return 1;
    }
    }
    }
    return 1;
    }

    Liebe User
    ich habe mir Ein Anti Money Hack gescriptet aber ich bekommen immer nur 1 Fehler


    new playerCash[MAX_PLAYERS];




    forward AntiMonyHack();
    public AntiMonyHack()
    {
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(GetPlayerMoney(i) != playerCash)
    {
    if(GetPVarInt(i,"Adminlevel")== 0)
    {
    new string[128];
    format(string,sizeof(string),"{FF0000}[ANTI-CHEAT]{FFFFFF} {B96613}%s{FFFFFF} wurde vom Server Kick, Grund : {B96613}Money Hack{FFFFFF}",SpielerName(i));
    SendClientMessageToAll(Rot,string);
    Kick(i);
    return 1;
    }
    }




    C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Test.pwn(1705) : error 030: compound statement not closed at the end of file (started at line 1694)
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.

    Liebe User ich habe mir grade ein ANTICHEAT
    gescriptet aber immer wen ich mir eine Weste cheat werde ich nicht gekickt



    forward AntiArmourHack();
    public AntiArmourHack()
    {
    for (new i = 0; i < MAX_PLAYERS; i++)
    {
    new Float:armour;
    GetPlayerArmour(i,armour);
    if(armour > 100)
    {
    if(GetPVarInt(i,"Adminlevel")== 0)
    {
    new string[128];
    format(string,sizeof(string),"{FF0000}[ANTI-CHEAT]{FFFFFF} {B96613}%s{FFFFFF} wurde vom Server Kick, Grund : {B96613}Armour Hack{FFFFFF}",SpielerName(i));
    SendClientMessageToAll(Rot,string);
    Kick(i);
    return 1;
    }
    }
    }
    return 1;
    }

    //EDIT



    C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Test.pwn(305) : error 032: array index out of bounds (variable "Name")
    C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Test.pwn(305) : warning 215: expression has no effect
    C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Test.pwn(306) : error 017: undefined symbol "Geld"
    C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Test.pwn(307) : error 017: undefined symbol "Score"
    C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Test.pwn(308) : error 017: undefined symbol "Kills"
    C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Test.pwn(309) : error 017: undefined symbol "Deaths"
    C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Test.pwn(310) : error 017: undefined symbol "Fraktion"
    C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Test.pwn(311) : error 017: undefined symbol "AdminLevel"
    C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Test.pwn(313) : error 017: undefined symbol "Geld"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    8 Errors.

    //Define
    #define DIALOG_STATS 6


    //Befehl
    if (strcmp("/stats", cmdtext, true, 10) == 0)
    {
    new string[128],rangname[20];
    switch(GetPVarInt(playerid,"Fraktion"))
    {
    case 0:{rangname="Zivilist";}
    case 1:{rangname="Terrorist";}
    }
    Name[MAX_PLAYER_NAME];
    Geld = GetPlayerMoney(playerid);
    Score = GetPlayerScore(playerid);
    Kills = GetPVarInt(playerid,"Kills");
    Deaths = GetPVarInt(playerid,"Deaths");
    Fraktion = GetPVarInt(playerid,"Fraktion");
    AdminLevel = GetPVarInt(playerid,"Adminlevel");
    GetPlayerName(playerid,Name,sizeof Name);
    format(string, sizeof(string), "{FFFFFF}Stats von {FF0000}%s\n{FFFFFF}\nName: %s\nGeld: %d\nScore: %d\nKills: %i\nDeaths: %i\nFraktion: %s\nAdminLevel: [%d]", Name, Name, Geld, Score, Kills, Deaths, Fraktion, AdminLevel);
    ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"{FFFFFF}Stats",string,"OK","");
    return 1;
    }



    //Fehler


    C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Test.pwn(304) : error 017: undefined symbol "Name"
    C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Test.pwn(304) : warning 215: expression has no effect
    C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Test.pwn(304) : error 001: expected token: ";", but found "]"
    C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Test.pwn(304) : error 029: invalid expression, assumed zero
    C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Test.pwn(304) : fatal error 107: too many error messages on one line


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    4 Errors.

    Liebe User
    ich will wen es Explodiert das der Auto sich Automatisch Aus den Server Remove Wird



    if(strcmp("/rcbomb",cmdtext, true, 10) == 0)
    {
    new Float:pXX, Float:pYY, Float:pZZ, Float:pAA;
    GetPlayerPos(playerid,pXX,pYY,pZZ);
    GetPlayerFacingAngle(playerid,pAA);
    new pVEH = CreateVehicle(441,pXX,pYY+5,pZZ,pAA,0,1,60);
    PutPlayerInVehicle(playerid,pVEH,0);
    return 1;
    }



    if(newkeys & KEY_FIRE)
    {
    new Float:x,Float:y,Float:z;
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 441)
    GetPlayerPos(playerid,x,y,z);
    CreateExplosion(x,y,z,10,2000);
    CreateExplosion(x+3,y+3,z,10,2000);
    CreateExplosion(x+5,y+5,z,10,2000);
    return 1;
    }

    Morgen Liebe User
    ich habe ein Problem ich wollte eine Taste mehrmals benutzen für ein Waffen lager wie mache ich das



    if(newkeys & KEY_SPRINT)
    {
    if(IsPlayerInRangeOfPoint(playerid,3,-354.4283,1541.3865,75.5625))
    ShowPlayerDialog(playerid,DIALOG_RCMENU,DIALOG_STYLE_LIST,"{FFFFFF}RC Menu","{C29B23}RC Bandit {FF0000}[Explode]\n{C29B23}RC Baron {FF0000}[Shooting]","Ok","Nein");
    return 1;
    }

    Also das ist meiner :D
    ocmd:eject(playerid,params[])
    {
    if(!IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,Rot,"{FF0000}[Fehler]{FFFFFF} Du bist in keinem Auto");
    new pID, string[128];
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    if(sscanf(params,"u",pID))return SendClientMessage(playerid,Blau,"{FF0000}[Hilfe]{FFFFFF}: Benutze /eject [ID]");
    if(!IsPlayerInAnyVehicle(pID))return SendClientMessage(playerid,Rot,"{FF0000}[Fehler]{FFFFFF} Dieser Spieler ist nicht in deinem Auto!");
    format(string,sizeof(string),"{FF0000}[INFO]{FFFFFF} {B96613}%s{FFFFFF} hat dich rausgeschmissen");
    RemovePlayerFromVehicle(pID);
    return 1;
    }