[Help] AddPlayerClass
#1

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.
Reply
#2

After you do AddPlayerClass under ongamemodeinit go to OnPlayerRequestClass

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

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 .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)