15.09.2015, 06:09
Try this:
PHP код:
#pragma dynamic 556992
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
{
switch(dialogid)
{
case 1:
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Level 1 Admin Commands", "/ip\n/say\n/jail\n/slap\n/mute\n/unjail\n/repair\n/freeze\n/unmute\n/reports\n/unfreeze\n/cc", "Select", "Close");
}
case 1:
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Level 2 Admin Commands", "/ip\n/say\n/jail\n/slap\n/mute\n/unjail\n/repair\n/freeze\n/unmute\n/reports\n/unfreeze\n/cc\n/fix\n/ann\n/flip\n/kick\n/drop\n/warn\n/zcam\n/spawn\n/eject\n/zspec\n/laston\n/addnos\n/getcord\n/godmode\n/specoff\n/megajump\n/highlight\n/clearchat", "", "Close");
}
case 2:
{
new dialog3[5000];
strcat(dialog3, "/ip\n/say\n/jail\n/slap\n/mute\n/unjail\n/repair\n/freeze\n/unmute\n/reports\n/unfreeze\n/cc\n/fix\n/ann\n/flip\n/kick\n/drop\n/warn\n/zcam\n/spawn\n/eject\n/zspec\n/laston\n/addnos\n/getcord\n/getcord\n/godmode\n/specoff\n");
strcat(dialog3, "/megajump\n/highlight\n/clearchat\n/fu\n/aka\n/ban\n/car\n/goto\n/duel\n/force\n/unban\n/zmenu\n/setcord\n/givegun\n/setname\n/gethere\n/explode\n/sethealth\n/setarmour\n/engineoff\n/setgtavity\n/setallcash\n/setallskin\n/setallscore\n/setallwanted\n/setallweather\n/killplayer\n/changeskincmd");
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Level 3 Admin Commands", dialog3, "", "Close");
}
case 3:
{
new dialog4[5000];
strcat(dialog4, "/ip\n/say\n/jail\n/slap\n/mute\n/unjail\n/repair\n/freeze\n/unmute\n/reports\n/unfreeze\n/cc\n/fix\n/ann\n/flip\n/kick\n/drop\n/warn\n/zcam\n/spawn\n/eject\n/zspec\n/laston\n/addnos\n/getcord\n/godmode\n/specoff\n/megajump\n/highlight\n/clearchat\n/fu\n/aka\n/ban\n/car\n/goto\n/duel\n/force\n/unban\n/zmenu\n/setcord\n/givegun\n/setname\n/gethere\n/explode\n/sethealth\n");
strcat(dialog4, "/setarmour\n/engineoff\n/setgtavity\n/setallcash\n/setallskin\n/setallscore\n/setallwanted\n/setallweather\n/killplayer\n/changeskincmd\n/hide\n/unhide\n/disarm\n/getall\n/healall\n/jetpack\n/unbanip\n/killall\n/muteall\n/ejectall\n/spawnall\n/disarmall\n/armourall\n/unmuteall\n/explodeall\n/lockserver\n/unlockserver\n/fakechatgmx");
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Level 4 Admin Commands", dialog4, "", "Close");
}
case 4:
{
new dialog5[5000];
strcat(dialog5, "/ip\n/say\n/jail\n/slap\n/mute\n/unjail\n/repair\n/freeze\n/unmute\n/reports\n/unfreeze\n/cc\n/fix\n/ann\n/flip\n/kick\n/drop\n/warn\n/zcam\n/spawn\n/eject\n/zspec\n/laston\n/addnos\n/getcord\n/godmode\n/specoff\n/megajump\n/highlight\n/clearchat\n/fu\n/aka\n/ban\n/car\n/goto\n/duel\n/force\n/unban\n/zmenu\n");
strcat(dialog5, "/setcord\n/givegun\n/setname\n/gethere\n/explode\n/sethealth\n/setarmour\n/engineoff\n/setgtavity\n/setallcash\n/setallskin\n/setallscore\n/setallwanted\n/setallweather\n/killplayer\n/changeskincmd\n/hide\n/unhide\n/disarm\n/getall\n/healall\n/jetpack\n/unbanip\n/killall\n/muteall\n/ejectall\n/spawnall\n/disarmall\n/armourall\n/unmuteall\n/explodeall\n/lockserver\n/unlockserver\n/fakechatgmx\n/delacc\n/object\n/kickall\n/setlevel\n/zconsole");
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Level 5 Admin Commands", dialog5, "", "Close");
}
}
}
}
}
return 1;
}