NPC join then Leave D: why?
#10

Код:
public OnPlayerConnect(playerid)
{
	if(IsPlayerNPC(playerid))
 	{
	    SpawnPlayer(playerid);
		return 1;
	}
Код:
public OnPlayerRequestClass(playerid, classid)
{
   if(IsPlayerNPC(playerid))
	{
	    SpawnPlayer(playerid);
		return 1;
	}
You don't need to put anything about the NPC in OnPlayerSpawn, Only if you want to check his name/put him in vehicle.
Reply


Messages In This Thread
NPC join then Leave D: why? - by Mzake - 01.09.2014, 13:11
Re: NPC join then Leave D: why? - by meitaredri - 01.09.2014, 13:15
Re: NPC join then Leave D: why? - by DaniceMcHarley - 01.09.2014, 13:26
Re: NPC join then Leave D: why? - by M0HAMMAD - 01.09.2014, 15:54
Re: NPC join then Leave D: why? - by Mzake - 02.09.2014, 11:52
Re: NPC join then Leave D: why? - by Dotayuri - 02.09.2014, 11:57
Re: NPC join then Leave D: why? - by Mzake - 02.09.2014, 13:33
Re: NPC join then Leave D: why? - by Rifa4life - 02.09.2014, 16:55
Re: NPC join then Leave D: why? - by meitaredri - 02.09.2014, 16:58
Re: NPC join then Leave D: why? - by Clad - 02.09.2014, 16:59

Forum Jump:


Users browsing this thread: 1 Guest(s)