27.05.2013, 21:08
Thanks for explaining it zak thanks also can you tell me how to add new classes? i added busdriver but it dont show up when you pick a class
only shows civilan pilot, military and marine why so?
pawn Код:
public ShowRole(playerid)
{
new finishedcustomization[256], finishedtut[256], finishedtut2[128], string[256];
new Score = PInfo[playerid][TotalScore];
format(finishedcustomization, 256, "{0000FF}Civilian Pilot {00FF00}[Available]");
if(Score > 24) { format(finishedtut, 256, "{FF9900}Bus Driver {00FF00}[Available]"); }
else if(Score < 25) { format(finishedtut, 256, "{FF9900}Bus Driver {FF0404}[Locked]"); }
if(Score > 49) { format(finishedtut, 256, "{FF9900}Military Pilot {00FF00}[Available]"); }
else if(Score < 50) { format(finishedtut, 256, "{FF9900}Military Pilot {FF0404}[Locked]"); }
if(Score > 99) { format(finishedtut2, 256, "{00FFFF}Marine{00FF00}[Available]"); }
else if(Score < 100) { format(finishedtut2, 256, "{00FFFF}Marine{FF0404}[Locked]"); }
TogglePlayerControllable(playerid, 0);
format(string, sizeof(string), "%s\n%s\n%s\n", finishedcustomization, finishedtut, finishedtut2);
ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "{FFFFFF}Which role would you like to play as?", string, "Select", "");
return 1;
}