24.04.2014, 01:45
You don't need == 1
https://sampwiki.blast.hk/wiki/IsPlayerNPC
pawn Код:
CMD:somecommand(playerid,params[])
{
new pid; //pid being the targeted player: EG /kick X
if(IsPlayerNPC(pid))return SendClientMessage(playerid,-1,"You cannot use commands on NPCs");
return 1;
}

