[HELP] NPC Kick
#1

Hello, I'm trying to kick the NPC on end of playback, but compiler says: error 017: undefined symbol "Kick".
I tried all my ideas but it doesn't worked.
Any idea how to make it work?
Thanks.

Код:
#include <a_npc>
#include <a_samp>

public OnRecordingPlaybackEnd()
{	
	for(new i = 0; i < MAX_PLAYERS_EX; i++)
	{
		new npcName[MAX_PLAYER_NAME];
		GetPlayerName(i, npcName, sizeof(npcName));
		if(!strcmp(npcName, "[NPC]Customer"))
		{
			Kick(i);
		}
	}
}
Reply
#2

Quote:
Originally Posted by ******
Посмотреть сообщение
You can't use the "a_samp" include in NPC scripts. In fact, the includes have guards to prevent both being included - you get one or the other, whichever came first.
Yea, but It's not the problem. If I delete #include<a_samp>, the error is still there.
Reply
#3

And that's the problem... I need to kick or disconnect the NPC from server if its possible somehow.
Reply
#4

Nobody has any idea?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)