02.12.2015, 22:21
Hello guys, i am trying to make somethink like: when one player aim at one Administrator, he will receive one Warning and change his weapon to fists.
I write this but does not work.
I write this but does not work.
Код:
if((newkeys & KEY_HANDBRAKE) && !(oldkeys & KEY_HANDBRAKE)) // Botгo RMB (foot) { new targetplayer = GetPlayerTargetPlayer(playerid); if(AdminTrabalhando[targetplayer] == true && targetplayer != INVALID_PLAYER_ID) { if(GetPlayerWeapon(playerid) > 0) { SetPlayerArmedWeapon(playerid, 0); GameTextForPlayer(playerid, "~r~admin", 2000, 0); } } return 1; }