12.08.2011, 13:15
(
Последний раз редактировалось JaTochNietDan; 12.08.2011 в 17:24.
Причина: Use the edit button.
)
Hello Everybody.
I Make Anti Guns System Like This And Now I Need When Player Get Wrong Weapon Like Minigun Or Else
before player kicked from his remove weapons how to do this maybe someone can help ?
This Is My Anti Guns Code :
I added reset code in this script but its don't work ResetPlayerWeapons(playerid);
I Make Anti Guns System Like This And Now I Need When Player Get Wrong Weapon Like Minigun Or Else
before player kicked from his remove weapons how to do this maybe someone can help ?
This Is My Anti Guns Code :
Код:
new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid,Name,sizeof(Name)); new str[128]; new weaponid = GetPlayerWeapon(playerid); if(weaponid == 38 ) { format(str,sizeof(str),"%s: Kicked For Gun Hack!",Name); SendClientMessageToAll(RED,str); ResetPlayerWeapons(playerid); Kick(playerid); } if(weaponid == 9 ) { format(str,sizeof(str),"%s: Kicked For Gun Hack!",Name); SendClientMessageToAll(RED,str); ResetPlayerWeapons(playerid); Kick(playerid); } if(weaponid == 26 ) { format(str,sizeof(str),"%s: Kicked For Gun Hack!",Name); SendClientMessageToAll(RED,str); SetPlayerAmmo(playerid,26,0); Kick(playerid); } if(weaponid == 35 ) { format(str,sizeof(str),"%s: Kicked For Gun Hack!",Name); SendClientMessageToAll(RED,str); ResetPlayerWeapons(playerid); Kick(playerid); } if(weaponid == 36 ) { format(str,sizeof(str),"%s: Kicked For Gun Hack!",Name); SendClientMessageToAll(RED,str); ResetPlayerWeapons(playerid); Kick(playerid); } if(weaponid == 37 ) { format(str,sizeof(str),"%s: Kicked For Gun Hack!",Name); SendClientMessageToAll(RED,str); ResetPlayerWeapons(playerid); Kick(playerid); } if(weaponid == 16 ) { format(str,sizeof(str),"%s: Kicked For Gun Hack!",Name); SendClientMessageToAll(RED,str); ResetPlayerWeapons(playerid); Kick(playerid); } if(weaponid == 18 ) { format(str,sizeof(str),"%s: Kicked For Gun Hack!",Name); SendClientMessageToAll(RED,str); ResetPlayerWeapons(playerid); Kick(playerid); } if(weaponid == 39 ) { format(str,sizeof(str),"%s: Kicked For Gun Hack!",Name); SendClientMessageToAll(RED,str); ResetPlayerWeapons(playerid); Kick(playerid); } if(weaponid == 44 ) { format(str,sizeof(str),"%s: Kicked For Gun Hack!",Name); SendClientMessageToAll(RED,str); ResetPlayerWeapons(playerid); Kick(playerid); } if(weaponid == 45 ) { format(str,sizeof(str),"%s: Kicked For Gun Hack!",Name); SendClientMessageToAll(RED,str); ResetPlayerWeapons(playerid); Kick(playerid); } return 1; }