SA-MP Forums Archive
[Help] AddPlayerClass - 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] AddPlayerClass (/showthread.php?tid=310013)



[Help] AddPlayerClass - DanTzi - 10.01.2012

Hello, I am a pretty beginner scripter and I would like to know how to script a basic class selection, when actually the player can see the character that he wants to select.

If someone can help me with that please reply here.


Re: [Help] AddPlayerClass - Azzeto - 10.01.2012

After you do AddPlayerClass under ongamemodeinit go to OnPlayerRequestClass

Then put
pawn Код:
if(classid == 0)
{
    SetPlayerCameraPos(x,y,z);
    SetPlayerCameraFacingAngle(angle);
}



Re: [Help] AddPlayerClass - davve95 - 10.01.2012

Just add player class and then change the camera angle.. Can't tell mor because I don't have
Pawno on this computer (school) xD... But you can look on a finshed script where to put code..
And aslo look on tuturial on ******* it helps alot!. Good luck!.


Edit: Azzeto fixed it for you.


Edit2: To fix the angles you can use Sa-mp debug look on a tuturial on ******* or something .