11.08.2009, 21:05
I've made a code for you, just put it in some timer and thats it.
pawn Code:
new WeaponData[13][2], str[128];
for(new i = 0; i < MAX_PLAYERS; i++) {
for(new a = 0; a < 13; a++) {
GetPlayerWeaponData(i, a, WeaponData[a][0], WeaponData[a][1]);
if(WeaponData[a][0] == 39 || WeaponData[a][0] == 38 || WeaponData[a][0] == 38 || WeaponData[a][0] == 37 || WeaponData[a][0] == 36 || WeaponData[a][0] == 35 || WeaponData[a][0] == 41 || WeaponData[a][0] == 42 || WeaponData[a][0] == 43 || WeaponData[a][0] == 44 || WeaponData[a][0] == 45){
format(str,128,"* %s has been banned from the server: Weaponhacks",PlayerName(i));
SendClientMessageToALL(COLOR, str);
Ban(i);
}
}
}
Code:
stock PlayerName(playerid) {
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
return Name;
}

