[HELP] Anti Admin Aim
#2

You need to find out why it's not working, add some prints, get the values & see if they are correct.
pawn Код:
if((newkeys & KEY_HANDBRAKE) && !(oldkeys & KEY_HANDBRAKE)) // Botгo RMB (foot)
{
       new targetplayer = GetPlayerTargetPlayer(playerid);
       printf("targetplayer: %d", targetplayer);
       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)