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(playerid, 1);
With
PHP код:
SetPlayerInterior(playerid, 0);
Re: OnPlayerRequestClass help -
Konstantinos - 25.05.2015
Quote:
Originally Posted by PepsiCola23
Change
PHP код:
SetPlayerInterior(playerid, 1);
With
PHP код:
SetPlayerInterior(playerid, 0);
|
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?