SA-MP Forums Archive
Class Selection multiple cameras - 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: Class Selection multiple cameras (/showthread.php?tid=524685)



Class Selection multiple cameras - Dom7364 - 07.07.2014

Hello all!

I've got a problem with my Class selection menu.

What I've wanted:

--> 3 or 4 skinteams like Police(9skins), Gang(3x3skins), Common Skins(10+skins), Train Driver(3skins)
--> when police skins are appeared, the background (or the camera and player position) are set to LS Police Department, when Train Driver skins are appeared, the background is set to Unity Station...

Is this possible to create (in gamemode)?


I appreciate all help! And sorry for my bad english...


Re : Class Selection multiple cameras - S4t3K - 07.07.2014

Take a look at the "Grand Larceny" GameMode. It uses a system which is slightly identic to the one you want.

But you can't do it through "OnPlayerRequestClass". You have to use clickable textdraws.
And more specifically, you need to use SetPlayerCameraPos and SetPlayerCameraLookAt.