OnPlayerRequestClass help
#1

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
Reply
#2

does anybody know the problem?
Reply
#3

Change
PHP код:
SetPlayerInterior(playerid1); 

With
PHP код:
SetPlayerInterior(playerid0); 
Reply
#4

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.
Reply
#5

I thought the spawn coordinates are outside.
Reply
#6

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.
Reply
#7

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

SetPlayerInterior(playerid, 0);

or

SetPlayerInterior(playerid, 1);
Reply
#9

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

does anybody know the problem?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)