Need some help with "OnPlayerRequestClass" [Solved] - 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: Need some help with "OnPlayerRequestClass" [Solved] (
/showthread.php?tid=107011)
Need some help with "OnPlayerRequestClass" [Solved] -
Jimakos_Static - 07.11.2009
I can't take the camera positions to make a spawn point and I need some help how to do it... Also the point is inside an interior can anyone help me?
-thanks
Re: Need some help with "OnPlayerRequestClass" -
Tigerbeast11 - 07.11.2009
Use debug
Re: Need some help with "OnPlayerRequestClass" -
Jimakos_Static - 07.11.2009
Ok and what else I sould do?
Re: Need some help with "OnPlayerRequestClass" -
GTA_Rules - 07.11.2009
You could try to use my OnPlayerRequestClass creator FS (check my signature).
Re: Need some help with "OnPlayerRequestClass" -
Badger(new) - 07.11.2009
You need 4 things:
The position where the player will stand (which is also what the camera will look at)-x,y,z
The position where the camera will be-cx,cy,cz
The angle that the player faces at- A
The interior ID- IID
pawn Код:
public OnPlayerRequestClass(playerid,classid)
{
SetPlayerPos(playerid,x,y,z);
SetPlayerCameraPos(playerid,cx,cy,cz);
SetPlayerCameraLookAt(playerid,x,y,z);
SetPlayerFacingAngle(playerid,A);
SetPlayerInterior(playerid,IID);
return 1;
}
Re: Need some help with "OnPlayerRequestClass" -
Jimakos_Static - 08.11.2009
Fixed/Solved
I didn't knew that the "SetPlayerCameraLookAt" must me the same as the player's!