NPC on OnPlayerRequestClass
#10

So forget the code over me: -.-

Код:
#include <a_samp>

public OnFilterScriptInit()
{
	ConnectNPC("B0T", "B0T");
	return 1;
}

public OnPlayerSpawn(playerid)
{
  if(!IsPlayerNPC(playerid)) return 0;
	new NPCName[MAX_PLAYER_NAME];
	GetPlayerName(playerid, NPCName, 64);
	
  if(!strcmp(NPCName, "B0T", true)) {
	SetPlayerInterior(playerid, 2);
	SetSpawnInfo( playerid, 0, 152, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );
	}
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    if(IsPlayerNPC(playerid)) {
	return 1;
}
Quote:
Originally Posted by Jay_
The bot can only follow instructions when it is spawned, not when it is choosing a skin.
It is spawned.

Quote:
Originally Posted by Beaver07
please explain wat you are trying to do
I want to make that everyone see the bot on the skin selection...

Quote:
Originally Posted by Beaver07
Players cannot spawn because it is return 0; and onplayerrequestclass is being stopped from calling
Can you correct it then please?
Reply


Messages In This Thread
NPC on OnPlayerRequestClass - by [DFE]Roy - 03.10.2009, 12:23
Re: NPC on OnPlayerRequestClass - by Beaver07 - 03.10.2009, 13:12
Re: NPC on OnPlayerRequestClass - by [DFE]Roy - 03.10.2009, 13:56
Re: NPC on OnPlayerRequestClass - by FUNExtreme - 03.10.2009, 16:30
Re: NPC on OnPlayerRequestClass - by [DFE]Roy - 03.10.2009, 17:04
Re: NPC on OnPlayerRequestClass - by allarw - 03.10.2009, 17:08
Re: NPC on OnPlayerRequestClass - by [DFE]Roy - 03.10.2009, 17:17
Re: NPC on OnPlayerRequestClass - by Beaver07 - 03.10.2009, 18:47
Re: NPC on OnPlayerRequestClass - by Jay_ - 03.10.2009, 18:55
Re: NPC on OnPlayerRequestClass - by [DFE]Roy - 03.10.2009, 20:55
Re: NPC on OnPlayerRequestClass - by Sew_Sumi - 03.10.2009, 22:33

Forum Jump:


Users browsing this thread: 1 Guest(s)