Something wired about OnPlayerRequestClass - 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: Something wired about OnPlayerRequestClass (
/showthread.php?tid=307002)
Something wired about OnPlayerRequestClass -
Bogdan1992 - 28.12.2011
I don't know what is happening but this OnPlayerRequestClass doesn't work.
I have this on my server and should change the camera position but nothing. I use dialogs to resigter and login, should be a problem from them?
Код:
public OnPlayerRequestSpawn(playerid)
{
SetPlayerTime(playerid, 0, 0 );
SetPlayerWeather( playerid, 17);
SetPlayerPos(playerid,1679.2479,1447.9485,47.7780);
SetPlayerFacingAngle(playerid, 89.8345);
SetPlayerCameraPos(playerid,1667.3199,1447.8243,47.7780);
SetPlayerCameraLookAt(playerid,1679.2479,1447.9485,47.7780);
return 1;
}
Re: Something wired about OnPlayerRequestClass -
Norck - 28.12.2011
Have you tried to put this code into OnPlayerRequestClass callback?
Cause you are talking about OnPlayerRequestClass, but showing code from OnPlayerRequestSpawn callback.
Re: Something wired about OnPlayerRequestClass -
Bogdan1992 - 28.12.2011
Damn i'm so idiot, i didn't see that is OnPlayerRequest
Spawn.