Locking to class
#1

How to lock to a class once in the selection screen? Like if you press left or right, it will stay at that class. But once you typed /start then you will be able to browse the rest of it.

Thnx!
Reply
#2

Bump
Reply
#3

Bump
Reply
#4

if at class selection, make variable is 1.

and when someone presses right or left, return 0;? I am not sure about this.
Reply
#5

Just for testing i've made this that if the classid is above 1 you wont be able to browse through the rest, i had it working for a second but dont know what i did wrong now..

Somebody help me


pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1477.1437,-2410.3237,52.6302);
    SetPlayerFacingAngle(playerid, 309.0874);
    SetPlayerCameraPos(playerid, 1479.2456,-2408.4324,53.8625);
    SetPlayerCameraLookAt(playerid, 1477.1437,-2410.3237,52.5302);
   
    if(classid > 1)
    {
        return 0;
    }
   
    return 0;
}
Reply
#6

Theres a tutorial on the wiki I think...

www.wiki.sa-mp.com
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)