17.08.2012, 07:25
I fixed it. but I use this cmd for change class
i want as player will choose class he will be respawn at his base..
pawn Код:
CMD:sc(playerid,params[])
{
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid, COLOR_BLUE, "You can Now Choose your Class!");
ResetPlayerWeapons(playerid);
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;
}