01.09.2016, 05:18
Hey guys. I'm having trouble with creating a dialog. The dialog is I suppose pretty complicated.
Basically when a player types /commands, it checks what admin level they are, if they are support desk, if they are vip, if they are in an organization. etc etc. When the player selects which category they wanna view it displays the commands for whatever category they selected but it also offers "Back". When the player is in the main select menu, they can select cancel or back. However the part I'm struggling with is the cancel and back. Whenever the player selects back it needs to take the player back to the the dialog that is appropriate to them.
This problem is. I have when the player is in the main dialog they have "Select" and "Cancel", select and cancel works. However it's when the player selects a category they have "Back" and "Close" back doesn't work. It just closes. Here is the code I have.
Basically when a player types /commands, it checks what admin level they are, if they are support desk, if they are vip, if they are in an organization. etc etc. When the player selects which category they wanna view it displays the commands for whatever category they selected but it also offers "Back". When the player is in the main select menu, they can select cancel or back. However the part I'm struggling with is the cancel and back. Whenever the player selects back it needs to take the player back to the the dialog that is appropriate to them.
This problem is. I have when the player is in the main dialog they have "Select" and "Cancel", select and cancel works. However it's when the player selects a category they have "Back" and "Close" back doesn't work. It just closes. Here is the code I have.
PHP код:
if(dialogid == DIALOG_CMDS_FULL)
{
if(response)
{
if(PlayerInfo[playerid][pAdmin] == 1)
{
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, DIALOG_RP_CMDS, DIALOG_STYLE_MSGBOX, "Roleplay Commands", "/me, /do, /s, /shout", "Back", "Close");
case 1: ShowPlayerDialog(playerid, DIALOG_VEH_CMDS, DIALOG_STYLE_MSGBOX, "Vehicle Commands", "/opendoors, /closedoors, /opencarwindows, /closecarwindows, /openboot, /closeboot, /openbonnet, /closebonnet, /engine, /lights, /kph, /mph, /hidspeedo, /showspeedo", "Back", "Close");
case 2: ShowPlayerDialog(playerid, DIALOG_GEN_CMDS, DIALOG_STYLE_MSGBOX, "General Commands", "/admins, /afk, /back, /help, /report, /ask, /commands, /actions, /changename, /password, /civil", "Back", "Close");
case 3: ShowPlayerDialog(playerid, DIALOG_PH_CMDS, DIALOG_STYLE_MSGBOX, "House Commands", "/buyprop, /sellprop, /lockprop, /propdoor", "Back", "Close");
case 4: ShowPlayerDialog(playerid, DIALOG_PORG_CMDS, DIALOG_STYLE_MSGBOX, "Organization Commands", "/org, /ochat, /lc, /orgs, /want", "Back", "Close");
case 5: ShowPlayerDialog(playerid, DIALOG_LORG_CMDS, DIALOG_STYLE_MSGBOX, "Organization Leader Commands", "/orgsettier, /osetrank, /oinvite, /ouninvite", "Back", "Close");
case 6: ShowPlayerDialog(playerid, DIALOG_PBUS_CMDS, DIALOG_STYLE_MSGBOX, "Business Commands", "/bnear, /buybus, /sellbus, /lockbus, /busdoor", "Back", "Close");
case 7: ShowPlayerDialog(playerid, DIALOG_SCMDS, DIALOG_STYLE_MSGBOX, "{00E5EE}Support Commands", "/sc, /scolor, /reply, /declinehelp", "Back", "Close");
case 8: ShowPlayerDialog(playerid, DIALOG_ACMDS, DIALOG_STYLE_MSGBOX, "{FF0000}Admininstrator Commands", "{DB881A}Level 1{FFFFFF} - /asay, /kick, /freeze, /unfreeze, /ac, /clear, /disarm, /checkplayer, /spectate, /stopspec, /acceptreport, /declinereport, /reports, /weather","Back", "Close");
case 9: ShowPlayerDialog(playerid, DIALOG_VIP_CMDS, DIALOG_STYLE_MSGBOX, "{FF69B4}VIP Commands", "Nothing here, yet", "Back", "Close");
}
}
else if(PlayerInfo[playerid][pAdmin] == 2)
{
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, DIALOG_RP_CMDS, DIALOG_STYLE_MSGBOX, "Roleplay Commands", "/me, /do, /s, /shout", "Back", "Close");
case 1: ShowPlayerDialog(playerid, DIALOG_VEH_CMDS, DIALOG_STYLE_MSGBOX, "Vehicle Commands", "/opendoors, /closedoors, /opencarwindows, /closecarwindows, /openboot, /closeboot, /openbonnet, /closebonnet, /engine, /lights, /kph, /mph, /hidspeedo, /showspeedo", "Back", "Close");
case 2: ShowPlayerDialog(playerid, DIALOG_GEN_CMDS, DIALOG_STYLE_MSGBOX, "General Commands", "/admins, /afk, /back, /help, /report, /ask, /commands, /actions, /changename, /password, /civil", "Back", "Close");
case 3: ShowPlayerDialog(playerid, DIALOG_PH_CMDS, DIALOG_STYLE_MSGBOX, "House Commands", "/buyprop, /sellprop, /lockprop, /propdoor", "Back", "Close");
case 4: ShowPlayerDialog(playerid, DIALOG_PORG_CMDS, DIALOG_STYLE_MSGBOX, "Organization Commands", "/org, /ochat, /lc, /orgs, /want", "Back", "Close");
case 5: ShowPlayerDialog(playerid, DIALOG_LORG_CMDS, DIALOG_STYLE_MSGBOX, "Organization Leader Commands", "/orgsettier, /osetrank, /oinvite, /ouninvite", "Back", "Close");
case 6: ShowPlayerDialog(playerid, DIALOG_PBUS_CMDS, DIALOG_STYLE_MSGBOX, "Business Commands", "/bnear, /buybus, /sellbus, /lockbus, /busdoor", "Back", "Close");
case 7: ShowPlayerDialog(playerid, DIALOG_SCMDS, DIALOG_STYLE_MSGBOX, "{00E5EE}Support Commands", "/sc, /scolor, /reply, /declinehelp", "Back", "Close");
case 8: ShowPlayerDialog(playerid, DIALOG_ACMDS, DIALOG_STYLE_MSGBOX, "{FF0000}Admininstrator Commands", "{DB881A}Level 1{FFFFFF} - /asay, /kick, /freeze, /unfreeze, /ac, /clear, /disarm, /checkplayer, /spectate, /stopspec, /acceptreport, /declinereport, /reports, /weather\n{1B1BE0}Level 2{FFFFFF} - /goto, /get, /banip, /ban, /listen, /settime", "Back", "Close");
case 9: ShowPlayerDialog(playerid, DIALOG_VIP_CMDS, DIALOG_STYLE_MSGBOX, "{FF69B4}VIP Commands", "Nothing here, yet", "Back", "Close");
}
}
else if(PlayerInfo[playerid][pAdmin] == 3)
{
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, DIALOG_RP_CMDS, DIALOG_STYLE_MSGBOX, "Roleplay Commands", "/me, /do, /s, /shout", "Back", "Close");
case 1: ShowPlayerDialog(playerid, DIALOG_VEH_CMDS, DIALOG_STYLE_MSGBOX, "Vehicle Commands", "/opendoors, /closedoors, /opencarwindows, /closecarwindows, /openboot, /closeboot, /openbonnet, /closebonnet, /engine, /lights, /kph, /mph, /hidspeedo, /showspeedo", "Back", "Close");
case 2: ShowPlayerDialog(playerid, DIALOG_GEN_CMDS, DIALOG_STYLE_MSGBOX, "General Commands", "/admins, /afk, /back, /help, /report, /ask, /commands, /actions, /changename, /password, /civil", "Back", "Close");
case 3: ShowPlayerDialog(playerid, DIALOG_PH_CMDS, DIALOG_STYLE_MSGBOX, "House Commands", "/buyprop, /sellprop, /lockprop, /propdoor", "Back", "Close");
case 4: ShowPlayerDialog(playerid, DIALOG_PORG_CMDS, DIALOG_STYLE_MSGBOX, "Organization Commands", "/org, /ochat, /lc, /orgs, /want", "Back", "Close");
case 5: ShowPlayerDialog(playerid, DIALOG_LORG_CMDS, DIALOG_STYLE_MSGBOX, "Organization Leader Commands", "/orgsettier, /osetrank, /oinvite, /ouninvite", "Back", "Close");
case 6: ShowPlayerDialog(playerid, DIALOG_PBUS_CMDS, DIALOG_STYLE_MSGBOX, "Business Commands", "/bnear, /buybus, /sellbus, /lockbus, /busdoor", "Back", "Close");
case 7: ShowPlayerDialog(playerid, DIALOG_SCMDS, DIALOG_STYLE_MSGBOX, "{00E5EE}Support Commands", "/sc, /scolor, /reply, /declinehelp", "Back", "Close");
case 8: ShowPlayerDialog(playerid, DIALOG_ACMDS, DIALOG_STYLE_MSGBOX, "{FF0000}Admininstrator Commands", "{DB881A}Level 1{FFFFFF} - /asay, /kick, /freeze, /unfreeze, /ac, /clear, /disarm, /checkplayer, /spectate, /stopspec, /acceptreport, /declinereport, /reports, /weather\n{1B1BE0}Level 2{FFFFFF} - /goto, /get, /banip, /ban, /listen, /settime\n{7340DB}Level 3{FFFFFF} - /vdestroy, /heal, /giveweapon, /setskin, /givemoney, /deleteport, /deleteallreports, /setfuel", "Back", "Close");
case 9: ShowPlayerDialog(playerid, DIALOG_VIP_CMDS, DIALOG_STYLE_MSGBOX, "{FF69B4}VIP Commands", "Nothing here, yet", "Back", "Close");
}
}
else if(PlayerInfo[playerid][pAdmin] == 4)
{
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, DIALOG_RP_CMDS, DIALOG_STYLE_MSGBOX, "Roleplay Commands", "/me, /do, /s, /shout", "Back", "Close");
case 1: ShowPlayerDialog(playerid, DIALOG_VEH_CMDS, DIALOG_STYLE_MSGBOX, "Vehicle Commands", "/opendoors, /closedoors, /opencarwindows, /closecarwindows, /openboot, /closeboot, /openbonnet, /closebonnet, /engine, /lights, /kph, /mph, /hidspeedo, /showspeedo", "Back", "Close");
case 2: ShowPlayerDialog(playerid, DIALOG_GEN_CMDS, DIALOG_STYLE_MSGBOX, "General Commands", "/admins, /afk, /back, /help, /report, /ask, /commands, /actions, /changename, /password, /civil", "Back", "Close");
case 3: ShowPlayerDialog(playerid, DIALOG_PH_CMDS, DIALOG_STYLE_MSGBOX, "House Commands", "/buyprop, /sellprop, /lockprop, /propdoor", "Back", "Close");
case 4: ShowPlayerDialog(playerid, DIALOG_PORG_CMDS, DIALOG_STYLE_MSGBOX, "Organization Commands", "/org, /ochat, /lc, /orgs, /want", "Back", "Close");
case 5: ShowPlayerDialog(playerid, DIALOG_LORG_CMDS, DIALOG_STYLE_MSGBOX, "Organization Leader Commands", "/orgsettier, /osetrank, /oinvite, /ouninvite", "Back", "Close");
case 6: ShowPlayerDialog(playerid, DIALOG_PBUS_CMDS, DIALOG_STYLE_MSGBOX, "Business Commands", "/bnear, /buybus, /sellbus, /lockbus, /busdoor", "Back", "Close");
case 7: ShowPlayerDialog(playerid, DIALOG_SCMDS, DIALOG_STYLE_MSGBOX, "{00E5EE}Support Commands", "/sc, /scolor, /reply, /declinehelp", "Back", "Close");
case 8: ShowPlayerDialog(playerid, DIALOG_ACMDS, DIALOG_STYLE_MSGBOX, "{FF0000}Admininstrator Commands",
"{DB881A}Level 1{FFFFFF} - /asay, /kick, /freeze, /unfreeze, /ac, /clear, /disarm, /checkplayer, /spectate, /stopspec, /acceptreport, /declinereport, /reports, /weather\n" \
"{1B1BE0}Level 2{FFFFFF} - /goto, /get, /banip, /ban, /listen, /settime\n" \
"{7340DB}Level 3{FFFFFF} - /vdestroy, /heal, /giveweapon, /setskin, /givemoney, /deleteport, /deleteallreports, /setfuel\n" \
"{8CED15}Level 4{FFFFFF} - /oban, /unban, /sac, /vehicle, /healall, /dycmds, /setsmember, /setname", "Back", "Close");
case 9: ShowPlayerDialog(playerid, DIALOG_VIP_CMDS, DIALOG_STYLE_MSGBOX, "{FF69B4}VIP Commands", "Nothing here, yet", "Back", "Close");
}
}
else if(PlayerInfo[playerid][pAdmin] >= 5)
{
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, DIALOG_RP_CMDS, DIALOG_STYLE_MSGBOX, "Roleplay Commands", "/me, /do, /s, /shout", "Back", "Close");
case 1: ShowPlayerDialog(playerid, DIALOG_VEH_CMDS, DIALOG_STYLE_MSGBOX, "Vehicle Commands", "/opendoors, /closedoors, /opencarwindows, /closecarwindows, /openboot, /closeboot, /openbonnet, /closebonnet, /engine, /lights, /kph, /mph, /hidspeedo, /showspeedo", "Back", "Close");
case 2: ShowPlayerDialog(playerid, DIALOG_GEN_CMDS, DIALOG_STYLE_MSGBOX, "General Commands", "/admins, /afk, /back, /help, /report, /ask, /commands, /actions, /changename, /password, /civil", "Back", "Close");
case 3: ShowPlayerDialog(playerid, DIALOG_PH_CMDS, DIALOG_STYLE_MSGBOX, "House Commands", "/buyprop, /sellprop, /lockprop, /propdoor", "Back", "Close");
case 4: ShowPlayerDialog(playerid, DIALOG_PORG_CMDS, DIALOG_STYLE_MSGBOX, "Organization Commands", "/org, /ochat, /lc, /orgs, /want", "Back", "Close");
case 5: ShowPlayerDialog(playerid, DIALOG_LORG_CMDS, DIALOG_STYLE_MSGBOX, "Organization Leader Commands", "/orgsettier, /osetrank, /oinvite, /ouninvite", "Back", "Close");
case 6: ShowPlayerDialog(playerid, DIALOG_PBUS_CMDS, DIALOG_STYLE_MSGBOX, "Business Commands", "/bnear, /buybus, /sellbus, /lockbus, /busdoor", "Back", "Close");
case 7: ShowPlayerDialog(playerid, DIALOG_SCMDS, DIALOG_STYLE_MSGBOX, "{00E5EE}Support Commands", "/sc, /scolor, /reply, /declinehelp", "Back", "Close");
case 8:
{
static chmds_admin[462 + 65 + 1] =
"{DB881A}Level 1{FFFFFF} - /asay, /kick, /freeze, /unfreeze, /ac, /clear, /disarm, /checkplayer, /spectate, /stopspec, /acceptreport, /declinereport, /reports, /weather\n" \
"{1B1BE0}Level 2{FFFFFF} - /goto, /get, /banip, /ban, /listen, /settime\n" \
"{7340DB}Level 3{FFFFFF} - /vdestroy, /heal, /giveweapon, /setskin, /givemoney, /deleteport, /deleteallreports, /setfuel\n" \
"{8CED15}Level 4{FFFFFF} - /oban, /unban, /sac, /vehicle, /healall, /dycmds, /setsmember, /setname\n";
strcat(chmds_admin, "{37DB45}Level 5{FFFFFF} - /setadmin, /setadminuc, /gmx, /asetpass");
ShowPlayerDialog(playerid, DIALOG_CMDS_ADMIN, DIALOG_STYLE_MSGBOX, "{FF0000}Admininstrator Commands", chmds_admin, "Back", "Close");
}
case 9: ShowPlayerDialog(playerid, DIALOG_VIP_CMDS, DIALOG_STYLE_MSGBOX, "{FF69B4}VIP Commands", "Nothing here, yet", "Back", "Close");
}
}
}
else
{
ShowPlayerDialog (playerid, DIALOG_CMDS_FULL, DIALOG_STYLE_LIST, "Command Categories", "Roleplay Commands\nVehicle Commands\nGeneral Commands\nHouse Commands\nOrganization Commands\nOrganization Leader Commands\nBusiness Commands\nSupport Commands\nAdmin Commands\nVIP Commands", "Select", "Cancel");
}
}
if(dialogid == DIALOG_CMDS_ADMIN)
{
if(response)
{
if(PlayerInfo[playerid][pAdmin] == 1)
{
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, DIALOG_RP_CMDS, DIALOG_STYLE_MSGBOX, "Roleplay Commands", "/me, /do, /s, /shout", "Back", "Close");
case 1: ShowPlayerDialog(playerid, DIALOG_VEH_CMDS, DIALOG_STYLE_MSGBOX, "Vehicle Commands", "/opendoors, /closedoors, /opencarwindows, /closecarwindows, /openboot, /closeboot, /openbonnet, /closebonnet, /engine, /lights, /kph, /mph, /hidspeedo, /showspeedo", "Back", "Close");
case 2: ShowPlayerDialog(playerid, DIALOG_GEN_CMDS, DIALOG_STYLE_MSGBOX, "General Commands", "/admins, /afk, /back, /help, /report, /ask, /commands, /actions, /changename, /password, /civil", "Back", "Close");
case 3: ShowPlayerDialog(playerid, DIALOG_PH_CMDS, DIALOG_STYLE_MSGBOX, "House Commands", "/buyprop, /sellprop, /lockprop, /propdoor", "Back", "Close");
case 4: ShowPlayerDialog(playerid, DIALOG_PORG_CMDS, DIALOG_STYLE_MSGBOX, "Organization Commands", "/org, /ochat, /lc, /orgs, /want", "Back", "Close");
case 5: ShowPlayerDialog(playerid, DIALOG_PBUS_CMDS, DIALOG_STYLE_MSGBOX, "Business Commands", "/bnear, /buybus, /sellbus, /lockbus, /busdoor", "Back", "Close");
case 6: ShowPlayerDialog(playerid, DIALOG_SCMDS, DIALOG_STYLE_MSGBOX, "{00E5EE}Support Commands", "/sc, /scolor, /reply, /declinehelp", "Back", "Close");
case 7: ShowPlayerDialog(playerid, DIALOG_ACMDS, DIALOG_STYLE_MSGBOX, "{FF0000}Admininstrator Commands", "{DB881A}Level 1{FFFFFF} - /asay, /kick, /freeze, /unfreeze, /ac, /clear, /disarm, /checkplayer, /spectate, /stopspec, /acceptreport, /declinereport, /reports, /weather","Back", "Close");
case 8: ShowPlayerDialog(playerid, DIALOG_VIP_CMDS, DIALOG_STYLE_MSGBOX, "{FF69B4}VIP Commands", "Nothing here, yet", "Back", "Close");
}
}
else if(PlayerInfo[playerid][pAdmin] == 2)
{
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, DIALOG_RP_CMDS, DIALOG_STYLE_MSGBOX, "Roleplay Commands", "/me, /do, /s, /shout", "Back", "Close");
case 1: ShowPlayerDialog(playerid, DIALOG_VEH_CMDS, DIALOG_STYLE_MSGBOX, "Vehicle Commands", "/opendoors, /closedoors, /opencarwindows, /closecarwindows, /openboot, /closeboot, /openbonnet, /closebonnet, /engine, /lights, /kph, /mph, /hidspeedo, /showspeedo", "Back", "Close");
case 2: ShowPlayerDialog(playerid, DIALOG_GEN_CMDS, DIALOG_STYLE_MSGBOX, "General Commands", "/admins, /afk, /back, /help, /report, /ask, /commands, /actions, /changename, /password, /civil", "Back", "Close");
case 3: ShowPlayerDialog(playerid, DIALOG_PH_CMDS, DIALOG_STYLE_MSGBOX, "House Commands", "/buyprop, /sellprop, /lockprop, /propdoor", "Back", "Close");
case 4: ShowPlayerDialog(playerid, DIALOG_PORG_CMDS, DIALOG_STYLE_MSGBOX, "Organization Commands", "/org, /ochat, /lc, /orgs, /want", "Back", "Close");
case 5: ShowPlayerDialog(playerid, DIALOG_PBUS_CMDS, DIALOG_STYLE_MSGBOX, "Business Commands", "/bnear, /buybus, /sellbus, /lockbus, /busdoor", "Back", "Close");
case 6: ShowPlayerDialog(playerid, DIALOG_SCMDS, DIALOG_STYLE_MSGBOX, "{00E5EE}Support Commands", "/sc, /scolor, /reply, /declinehelp", "Back", "Close");
case 7: ShowPlayerDialog(playerid, DIALOG_ACMDS, DIALOG_STYLE_MSGBOX, "{FF0000}Admininstrator Commands", "{DB881A}Level 1{FFFFFF} - /asay, /kick, /freeze, /unfreeze, /ac, /clear, /disarm, /checkplayer, /spectate, /stopspec, /acceptreport, /declinereport, /reports, /weather\n{1B1BE0}Level 2{FFFFFF} - /goto, /get, /banip, /ban, /listen, /settime", "Back", "Close");
case 8: ShowPlayerDialog(playerid, DIALOG_VIP_CMDS, DIALOG_STYLE_MSGBOX, "{FF69B4}VIP Commands", "Nothing here, yet", "Back", "Close");
}
}
else if(PlayerInfo[playerid][pAdmin] == 3)
{
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, DIALOG_RP_CMDS, DIALOG_STYLE_MSGBOX, "Roleplay Commands", "/me, /do, /s, /shout", "Back", "Close");
case 1: ShowPlayerDialog(playerid, DIALOG_VEH_CMDS, DIALOG_STYLE_MSGBOX, "Vehicle Commands", "/opendoors, /closedoors, /opencarwindows, /closecarwindows, /openboot, /closeboot, /openbonnet, /closebonnet, /engine, /lights, /kph, /mph, /hidspeedo, /showspeedo", "Back", "Close");
case 2: ShowPlayerDialog(playerid, DIALOG_GEN_CMDS, DIALOG_STYLE_MSGBOX, "General Commands", "/admins, /afk, /back, /help, /report, /ask, /commands, /actions, /changename, /password, /civil", "Back", "Close");
case 3: ShowPlayerDialog(playerid, DIALOG_PH_CMDS, DIALOG_STYLE_MSGBOX, "House Commands", "/buyprop, /sellprop, /lockprop, /propdoor", "Back", "Close");
case 4: ShowPlayerDialog(playerid, DIALOG_PORG_CMDS, DIALOG_STYLE_MSGBOX, "Organization Commands", "/org, /ochat, /lc, /orgs, /want", "Back", "Close");
case 5: ShowPlayerDialog(playerid, DIALOG_PBUS_CMDS, DIALOG_STYLE_MSGBOX, "Business Commands", "/bnear, /buybus, /sellbus, /lockbus, /busdoor", "Back", "Close");
case 6: ShowPlayerDialog(playerid, DIALOG_SCMDS, DIALOG_STYLE_MSGBOX, "{00E5EE}Support Commands", "/sc, /scolor, /reply, /declinehelp", "Back", "Close");
case 7: ShowPlayerDialog(playerid, DIALOG_ACMDS, DIALOG_STYLE_MSGBOX, "{FF0000}Admininstrator Commands", "{DB881A}Level 1{FFFFFF} - /asay, /kick, /freeze, /unfreeze, /ac, /clear, /disarm, /checkplayer, /spectate, /stopspec, /acceptreport, /declinereport, /reports, /weather\n{1B1BE0}Level 2{FFFFFF} - /goto, /get, /banip, /ban, /listen, /settime\n{7340DB}Level 3{FFFFFF} - /vdestroy, /heal, /giveweapon, /setskin, /givemoney, /deleteport, /deleteallreports, /setfuel", "Back", "Close");
case 8: ShowPlayerDialog(playerid, DIALOG_VIP_CMDS, DIALOG_STYLE_MSGBOX, "{FF69B4}VIP Commands", "Nothing here, yet", "Back", "Close");
}
}
else if(PlayerInfo[playerid][pAdmin] == 4)
{
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, DIALOG_RP_CMDS, DIALOG_STYLE_MSGBOX, "Roleplay Commands", "/me, /do, /s, /shout", "Back", "Close");
case 1: ShowPlayerDialog(playerid, DIALOG_VEH_CMDS, DIALOG_STYLE_MSGBOX, "Vehicle Commands", "/opendoors, /closedoors, /opencarwindows, /closecarwindows, /openboot, /closeboot, /openbonnet, /closebonnet, /engine, /lights, /kph, /mph, /hidspeedo, /showspeedo", "Back", "Close");
case 2: ShowPlayerDialog(playerid, DIALOG_GEN_CMDS, DIALOG_STYLE_MSGBOX, "General Commands", "/admins, /afk, /back, /help, /report, /ask, /commands, /actions, /changename, /password, /civil", "Back", "Close");
case 3: ShowPlayerDialog(playerid, DIALOG_PH_CMDS, DIALOG_STYLE_MSGBOX, "House Commands", "/buyprop, /sellprop, /lockprop, /propdoor", "Back", "Close");
case 4: ShowPlayerDialog(playerid, DIALOG_PORG_CMDS, DIALOG_STYLE_MSGBOX, "Organization Commands", "/org, /ochat, /lc, /orgs, /want", "Back", "Close");
case 5: ShowPlayerDialog(playerid, DIALOG_PBUS_CMDS, DIALOG_STYLE_MSGBOX, "Business Commands", "/bnear, /buybus, /sellbus, /lockbus, /busdoor", "Back", "Close");
case 6: ShowPlayerDialog(playerid, DIALOG_SCMDS, DIALOG_STYLE_MSGBOX, "{00E5EE}Support Commands", "/sc, /scolor, /reply, /declinehelp", "Back", "Close");
case 7: ShowPlayerDialog(playerid, DIALOG_ACMDS, DIALOG_STYLE_MSGBOX, "{FF0000}Admininstrator Commands",
"{DB881A}Level 1{FFFFFF} - /asay, /kick, /freeze, /unfreeze, /ac, /clear, /disarm, /checkplayer, /spectate, /stopspec, /acceptreport, /declinereport, /reports, /weather\n" \
"{1B1BE0}Level 2{FFFFFF} - /goto, /get, /banip, /ban, /listen, /settime\n" \
"{7340DB}Level 3{FFFFFF} - /vdestroy, /heal, /giveweapon, /setskin, /givemoney, /deleteport, /deleteallreports, /setfuel\n" \
"{8CED15}Level 4{FFFFFF} - /oban, /unban, /sac, /vehicle, /healall, /dycmds, /setsmember, /setname", "Back", "Close");
case 8: ShowPlayerDialog(playerid, DIALOG_VIP_CMDS, DIALOG_STYLE_MSGBOX, "{FF69B4}VIP Commands", "Nothing here, yet", "Back", "Close");
}
}
else if(PlayerInfo[playerid][pAdmin] >= 5)
{
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, DIALOG_RP_CMDS, DIALOG_STYLE_MSGBOX, "Roleplay Commands", "/me, /do, /s, /shout", "Back", "Close");
case 1: ShowPlayerDialog(playerid, DIALOG_VEH_CMDS, DIALOG_STYLE_MSGBOX, "Vehicle Commands", "/opendoors, /closedoors, /opencarwindows, /closecarwindows, /openboot, /closeboot, /openbonnet, /closebonnet, /engine, /lights, /kph, /mph, /hidspeedo, /showspeedo", "Back", "Close");
case 2: ShowPlayerDialog(playerid, DIALOG_GEN_CMDS, DIALOG_STYLE_MSGBOX, "General Commands", "/admins, /afk, /back, /help, /report, /ask, /commands, /actions, /changename, /password, /civil", "Back", "Close");
case 3: ShowPlayerDialog(playerid, DIALOG_PH_CMDS, DIALOG_STYLE_MSGBOX, "House Commands", "/buyprop, /sellprop, /lockprop, /propdoor", "Back", "Close");
case 4: ShowPlayerDialog(playerid, DIALOG_PORG_CMDS, DIALOG_STYLE_MSGBOX, "Organization Commands", "/org, /ochat, /lc, /orgs, /want", "Back", "Close");
case 5: ShowPlayerDialog(playerid, DIALOG_PBUS_CMDS, DIALOG_STYLE_MSGBOX, "Business Commands", "/bnear, /buybus, /sellbus, /lockbus, /busdoor", "Back", "Close");
case 6: ShowPlayerDialog(playerid, DIALOG_SCMDS, DIALOG_STYLE_MSGBOX, "{00E5EE}Support Commands", "/sc, /scolor, /reply, /declinehelp", "Back", "Close");
case 7:
{
static cmds_admin[462 + 65 + 1] =
"{DB881A}Level 1{FFFFFF} - /asay, /kick, /freeze, /unfreeze, /ac, /clear, /disarm, /checkplayer, /spectate, /stopspec, /acceptreport, /declinereport, /reports, /weather\n" \
"{1B1BE0}Level 2{FFFFFF} - /goto, /get, /banip, /ban, /listen, /settime\n" \
"{7340DB}Level 3{FFFFFF} - /vdestroy, /heal, /giveweapon, /setskin, /givemoney, /deleteport, /deleteallreports, /setfuel\n" \
"{8CED15}Level 4{FFFFFF} - /oban, /unban, /sac, /vehicle, /healall, /dycmds, /setsmember, /setname\n";
strcat(cmds_admin, "{37DB45}Level 5{FFFFFF} - /setadmin, /setadminuc, /gmx, /asetpass");
ShowPlayerDialog(playerid, DIALOG_CMDS_ADMIN, DIALOG_STYLE_MSGBOX, "{FF0000}Admininstrator Commands", cmds_admin, "Back", "Close");
}
case 8: ShowPlayerDialog(playerid, DIALOG_VIP_CMDS, DIALOG_STYLE_MSGBOX, "{FF69B4}VIP Commands", "Nothing here, yet", "Back", "Close");
}
}
}
}
if(dialogid == DIALOG_CMDS_SUPPORTVIP)
{
if(response)
{
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, DIALOG_RP_CMDS, DIALOG_STYLE_MSGBOX, "Roleplay Commands", "/me, /do, /s, /shout", "Back", "Close");
case 1: ShowPlayerDialog(playerid, DIALOG_VEH_CMDS, DIALOG_STYLE_MSGBOX, "Vehicle Commands", "/opendoors, /closedoors, /opencarwindows, /closecarwindows, /openboot, /closeboot, /openbonnet, /closebonnet, /engine, /lights, /kph, /mph, /hidspeedo, /showspeedo", "Back", "Close");
case 2: ShowPlayerDialog(playerid, DIALOG_GEN_CMDS, DIALOG_STYLE_MSGBOX, "General Commands", "/admins, /afk, /back, /help, /report, /ask, /commands, /actions, /changename, /password, /civil", "Back", "Close");
case 3: ShowPlayerDialog(playerid, DIALOG_PH_CMDS, DIALOG_STYLE_MSGBOX, "House Commands", "/buyprop, /sellprop, /lockprop, /propdoor", "Back", "Close");
case 4: ShowPlayerDialog(playerid, DIALOG_PORG_CMDS, DIALOG_STYLE_MSGBOX, "Organization Commands", "/org, /ochat, /lc, /orgs, /want", "Back", "Close");
case 5: ShowPlayerDialog(playerid, DIALOG_PBUS_CMDS, DIALOG_STYLE_MSGBOX, "Business Commands", "/bnear, /buybus, /sellbus, /lockbus, /busdoor", "Back", "Close");
case 6: ShowPlayerDialog(playerid, DIALOG_SCMDS, DIALOG_STYLE_MSGBOX, "{00E5EE}Support Commands", "/sc, /scolor, /reply, /declinehelp", "Back", "Close");
case 7: ShowPlayerDialog(playerid, DIALOG_VIP_CMDS, DIALOG_STYLE_MSGBOX, "{FF69B4}VIP Commands", "Nothing here, yet", "Back", "Close");
}
}
else
{
ShowPlayerDialog (playerid, DIALOG_CMDS_SUPPORTVIP, DIALOG_STYLE_LIST, "Command Categories", "Roleplay Commands\nVehicle Commands\nGeneral Commands\nHouse Commands\nOrganization Commands\nBusiness Commands\nSupport Commands\nVIP Commands", "Select", "Cancel");
}
}
if(dialogid == DIALOG_CMDS_SUPPORT)
{
if(response)
{
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, DIALOG_RP_CMDS, DIALOG_STYLE_MSGBOX, "Roleplay Commands", "/me, /do, /s, /shout", "Back", "Close");
case 1: ShowPlayerDialog(playerid, DIALOG_VEH_CMDS, DIALOG_STYLE_MSGBOX, "Vehicle Commands", "/opendoors, /closedoors, /opencarwindows, /closecarwindows, /openboot, /closeboot, /openbonnet, /closebonnet, /engine, /lights, /kph, /mph, /hidspeedo, /showspeedo", "Back", "Close");
case 2: ShowPlayerDialog(playerid, DIALOG_GEN_CMDS, DIALOG_STYLE_MSGBOX, "General Commands", "/admins, /afk, /back, /help, /report, /ask, /commands, /actions, /changename, /password, /civil", "Back", "Close");
case 3: ShowPlayerDialog(playerid, DIALOG_PH_CMDS, DIALOG_STYLE_MSGBOX, "House Commands", "/buyprop, /sellprop, /lockprop, /propdoor", "Back", "Close");
case 4: ShowPlayerDialog(playerid, DIALOG_PORG_CMDS, DIALOG_STYLE_MSGBOX, "Organization Commands", "/org, /ochat, /lc, /orgs, /want", "Back", "Close");
case 5: ShowPlayerDialog(playerid, DIALOG_PBUS_CMDS, DIALOG_STYLE_MSGBOX, "Business Commands", "/bnear, /buybus, /sellbus, /lockbus, /busdoor", "Back", "Close");
case 6: ShowPlayerDialog(playerid, DIALOG_SCMDS, DIALOG_STYLE_MSGBOX, "{00E5EE}Support Commands", "/sc, /scolor, /reply, /declinehelp", "Back", "Close");
}
}
else
{
ShowPlayerDialog (playerid, DIALOG_CMDS_SUPPORT, DIALOG_STYLE_LIST, "Command Categories", "Roleplay Commands\nVehicle Commands\nGeneral Commands\nHouse Commands\nOrganization Commands\nBusiness Commands\nSupport Commands", "Select", "Cancel");
}
}
if(dialogid == DIALOG_CMDS_VIP)
{
if(response)
{
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, DIALOG_RP_CMDS, DIALOG_STYLE_MSGBOX, "Roleplay Commands", "/me, /do, /s, /shout", "Back", "Close");
case 1: ShowPlayerDialog(playerid, DIALOG_VEH_CMDS, DIALOG_STYLE_MSGBOX, "Vehicle Commands", "/opendoors, /closedoors, /opencarwindows, /closecarwindows, /openboot, /closeboot, /openbonnet, /closebonnet, /engine, /lights, /kph, /mph, /hidspeedo, /showspeedo", "Back", "Close");
case 2: ShowPlayerDialog(playerid, DIALOG_GEN_CMDS, DIALOG_STYLE_MSGBOX, "General Commands", "/admins, /afk, /back, /help, /report, /ask, /commands, /actions, /changename, /password, /civil", "Back", "Close");
case 3: ShowPlayerDialog(playerid, DIALOG_PH_CMDS, DIALOG_STYLE_MSGBOX, "House Commands", "/buyprop, /sellprop, /lockprop, /propdoor", "Back", "Close");
case 4: ShowPlayerDialog(playerid, DIALOG_PORG_CMDS, DIALOG_STYLE_MSGBOX, "Organization Commands", "/org, /ochat, /lc, /orgs, /want", "Back", "Close");
case 5: ShowPlayerDialog(playerid, DIALOG_PBUS_CMDS, DIALOG_STYLE_MSGBOX, "Business Commands", "/bnear, /buybus, /sellbus, /lockbus, /busdoor", "Back", "Close");
case 6: ShowPlayerDialog(playerid, DIALOG_VIP_CMDS, DIALOG_STYLE_MSGBOX, "{FF69B4}VIP Commands", "Nothing here, yet", "Back", "Close");
}
}
else
{
ShowPlayerDialog (playerid, DIALOG_CMDS_VIP, DIALOG_STYLE_LIST, "Command Categories", "Roleplay Commands\nVehicle Commands\nGeneral Commands\nHouse Commands\nOrganization Commands\nBusiness Commands\nVIP Commands", "Select", "Cancel");
}
}
if(dialogid == DIALOG_CMDS_OSV)
{
if(response)
{
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, DIALOG_RP_CMDS, DIALOG_STYLE_MSGBOX, "Roleplay Commands", "/me, /do, /s, /shout", "Back", "Close");
case 1: ShowPlayerDialog(playerid, DIALOG_VEH_CMDS, DIALOG_STYLE_MSGBOX, "Vehicle Commands", "/opendoors, /closedoors, /opencarwindows, /closecarwindows, /openboot, /closeboot, /openbonnet, /closebonnet, /engine, /lights, /kph, /mph, /hidspeedo, /showspeedo", "Back", "Close");
case 2: ShowPlayerDialog(playerid, DIALOG_GEN_CMDS, DIALOG_STYLE_MSGBOX, "General Commands", "/admins, /afk, /back, /help, /report, /ask, /commands, /actions, /changename, /password, /civil", "Back", "Close");
case 3: ShowPlayerDialog(playerid, DIALOG_PH_CMDS, DIALOG_STYLE_MSGBOX, "House Commands", "/buyprop, /sellprop, /lockprop, /propdoor", "Back", "Close");
case 4: ShowPlayerDialog(playerid, DIALOG_PORG_CMDS, DIALOG_STYLE_MSGBOX, "Organization Commands", "/org, /ochat, /lc, /orgs, /want", "Back", "Close");
case 5: ShowPlayerDialog(playerid, DIALOG_LORG_CMDS, DIALOG_STYLE_MSGBOX, "Organization Leader Commands", "/orgsettier, /osetrank, /oinvite, /ouninvite", "Back", "Close");
case 6: ShowPlayerDialog(playerid, DIALOG_PBUS_CMDS, DIALOG_STYLE_MSGBOX, "Business Commands", "/bnear, /buybus, /sellbus, /lockbus, /busdoor", "Back", "Close");
case 7: ShowPlayerDialog(playerid, DIALOG_SCMDS, DIALOG_STYLE_MSGBOX, "{00E5EE}Support Commands", "/sc, /scolor, /reply, /declinehelp", "Back", "Close");
case 8: ShowPlayerDialog(playerid, DIALOG_VIP_CMDS, DIALOG_STYLE_MSGBOX, "{FF69B4}VIP Commands", "Nothing here, yet", "Back", "Close");
}
}
else
{
ShowPlayerDialog (playerid, DIALOG_CMDS_OSV, DIALOG_STYLE_LIST, "Command Categories", "Roleplay Commands\nVehicle Commands\nGeneral Commands\nHouse Commands\nOrganization Commands\nOrganization Leader Commands\nBusiness Commands\nSupport Commands\nVIP Commands", "Select", "Cancel");
}
}
if(dialogid == DIALOG_CMDS_OS)
{
if(response)
{
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, DIALOG_RP_CMDS, DIALOG_STYLE_MSGBOX, "Roleplay Commands", "/me, /do, /s, /shout", "Back", "Close");
case 1: ShowPlayerDialog(playerid, DIALOG_VEH_CMDS, DIALOG_STYLE_MSGBOX, "Vehicle Commands", "/opendoors, /closedoors, /opencarwindows, /closecarwindows, /openboot, /closeboot, /openbonnet, /closebonnet, /engine, /lights, /kph, /mph, /hidspeedo, /showspeedo", "Back", "Close");
case 2: ShowPlayerDialog(playerid, DIALOG_GEN_CMDS, DIALOG_STYLE_MSGBOX, "General Commands", "/admins, /afk, /back, /help, /report, /ask, /commands, /actions, /changename, /password, /civil", "Back", "Close");
case 3: ShowPlayerDialog(playerid, DIALOG_PH_CMDS, DIALOG_STYLE_MSGBOX, "House Commands", "/buyprop, /sellprop, /lockprop, /propdoor", "Back", "Close");
case 4: ShowPlayerDialog(playerid, DIALOG_PORG_CMDS, DIALOG_STYLE_MSGBOX, "Organization Commands", "/org, /ochat, /lc, /orgs, /want", "Back", "Close");
case 5: ShowPlayerDialog(playerid, DIALOG_LORG_CMDS, DIALOG_STYLE_MSGBOX, "Organization Leader Commands", "/orgsettier, /osetrank, /oinvite, /ouninvite", "Back", "Close");
case 6: ShowPlayerDialog(playerid, DIALOG_PBUS_CMDS, DIALOG_STYLE_MSGBOX, "Business Commands", "/bnear, /buybus, /sellbus, /lockbus, /busdoor", "Back", "Close");
case 7: ShowPlayerDialog(playerid, DIALOG_SCMDS, DIALOG_STYLE_MSGBOX, "{00E5EE}Support Commands", "/sc, /scolor, /reply, /declinehelp", "Back", "Close");
}
}
else
{
ShowPlayerDialog (playerid, DIALOG_CMDS_OS, DIALOG_STYLE_LIST, "Command Categories", "Roleplay Commands\nVehicle Commands\nGeneral Commands\nHouse Commands\nOrganization Commands\nOrganization Leader Commands\nBusiness Commands\nSupport Commands", "Select", "Cancel");
}
}
if(dialogid == DIALOG_CMDS_OV)
{
if(response)
{
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, DIALOG_RP_CMDS, DIALOG_STYLE_MSGBOX, "Roleplay Commands", "/me, /do, /s, /shout", "Back", "Close");
case 1: ShowPlayerDialog(playerid, DIALOG_VEH_CMDS, DIALOG_STYLE_MSGBOX, "Vehicle Commands", "/opendoors, /closedoors, /opencarwindows, /closecarwindows, /openboot, /closeboot, /openbonnet, /closebonnet, /engine, /lights, /kph, /mph, /hidspeedo, /showspeedo", "Back", "Close");
case 2: ShowPlayerDialog(playerid, DIALOG_GEN_CMDS, DIALOG_STYLE_MSGBOX, "General Commands", "/admins, /afk, /back, /help, /report, /ask, /commands, /actions, /changename, /password, /civil", "Back", "Close");
case 3: ShowPlayerDialog(playerid, DIALOG_PH_CMDS, DIALOG_STYLE_MSGBOX, "House Commands", "/buyprop, /sellprop, /lockprop, /propdoor", "Back", "Close");
case 4: ShowPlayerDialog(playerid, DIALOG_PORG_CMDS, DIALOG_STYLE_MSGBOX, "Organization Commands", "/org, /ochat, /lc, /orgs, /want", "Back", "Close");
case 5: ShowPlayerDialog(playerid, DIALOG_LORG_CMDS, DIALOG_STYLE_MSGBOX, "Organization Leader Commands", "/orgsettier, /osetrank, /oinvite, /ouninvite", "Back", "Close");
case 6: ShowPlayerDialog(playerid, DIALOG_PBUS_CMDS, DIALOG_STYLE_MSGBOX, "Business Commands", "/bnear, /buybus, /sellbus, /lockbus, /busdoor", "Back", "Close");
case 7: ShowPlayerDialog(playerid, DIALOG_VIP_CMDS, DIALOG_STYLE_MSGBOX, "{FF69B4}VIP Commands", "Nothing here, yet", "Back", "Close");
}
}
else
{
ShowPlayerDialog (playerid, DIALOG_CMDS_OV, DIALOG_STYLE_LIST, "Command Categories", "Roleplay Commands\nVehicle Commands\nGeneral Commands\nHouse Commands\nOrganization Commands\nOrganization Leader Commands\nBusiness Commands\nVIP Commands", "Select", "Cancel");
}
}
if(dialogid == DIALOG_CMDS_LORG)
{
if(response)
{
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, DIALOG_RP_CMDS, DIALOG_STYLE_MSGBOX, "Roleplay Commands", "/me, /do, /s, /shout", "Back", "Close");
case 1: ShowPlayerDialog(playerid, DIALOG_VEH_CMDS, DIALOG_STYLE_MSGBOX, "Vehicle Commands", "/opendoors, /closedoors, /opencarwindows, /closecarwindows, /openboot, /closeboot, /openbonnet, /closebonnet, /engine, /lights, /kph, /mph, /hidspeedo, /showspeedo", "Back", "Close");
case 2: ShowPlayerDialog(playerid, DIALOG_GEN_CMDS, DIALOG_STYLE_MSGBOX, "General Commands", "/admins, /afk, /back, /help, /report, /ask, /commands, /actions, /changename, /password, /civil", "Back", "Close");
case 3: ShowPlayerDialog(playerid, DIALOG_PH_CMDS, DIALOG_STYLE_MSGBOX, "House Commands", "/buyprop, /sellprop, /lockprop, /propdoor", "Back", "Close");
case 4: ShowPlayerDialog(playerid, DIALOG_PORG_CMDS, DIALOG_STYLE_MSGBOX, "Organization Commands", "/org, /ochat, /lc, /orgs, /want", "Back", "Close");
case 5: ShowPlayerDialog(playerid, DIALOG_LORG_CMDS, DIALOG_STYLE_MSGBOX, "Organization Leader Commands", "/orgsettier, /osetrank, /oinvite, /ouninvite", "Back", "Close");
case 6: ShowPlayerDialog(playerid, DIALOG_PBUS_CMDS, DIALOG_STYLE_MSGBOX, "Business Commands", "/bnear, /buybus, /sellbus, /lockbus, /busdoor", "Back", "Close");
}
}
else
{
ShowPlayerDialog (playerid, DIALOG_CMDS_LORG, DIALOG_STYLE_LIST, "Command Categories", "Roleplay Commands\nVehicle Commands\nGeneral Commands\nHouse Commands\nOrganization Commands\nOrganization Leader Commands\nBusiness Commands", "Select", "Cancel");
}
}
if(dialogid == DIALOG_CMDS_NOM)
{
if(response)
{
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, DIALOG_RP_CMDS, DIALOG_STYLE_MSGBOX, "Roleplay Commands", "/me, /do, /s, /shout, /coinflip", "Back", "Close");
case 1: ShowPlayerDialog(playerid, DIALOG_VEH_CMDS, DIALOG_STYLE_MSGBOX, "Vehicle Commands", "/opendoors, /closedoors, /opencarwindows, /closecarwindows, /openboot, /closeboot, /openbonnet, /closebonnet, /engine, /lights, /kph, /mph, /hidspeedo, /showspeedo", "Back", "Close");
case 2: ShowPlayerDialog(playerid, DIALOG_GEN_CMDS, DIALOG_STYLE_MSGBOX, "General Commands", "/admins, /afk, /back, /help, /report, /ask, /commands, /actions, /changename, /password, /civil", "Back", "Close");
case 3: ShowPlayerDialog(playerid, DIALOG_PH_CMDS, DIALOG_STYLE_MSGBOX, "House Commands", "/buyprop, /sellprop, /lockprop, /propdoor", "Back", "Close");
case 4: ShowPlayerDialog(playerid, DIALOG_PORG_CMDS, DIALOG_STYLE_MSGBOX, "Organization Commands", "/org, /ochat, /lc, /orgs, /want", "Back", "Close");
case 6: ShowPlayerDialog(playerid, DIALOG_PBUS_CMDS, DIALOG_STYLE_MSGBOX, "Business Commands", "/bnear, /buybus, /sellbus, /lockbus, /busdoor", "Back", "Close");
}
}
else
{
ShowPlayerDialog (playerid, DIALOG_CMDS_NOM, DIALOG_STYLE_LIST, "Command Categories", "Roleplay Commands\nVehicle Commands\nGeneral Commands\nHouse Commands\nOrganization Commands\nBusiness Commands", "Select", "Cancel");
}
}
CMD:commands(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][OrgTier] == 1)
{
ShowPlayerDialog (playerid, DIALOG_CMDS_FULL, DIALOG_STYLE_LIST, "Command Categories", "Roleplay Commands\nVehicle Commands\nGeneral Commands\nHouse Commands\nOrganization Commands\nOrganization Leader Commands\nBusiness Commands\nSupport Commands\nAdmin Commands\nVIP Commands", "Select", "Cancel");
}
else if(PlayerInfo[playerid][pAdmin] >= 1)
{
ShowPlayerDialog (playerid, DIALOG_CMDS_ADMIN, DIALOG_STYLE_LIST, "Command Categories", "Roleplay Commands\nVehicle Commands\nGeneral Commands\nHouse Commands\nOrganization Commands\nBusiness Commands\nSupport Commands\nAdmin Commands\nVIP Commands", "Select", "Cancel");
}
else if(PlayerInfo[playerid][Support] == 1 && PlayerInfo[playerid][VIP] == 1)
{
ShowPlayerDialog (playerid, DIALOG_CMDS_SUPPORTVIP, DIALOG_STYLE_LIST, "Command Categories", "Roleplay Commands\nVehicle Commands\nGeneral Commands\nHouse Commands\nOrganization Commands\nBusiness Commands\nSupport Commands\nVIP Commands", "Select", "Cancel");
}
else if(PlayerInfo[playerid][Support] == 1)
{
ShowPlayerDialog (playerid, DIALOG_CMDS_SUPPORT, DIALOG_STYLE_LIST, "Command Categories", "Roleplay Commands\nVehicle Commands\nGeneral Commands\nHouse Commands\nOrganization Commands\nBusiness Commands\nSupport Commands", "Select", "Cancel");
}
else if(PlayerInfo[playerid][VIP] == 1)
{
ShowPlayerDialog (playerid, DIALOG_CMDS_VIP, DIALOG_STYLE_LIST, "Command Categories", "Roleplay Commands\nVehicle Commands\nGeneral Commands\nHouse Commands\nOrganization Commands\nBusiness Commands\nVIP Commands", "Select", "Cancel");
}
else if(PlayerInfo[playerid][OrgTier] == 1 && PlayerInfo[playerid][Support] == 1 && PlayerInfo[playerid][VIP] == 1)
{
ShowPlayerDialog (playerid, DIALOG_CMDS_OSV, DIALOG_STYLE_LIST, "Command Categories", "Roleplay Commands\nVehicle Commands\nGeneral Commands\nHouse Commands\nOrganization Commands\nOrganization Leader Commands\nBusiness Commands\nSupport Commands\nVIP Commands", "Select", "Cancel");
}
else if(PlayerInfo[playerid][OrgTier] == 1 && PlayerInfo[playerid][Support] == 1)
{
ShowPlayerDialog (playerid, DIALOG_CMDS_OS, DIALOG_STYLE_LIST, "Command Categories", "Roleplay Commands\nVehicle Commands\nGeneral Commands\nHouse Commands\nOrganization Commands\nOrganization Leader Commands\nBusiness Commands\nSupport Commands", "Select", "Cancel");
}
else if(PlayerInfo[playerid][OrgTier] == 1 && PlayerInfo[playerid][VIP] == 1)
{
ShowPlayerDialog (playerid, DIALOG_CMDS_OV, DIALOG_STYLE_LIST, "Command Categories", "Roleplay Commands\nVehicle Commands\nGeneral Commands\nHouse Commands\nOrganization Commands\nOrganization Leader Commands\nBusiness Commands\nVIP Commands", "Select", "Cancel");
}
else if(PlayerInfo[playerid][OrgTier] == 1)
{
ShowPlayerDialog (playerid, DIALOG_CMDS_LORG, DIALOG_STYLE_LIST, "Command Categories", "Roleplay Commands\nVehicle Commands\nGeneral Commands\nHouse Commands\nOrganization Commands\nOrganization Leader Commands\nBusiness Commands", "Select", "Cancel");
}
else
{
ShowPlayerDialog (playerid, DIALOG_CMDS_NOM, DIALOG_STYLE_LIST, "Command Categories", "Roleplay Commands\nVehicle Commands\nGeneral Commands\nHouse Commands\nOrganization Commands\nBusiness Commands", "Select", "Cancel");
}
return 1;
}