04.08.2011, 14:32
Try this without any timer - Just add the example in a simple command to see if it works (it should work):
Usage:
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;
}
pawn Код:
KickNPC("HydraAssualt1");