[help] Removing NPCs?
#6

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:

pawn Код:
#define KickAllNPCs() for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerNPC(i)) Kick(i);
This should work.
Reply


Messages In This Thread
[help] Removing NPCs? - by devteamsnDOTcom - 14.12.2009, 01:57
Re: [help] Removing NPCs? - by Malice - 14.12.2009, 02:11
Re: [help] Removing NPCs? - by devteamsnDOTcom - 14.12.2009, 02:13
Re: [help] Removing NPCs? - by Malice - 14.12.2009, 02:21
Re: [help] Removing NPCs? - by devteamsnDOTcom - 14.12.2009, 02:24
Re: [help] Removing NPCs? - by Malice - 14.12.2009, 02:32
Re: [help] Removing NPCs? - by devteamsnDOTcom - 14.12.2009, 02:46
Re: [help] Removing NPCs? - by Malice - 14.12.2009, 03:00

Forum Jump:


Users browsing this thread: 2 Guest(s)