16.08.2012, 20:19
Guys i made a /sc (switch class) cmd. But when i type /sc to change class, dialog appears which is great from which i can choose class. But when i choose my next class like sniper, pilot or medic weapons got mixed. Previous class weapons gets mix with next class weapons. Why this is happening.
Please i need help. Help me
Here are my Codes:
Please i need help. Help me
Here are my Codes:
pawn Код:
CMD:sc(playerid,params[])
{
SetPlayerHealth(playerid,0);
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid, COLOR_BLUE, "You can Now Choose your Class!");
ShowPlayerDialog(playerid, 999, DIALOG_STYLE_LIST, "{6EF83C}Choose A Class:", "Assault Class (Need No Rank) \nSniper Class (Need Rank 2) \nMedic Class (Need Rank 3) \nEngineer Class (Need Rank 4) \nMercenary Class (Need Rank 5 ) \nJet-Trooper Class (Need Rank 7) \nPilot Class (Need Rank 8) ", "Choose","");
SetPlayerVirtualWorld(playerid, 0);
return 1;
}