SA-MP Forums Archive
I have problem with Spawn - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I have problem with Spawn (/showthread.php?tid=155993)



I have problem with Spawn - Kiki_Nvidia - 20.06.2010

This is my problem, how i can fix this? i try, but i cant :S

http://www.easilysharing.com/images/...4105842276.png

Thanks!


Re: I have problem with Spawn - Kar - 20.06.2010

you spawn and that happens?


Re: I have problem with Spawn - ReVo_ - 20.06.2010

Post you OnPlayerRequestClass and OnPlayerSpawn.


Re: I have problem with Spawn - Kiki_Nvidia - 20.06.2010

no, i connect to samp, type my password and when i must to spawn that happens
Код:
public OnPlayerSpawn(playerid)
{
  SetPlayerInterior(playerid,0);
	SetCameraBehindPlayer();
Код:
public OnPlayerRequestClass(playerid, classid)
{
	new string[128];
	PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
	PlayerInfo[playerid][pModel] = Peds[classid][0];
 	if (classid == 1)



Re: I have problem with Spawn - ReVo_ - 20.06.2010

For test add
SetCameraBehindPlayer(playerid);

in OnPlayerSpawn.




Re: I have problem with Spawn - Kiki_Nvidia - 20.06.2010

up there is what you asked


Re: I have problem with Spawn - DJDhan - 20.06.2010

You don't need the
Код:
SetCameraBehindPlayer(playerid);
under OnPlayerSpawn.
Also, you should
Код:
SetPlayerPos(playerid,x,y,z);
after you set the interior.


Re: I have problem with Spawn - Kiki_Nvidia - 20.06.2010

Quote:
Originally Posted by DJDhan
You don't need the
Код:
SetCameraBehindPlayer(playerid);
under OnPlayerSpawn.
ok i will try tnx