Kick an NPC
#7

Hi if it works for you.

It does not work for me, Sir.

Here is the code:

pawn Код:
public KickHydraAssualts(playerid)
{
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname));
    if(!strcmp(npcname, "HydraAssualt1", true))
    {
      Kick(HydraAssualt1);
      Kick(playerid);
      return 1;
    }
    if(!strcmp(npcname, "HydraAssualt2", true))
    {
      Kick(HydraAssualt2);
      Kick(playerid);
      return 1;
    }
    if(!strcmp(npcname, "HydraAssualt3", true))
    {
      Kick(HydraAssualt3);
      Kick(playerid);
      return 1;
    }
    if(!strcmp(npcname, "HydraAssualt4", true))
    {
      Kick(HydraAssualt4);
      Kick(playerid);
      return 1;
    }
    return 1;
}
I have set an timer about 42 seconds, and that kicks npc..

But none of this works.
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: 1 Guest(s)