Anti Weapon hack
#3

pawn Code:
#include <a_samp>

public WeaponCheck() {
    for(new i = 0; i < MAX_PLAYERS; i++) { // Neater loop
        if(GetPlayerWeapon(i) == 38 && minigun[playerid] == 0) { // You need to use two equal operators.
            new
                pname[MAX_PLAYER_NAME], // You only need ~24 cells!
                string[91]; // You only need ~91 cells!

            GetPlayerName(i, pname, sizeof(pname)); // Get the name
            format(string, sizeof(string), "-Server- %s has been banned from this server (Reason: Minigun hack)", pname); // Format the string
            SendClientMessageToAll(COLOR_RED,string); // Message everyone
            Ban(i); // Ban that player
        }
    }
   
    return 1;
}
EDIT: Beaten to it by dice7.
Reply


Messages In This Thread
Anti Weapon hack - by aqu - 06.03.2011, 08:44
Re: Anti Weapon hack - by dice7 - 06.03.2011, 08:45
Re: Anti Weapon hack - by Calgon - 06.03.2011, 08:48

Forum Jump:


Users browsing this thread: 1 Guest(s)