14.12.2009, 02:32
To be honest I would just use the default kick command. To identify an NPC you are going to need a name as the ID can always change if the NPC connects mid-game or you happen to join before the NPC. So you might as well use /kick. However, let's say you wanted to kick all NPCs you could do something like:
This should work.
pawn Код:
#define KickAllNPCs() for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerNPC(i)) Kick(i);