02.12.2015, 23:36
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;
}