Kick an NPC
#8

Try this without any timer - Just add the example in a simple command to see if it works (it should work):
pawn Код:
stock KickNPC(npcName[])
{
    for(new i, tmpName[MAX_PLAYER_NAME]; i < MAX_PLAYERS; ++i)
    {
        if(IsPlayerNPC(i))
        {
            if(!strcmp(tmpName, npcName, true))
            {
                return Kick(i);
            }
        }
    }
    return 0;
}
Usage:
pawn Код:
KickNPC("HydraAssualt1");
Reply


Messages In This Thread
Kick an NPC - by Davz*|*Criss - 04.08.2011, 13:46
Re: Kick an NPC - by Davz*|*Criss - 04.08.2011, 14:00
Re: Kick an NPC - by [MG]Dimi - 04.08.2011, 14:09
Re: Kick an NPC - by RyDeR` - 04.08.2011, 14:12
Re: Kick an NPC - by Davz*|*Criss - 04.08.2011, 14:21
Re: Kick an NPC - by RyDeR` - 04.08.2011, 14:22
Re: Kick an NPC - by Davz*|*Criss - 04.08.2011, 14:25
Re: Kick an NPC - by RyDeR` - 04.08.2011, 14:32
Re: Kick an NPC - by Davz*|*Criss - 04.08.2011, 14:41
Re: Kick an NPC - by Tigerkiller - 04.08.2011, 14:45

Forum Jump:


Users browsing this thread: 3 Guest(s)