10.08.2011, 10:39
ok when i do that:
it work me fine but GetPlayerWeaponData is more affective because it's get the all weapons that he have and what i did now the cheater will need to change to the weapon ge spawns....../=
Код:
public WeaponTimer() { new string[128], str1[60], str2[60], str3[60]; new username[MAX_PLAYER_NAME]; for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { format(str1,sizeof(str1),"wslot%d",GetWeaponSlot(GetPlayerWeapon(i))); format(str2,sizeof(str2),"weap%d",GetPlayerWeapon(i)); if(GetPVarInt(i,str1) != 1) { if(GetPVarInt(i,str1) != GetPlayerWeapon(i)) { GetPlayerName(i,username,sizeof(username)); format(string, 256, "AdmWarning: [%d]%s just try to spawn a weapon",i,username); ABroadCast(COLOR_LIGHTRED,string,1); Kick(i); } } } } }