05.03.2019, 18:27
PHP код:
CMD:tollmenu(playerid, params[])
{
//if(!IsACop(playerid)) return SCM(playerid, COLOR_LGREEN, "a!");
//if(PlayerInfo[playerid][pRank] < 6) return SCM(playerid, COLOR_LGREEN, "b!");
//if(OnDuty[playerid] == 0) return SCM(playerid, COLOR_LGREEN, "c!");
new sDialog[120];
if(toll == 0) format(sDialog, sizeof(sDialog), "The LS/LV toll is{80FF00}(Open){FFFFFF}Click to close.");
else if(toll == 1) format(sDialog, sizeof(sDialog), "Tge LS/LV toll is {FF0000}(Closed){FFFFFF}Click to open.");
ShowPlayerDialog(playerid, DIALOG_TOLLMENU, DIALOG_STYLE_LIST, "Cop toll menu", sDialog, "Ok", "Exit");
return 1;
}
PHP код:
if(!IsACop(playerid)) return SCM(playerid, COLOR_LGREEN, "a!");
if(PlayerInfo[playerid][pRank] < 6) return SCM(playerid, COLOR_LGREEN, "b!");
if(OnDuty[playerid] == 0) return SCM(playerid, COLOR_LGREEN, "c!");