12.05.2018, 09:56
PHP код:
forward ClassSelection(playerid, class);
public ClassSelection(playerid, class){
//here you change the player's class: 0 = Negros, 1 = Civiles, 2 = Mafia, etc.
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){
if(dialogid == 1){
SendClientMessage(playerid, -1, "Your class will be changed in 10 seconds.");
SetTimerEx("ClassSelection", 10000, false, "ii", playerid, listitem);
}
}
CMD:class(playerid,params[])
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Equipos","\nNegros\nCiviles\nMafia\nNang\nSwat\nSurenos\nBiker\nRich\nFarmers\nMechanic\nPimp\nSoldados" , "Select", "");
return 1;
}