[HELP] Anti Admin Aim
#1

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.

Код:
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;
}
Reply


Messages In This Thread
[HELP] Anti Admin Aim - by Hayden_Almeida - 02.12.2015, 22:21
Re: [HELP] Anti Admin Aim - by PinkFloydLover - 02.12.2015, 23:36
Re: [HELP] Anti Admin Aim - by Jefff - 03.12.2015, 01:45
Re: [HELP] Anti Admin Aim - by Hayden_Almeida - 03.12.2015, 17:13

Forum Jump:


Users browsing this thread: 1 Guest(s)