class selection help
#1

hey i want your help in class selection how to make only class selection not textdraw only class selection please help me sorry for the RIP English and i know that i am copying the yg things but i need only the class selection please help me
Reply
#2

Just remove the textdraw functions where your class selection is being called.
Reply
#3

its not mine i just took a screenshot to show you how to make
Reply
#4

1) AddPlayerClass
2) OnPlayerRequestClass
3) Skin ids
Example:
pawn Код:
public OnGameModeInit()
{
    AddPlayerClass(0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); // CJ
    AddPlayerClass(1, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); // The Truth
    return 1;
}
public OnPlayerRequestClass(playerid, classid)
{

    switch (classid)
    {
        case 0:
        {
            //if he choosed first class you added , you can set his postion here
        }
        case 1:
        {
            //second
        }
    }
    return 1;
}
Reply
#5

what to do can you explain more
Reply
#6

Nothing i should explain everything is explained in the wiki. you just add your classes you want example you want to add 4 player classes, you should do :
pawn Код:
public OnGameModeInit()
{
    AddPlayerClass(0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); // class number 1
    AddPlayerClass(1, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); // class number 2
    AddPlayerClass(0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); // class number 3
    AddPlayerClass(1, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); // class number 4
// AddPlayerClass(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo) This line just to let you know what are these numbers related to.
    return 1;
}
That's all. Just use OnPlayerRequestClass if you want to do some effects once he choose specific class!
Reply
#7

okay i want to spawn menu can you help me with that
Reply
#8

Spawn menu you mean dialog or the textdraws above?
Reply
#9

yes can you
Reply
#10

Textdraws
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)