23.09.2017, 07:53
This will work:
Simple error...
PHP код:
dcmd_cmds(playerid, params[])
{
if(AccInfo[playerid][Level] >= 0)
{
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_MSGBOX, "Server Commands", "Normal Player Commands: \n/rules, /cars, /guns, /teles, /dms, /lockcar, /unlockcar, /fix, /report, /topmoney", "Continue","");
}
if(AccInfo[playerid][Level] >= 1)
{
ShowPlayerDialog(playerid, 13, DIALOG_STYLE_MSGBOX, "Server Commands", "Normal Player Commands: \n/rules, /cars, /guns, /teles, /dms, /lockcar, /unlockcar, /fix, /report, /topmoney \nAdmin Level 1 Commands: \nsetcolour, settime, setweather, eject, force , burn, asay, highlight, getid, warn, laston, adminarea, hide, unhide, weapslist, morning, reports, miniguns, botcheck, duel, saveskin, useskin, dontuseskin", "Continue", "");
}
if(AccInfo[playerid][Level] >= 2)
{
ShowPlayerDialog(playerid, 14, DIALOG_STYLE_MSGBOX, "Server Commands", "Normal Player Commands: \n/rules, /cars, /guns, /teles, /dms, /lockcar, /unlockcar, /fix, /report, /topmoney \nAdmin Level 1 Commands: \nsetcolour, settime, setweather, eject, force , burn, asay, highlight, getid, warn, laston, adminarea, hide, unhide, weapslist, morning, reports, miniguns, botcheck, duel, saveskin, useskin, dontuseskin \nAdmin Level 2 Commands: \njailed, frozen, muted, mute, unmute, slap, akill", "Continue", "");
}
if(AccInfo[playerid][Level] >= 3)
{
ShowPlayerDialog(playerid, 15, DIALOG_STYLE_MSGBOX, "Server Commands", "Normal Player Commands: \n/rules, /cars, /guns, /teles, /dms, /lockcar, /unlockcar, /fix, /report, /topmoney \nAdmin Level 1 Commands: \nsetcolour, settime, setweather, eject, force , burn, asay, highlight, getid, warn, laston, adminarea, hide, unhide, weapslist, morning, reports, miniguns, botcheck, duel, saveskin, useskin, dontuseskin \nAdmin Level 2 Commands: \njailed, frozen, muted, mute, unmute, slap, akill \nAdmin Level 3 Commands: \nspawn, announce2, announce, kick, ban, spec, specvehicle, specoff, tempban, write", "Continue", "");
}
return 1;
}