03.05.2018, 20:27
It can be simply done like this:
PHP код:
CMD:gotojob(playerid)
{
if(gPlayerLogged[playerid] == 0) return SCM(playerid, COLOR_LIGHTRED, "You need to log in first.");
if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COLOR_LIGHTRED, "Nu ai acces la aceasta comanda.");
ShowPlayerDialog(playerid, DIALOG_GOTOJOB, DIALOG_STYLE_LIST,"Gotojob", "Detective\nDrugs
Dealer\nPizza Boy\nBus Driver\nArms Dealer\nGarbageman\nFisherman\nTrucker\nFarmer");
return 1;
}