SA-MP Forums Archive
OnPlayerRequestClass help - 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)
+--- Thread: OnPlayerRequestClass help (/showthread.php?tid=575324)



OnPlayerRequestClass help - Charalambos26 - 25.05.2015

Hello,

so first If my players choose skin and then spawn, everything is removed ( the builduings, houses and the ground )
but I can walk.
I may thing its might because the players are teleported from the interior to the same world, idk, you can look.

Код HTML:
	new Float:spawnX, Float:spawnY, Float:spawnZ;
	spawnX = 963.418762;
	spawnY = 2108.292480;
	spawnZ = 1011.030273;
	ClearAnimations(playerid);
	SetPlayerInterior(playerid, 1);
	SetPlayerPos(playerid, spawnX, spawnY, spawnZ);
	SetPlayerCameraPos(playerid, spawnX + 5.0, spawnY +3.0, spawnZ + 2.00);
    SetPlayerCameraLookAt(playerid, spawnX, spawnY, spawnZ);
	SetPlayerFacingAngle(playerid, -90.0000);
If somebody helps me +1Rep


Re: OnPlayerRequestClass help - Charalambos26 - 25.05.2015

does anybody know the problem?


Re: OnPlayerRequestClass help - PepsiCola23 - 25.05.2015

Change
PHP код:
SetPlayerInterior(playerid1); 

With
PHP код:
SetPlayerInterior(playerid0); 



Re: OnPlayerRequestClass help - Konstantinos - 25.05.2015

Quote:
Originally Posted by PepsiCola23
Посмотреть сообщение
Change
PHP код:
SetPlayerInterior(playerid1); 

With
PHP код:
SetPlayerInterior(playerid0); 
Actually, he shouldn't change that in the code above as the player must be in an interior. In OnPlayerSpawn though, set the player's interior to 0.


Re: OnPlayerRequestClass help - PepsiCola23 - 25.05.2015

I thought the spawn coordinates are outside.


Re: OnPlayerRequestClass help - Charalambos26 - 25.05.2015

The Camera point is the Meat Factory,
but if I spawn everything is gone, I can walk but I cant see builduings, streets and so on.


Re: OnPlayerRequestClass help - XStormiest - 25.05.2015

It's simple, just set: SetPlayerInterior(playerid, 0); under OnPlayerSpawn.


Re: OnPlayerRequestClass help - Charalambos26 - 25.05.2015

SetPlayerInterior(playerid, 0);

or

SetPlayerInterior(playerid, 1);


Re: OnPlayerRequestClass help - Charalambos26 - 25.05.2015

Quote:
Originally Posted by XStormiest
Посмотреть сообщение
It's simple, just set: SetPlayerInterior(playerid, 0); under OnPlayerSpawn.
Still not workin


Re: OnPlayerRequestClass help - Charalambos26 - 26.05.2015

does anybody know the problem?