[AJUDA] Anti-Cheat
#7

Quote:
Originally Posted by Hardware
Посмотреть сообщение
Boa tarde.

Assim, eu fiz um anti-cheat. Sу que mesmo sendo admin eu nгo consigo pegar a arma proibida pelo anti-cheat.

Aqui estб code:

pawn Код:
if(GetPlayerWeapon(playerid) == WEAPON_ROCKETLAUNCHER) {
        new aname[MAX_PLAYER_NAME];
        new string[256];
        GetPlayerName(playerid, aname, sizeof(aname));{
        format (string, sizeof(string), "~ [NOOB] O NOOB {FF0000}%s{FFFFFF} (%d){FF7171} usou arma proibida e foi banido.{FFFFFF}", aname,playerid);
        SendClientMessage(playerid,COLOR_WHITE,"*****************************************************************");
        SendClientMessage(playerid,COLOR_WHITE,"[NOOB] Vocк usou cheater e agora foi banido ._.");
        SendClientMessage(playerid,COLOR_WHITE,"*****************************************************************");
        Ban(playerid);
        return 1;
        }

        if(GetPlayerWeapon(playerid) == WEAPON_HEATSEEKER) {
        new aname[MAX_PLAYER_NAME];
        new string[256];
        GetPlayerName(playerid, aname, sizeof(aname));
        format (string, sizeof(string), "~ [NOOB] O NOOB {FF0000}%s{FFFFFF} (%d){FF7171} usou arma proibida e foi banido.{FFFFFF}", aname,playerid);
        SendClientMessage(playerid,COLOR_WHITE,"*****************************************************************");
        SendClientMessage(playerid,COLOR_WHITE,"[NOOB] Vocк usou cheater e agora foi banido ._.");
        SendClientMessage(playerid,COLOR_WHITE,"*****************************************************************");
        Ban(playerid);
        return 1;
        }
       
        if(GetPlayerWeapon(playerid) == WEAPON_FLAMETHROWER) {
        new aname[MAX_PLAYER_NAME];
        new string[256];
        GetPlayerName(playerid, aname, sizeof(aname));
        format (string, sizeof(string), "~ [NOOB] O NOOB {FF0000}%s{FFFFFF} (%d){FF7171} usou arma proibida e foi banido.{FFFFFF}", aname,playerid);
        SendClientMessage(playerid,COLOR_WHITE,"*****************************************************************");
        SendClientMessage(playerid,COLOR_WHITE,"[NOOB] Vocк usou cheater e agora foi banido ._.");
        SendClientMessage(playerid,COLOR_WHITE,"*****************************************************************");
        Ban(playerid);
        return 1;
        }
       
        if(GetPlayerWeapon(playerid) == WEAPON_MINIGUN) {
        new aname[MAX_PLAYER_NAME];
        new string[256];
        GetPlayerName(playerid, aname, sizeof(aname));
        format(string, sizeof(string), "~ [NOOB] O NOOB {FF0000}%s{FFFFFF} (%d){FF7171} usou arma proibida e foi banido.{FFFFFF}", aname,playerid);
        SendClientMessage(playerid,COLOR_WHITE,"******************************************************************");
        SendClientMessage(playerid,COLOR_WHITE,"[NOOB] Vocк usou cheater e agora foi banido ._.");
        SendClientMessage(playerid,COLOR_WHITE,"******************************************************************");
        Ban(playerid);
        return 0;
    }
        return 1;
}

Creio eu que tenha que usar um loop, sу que tentei de uma maneira que deu totalmente fail. UEHUHE

Ai decidir pedir a ajuda de vocкs. Obrigado pela atenзгo. ^^
Quem fez esse anti-cheater fui eu ._. Crйditos a mim nй Hard?
Reply


Messages In This Thread
[AJUDA] Anti-Cheat - by Hardware - 24.02.2011, 18:59
Re: [AJUDA] Anti-Cheat - by Hardware - 24.02.2011, 19:40
Re: [AJUDA] Anti-Cheat - by ManoLexuS - 24.02.2011, 19:41
Re: [AJUDA] Anti-Cheat - by Hardware - 24.02.2011, 19:47
Re: [AJUDA] Anti-Cheat - by Hardware - 24.02.2011, 19:55
Re: [AJUDA] Anti-Cheat - by zSuYaNw - 24.02.2011, 20:04
Re: [AJUDA] Anti-Cheat - by Wendell_. - 24.02.2011, 20:27
Re: [AJUDA] Anti-Cheat - by Hardware - 24.02.2011, 20:29
Re: [AJUDA] Anti-Cheat - by Wendell_. - 24.02.2011, 20:40
Re: [AJUDA] Anti-Cheat - by Hardware - 24.02.2011, 20:45

Forum Jump:


Users browsing this thread: 1 Guest(s)