Restrict on bots
#3

You don't need == 1

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;
}
https://sampwiki.blast.hk/wiki/IsPlayerNPC
Reply


Messages In This Thread
Restrict on bots - by Ananisiki - 23.04.2014, 23:55
Re: Restrict on bots - by Affan - 24.04.2014, 01:30
Re: Restrict on bots - by DobbysGamertag - 24.04.2014, 01:45
Re: Restrict on bots - by Ananisiki - 24.04.2014, 18:52
Re: Restrict on bots - by DobbysGamertag - 24.04.2014, 19:37

Forum Jump:


Users browsing this thread: 1 Guest(s)