Npc kick
#5

Quote:
Originally Posted by Jantjuh
Посмотреть сообщение
Don't double post.
https://sampwiki.blast.hk/wiki/NPC:OnRecordingPlaybackEnd
Add: Kick();

Something like this: (Not tested)
pawn Код:
public OnRecordingPlaybackEnd()
{
for(new i; i = 0; i++)
{
    new name; //maybe    new name[MAX_PLAYER_NAME];
    GetPlayerName(i, name, MAX_PLAYER_NAME);
    If(name == "Your Npc Name")
    {
        Kick(i);
    }
}
}
Edit: Forum messed identitation up
go learn pawn

pawn Код:
public OnRecordingPlaybackEnd()
{
    foreach (new i : Player)
    {
        new name[MAX_PLAYER_NAME];
        GetPlayerName(i, name, MAX_PLAYER_NAME);
        if(!strcmp(name, "Your npc name", true))
        {
            Kick(i);
        }
    }
}
Reply


Messages In This Thread
Npc kick - by Ectazy - 25.11.2011, 14:38
Re: Npc kick - by Ectazy - 25.11.2011, 19:27
Re: Npc kick - by Jantjuh - 25.11.2011, 19:32
Re: Npc kick - by Ectazy - 25.11.2011, 20:09
Re: Npc kick - by fordawinzz - 25.11.2011, 20:25
Re: Npc kick - by IceCube! - 25.11.2011, 20:27
Re: Npc kick - by Ectazy - 26.11.2011, 07:23
Re: Npc kick - by SmiT - 26.11.2011, 07:28
Re: Npc kick - by Ectazy - 26.11.2011, 08:37
Re: Npc kick - by SmiT - 26.11.2011, 08:43

Forum Jump:


Users browsing this thread: 2 Guest(s)