Don't allow to kick NPC's
#1

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
Reply
#2

Use IsPlayerNPC. Example:

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


Forum Jump:


Users browsing this thread: 1 Guest(s)