Locked Classes, Vehicles?
#1

Well i was wondering if it's possible to make a Class on the Class selection Locked for a Certain Player, Something like this, But player specified?
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(classid == 0)
    {
        SetPlayerPos(playerid, 2375.7463,-1645.9944,13.5322);
        SetPlayerCameraPos(playerid, 2375.9658,-1647.8722,13.5405);
        SetPlayerCameraLookAt(playerid, 2375.7463,-1645.9944,13.5322);
        GameTextForPlayer(playerid, "~g~EastSide Guerillas", 5000, 5);
        SetPlayerColor(playerid, 0x2D964DFF);
        SetPlayerFacingAngle(playerid, 180.000);
        ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
        //2nd Line - 2375.7463,-1645.9944,13.5322
        //Add the locked class functions here, or something :\
    }
       
    }
Reply
#2

Vehicles?
You can prevent player from spawning in https://sampwiki.blast.hk/wiki/OnPlayerRequestSpawn
Reply
#3

Quote:
Originally Posted by varthshenon
Посмотреть сообщение
Vehicles?
You can prevent player from spawning in https://sampwiki.blast.hk/wiki/OnPlayerRequestSpawn
Locked Classes, And Vehicles.. Not spawning
Reply
#4

Quote:
Originally Posted by Blunt
Посмотреть сообщение
Locked Classes, And Vehicles.. Not spawning
What the?
Reply
#5

Код:
switch(classid)
{
case 1:
{
// class settings for a classid 1 returns to default if it's not 1
}
default:
{
// class settings if it's not the case listed below
}
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)