SA-MP Forums Archive
Don't allow to kick NPC's - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Don't allow to kick NPC's (/showthread.php?tid=103181)



Don't allow to kick NPC's - Cedimedi - 18.10.2009

Hey... i have a question. how do i can script, if an admin trys to kick an NPC that it don't work? But it should work with normal players

I know a bit how, but can someone show me it correct?


Thanks,

Cedimedi


Re: Don't allow to kick NPC's - KillFrenzy - 18.10.2009

Use IsPlayerNPC. Example:

if (IsPlayerNPC(kickid)) {
SendClientMessage(playerid, 0xFF0000AA, "You cannot kick an NPC.");
return 1;
}