SA-MP Forums Archive
[HELP!] 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: [HELP!] OnPlayerRequestClass (/showthread.php?tid=353611)



[HELP!] OnPlayerRequestClass - Dubya - 23.06.2012

Whenever someone tries to look at the class's, it show's this:


My pawn of it is:
pawn Код:
SetPlayerPos(playerid, 1975.203002, 3779.311523, -50.243506);
    SetPlayerCameraPos(playerid, 1975.203002, 3779.311523, 100.243506);
    SetPlayerCameraLookAt(playerid, 1975.203002, 3779.311523, -0.243506);
Please help.. I can't get it to actually show the player. If someone could help me, that would be great, as I am clueless of what to do. (I'm not a bad scripter, I just can't figure this out!).


Re: [HELP!] OnPlayerRequestClass - Djole1337 - 23.06.2012

Bad coordinates probably... Also nice hack you got there


Re: [HELP!] OnPlayerRequestClass - Dubya - 23.06.2012

Quote:
Originally Posted by Mr_DjolE
Посмотреть сообщение
Bad coordinates probably... Also nice hack you got there
Can you give me some good coordinates?


Re: [HELP!] OnPlayerRequestClass - [jS]Thomas - 23.06.2012

Quote:
Originally Posted by Dubya
Посмотреть сообщение
Can you give me some good coordinates?
Give the coordinates to where? Where do you want the camera to face?


Re: [HELP!] OnPlayerRequestClass - Grand_Micha - 23.06.2012

Quote:
pawn Код:
SetPlayerPos(playerid, 1975.203002, 3779.311523, -50.243506);
    SetPlayerCameraPos(playerid, 1975.203002, 3779.311523, 100.243506);
    SetPlayerCameraLookAt(playerid, 1975.203002, 3779.311523, -0.243506);
Please help.. I can't get it to actually show the player. If someone could help me, that would be great, as I am clueless of what to do. (I'm not a bad scripter, I just can't figure this out!).

You are a genius. You posted your answer. Just take a look at your Z coordinates - the player is 50 metres below the point the camera is facing, while the camera itself is 100 metres above sea level.

FAIL


Re: [HELP!] OnPlayerRequestClass - Dubya - 24.06.2012

I know... I have tried different Locations, and they still didn't work. I want someone to give me Working locations.


Re: [HELP!] OnPlayerRequestClass - Faisal_khan - 24.06.2012

If you cannot do it yourself, then take this:
pawn Код:
SetPlayerPos(playerid, 268.4988,1884.0615,-30.0938);
    SetPlayerFacingAngle(playerid, 184.2539);
    SetPlayerCameraPos(playerid, 268.5090,1880.9513,-30.3906);
    SetPlayerCameraLookAt(playerid, 268.4988,1884.0615,-30.0938);