class selection help -
ReD_DeVi - 24.06.2014
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
Re: class selection help -
Faisal_khan - 24.06.2014
Just remove the textdraw functions where your class selection is being called.
Re: class selection help -
ReD_DeVi - 24.06.2014
its not mine i just took a screenshot to show you how to make
Re: class selection help -
SilentSoul - 24.06.2014
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;
}
Re: class selection help -
ReD_DeVi - 24.06.2014
what to do can you explain more
Re: class selection help -
SilentSoul - 24.06.2014
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!
Re: class selection help -
ReD_DeVi - 24.06.2014
okay i want to spawn menu can you help me with that
Re: class selection help -
SilentSoul - 24.06.2014
Spawn menu you mean dialog or the textdraws above?
Re: class selection help -
ReD_DeVi - 24.06.2014
yes can you
Re: class selection help -
ReD_DeVi - 24.06.2014
Textdraws