SA-MP Forums Archive
OnPlayerRequestClass help-_- - 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: OnPlayerRequestClass help-_- (/showthread.php?tid=454537)



OnPlayerRequestClass help-_- - Realds - 29.07.2013

So, I decided to attempt to make a TDM script. And as I was making it, I realised there's a 'SetPlayerPos' in it. I want to add this code in:

pawn Код:
SetPlayerCameraPos(playerid, 1122.1455, -2036.6072, 79.1891);

SetPlayerCameraLookAt(playerid, 1121.1506, -2036.6760, 79.2091);
Should I keep the SetPlayerPos there or what?


Re: OnPlayerRequestClass help-_- - Donvalley - 29.07.2013

according to https://sampwiki.blast.hk/wiki/SetPlayerCameraLookAt

Quote:

Set the direction a player's camera looks at. To be used in combination with SetPlayerCameraPos.

hope that helps


Re: OnPlayerRequestClass help-_- - Realds - 29.07.2013

Quote:
Originally Posted by Donvalley
Посмотреть сообщение
Not really LOL


Re: OnPlayerRequestClass help-_- - Donvalley - 29.07.2013

lol, use them both if you scroll down a little on Wiki link you will see the example


Re: OnPlayerRequestClass help-_- - DemCaribous - 29.07.2013

*third edit D: didn't read the post.

yes keep setplayerpos in that, in any order it doesn't matter.

SetPlayerPos(playerid, 1121.1506, -2036.6760, 79.2091)

set their position to the way that the camera is looking or offset a little if you want.


Re: OnPlayerRequestClass help-_- - Realds - 29.07.2013

But what about the SetPlayerPos?


Re: OnPlayerRequestClass help-_- - RedJohn - 29.07.2013

Just use this:

Class Maker