11.08.2011, 18:58
i make code now it look like this :
Now I have 2 questions..
First question:
How to add this guns ids if player get that guns kick him to like with minigun.
This Is Unlegal Guns Ids :
Second question:
How to do when player kick from server remove him weapons.
If you can please help
Код:
public OnPlayerUpdate(playerid){ new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid,Name,sizeof(Name)); new str[128]; new weaponid = GetPlayerWeapon(playerid); if(weaponid == 38 ) { format(str,sizeof(str),"[Security]: %s Kicked For Guns Hack !",Name); SendClientMessageToAll(RED,str); ResetPlayerWeapons(playerid); Kick(playerid); } return 1; }
First question:
How to add this guns ids if player get that guns kick him to like with minigun.
This Is Unlegal Guns Ids :
Код:
9, 26, 35, 36, 37, 16, 18, 39, 44, 45.
How to do when player kick from server remove him weapons.
If you can please help