NPC spawn Problem
#1

Hey guys.

Got this Problem:
The NPC is connecting after i typed a cmd.
The Bot connects, but he doesn't spawn.
Codes:

Код:
public OnPlayerRequestClass(playerid, classid)
{
	if(IsPlayerNPC(playerid))return 1;
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	return 1;
}
Код:
public OnPlayerSpawn(playerid)
{
	if(IsPlayerNPC(playerid))
	{
		new npcname[64];
		GetPlayerName(playerid,npcname,64);
		if(!strcmp(npcname,"Mission1",true))
		{
			SetPlayerPos(playerid,-738.1842,1648.0729,27.4358);
	    	SetPlayerSkin(playerid,33);
 			return 1;
		}
	}

	return 1;
}
Reply


Messages In This Thread
NPC spawn Problem - by yellow - 13.04.2014, 21:57
Re: NPC spawn Problem - by Pottus - 13.04.2014, 22:14
AW: NPC spawn Problem - by yellow - 13.04.2014, 22:17
Re: NPC spawn Problem - by Pottus - 13.04.2014, 22:19
AW: NPC spawn Problem - by yellow - 13.04.2014, 22:23
Re: NPC spawn Problem - by Pottus - 13.04.2014, 22:49
AW: NPC spawn Problem - by yellow - 13.04.2014, 22:53
AW: NPC spawn Problem - by yellow - 14.04.2014, 13:16

Forum Jump:


Users browsing this thread: 2 Guest(s)