23.06.2012, 08:35
Actual Dialog Code
Dialog Response
pawn Код:
CMD:help(playerid, params[])
{
ShowPlayerDialog(playerid,123,DIALOG_STYLE_LIST,"Help Dialog","General Commands\nAdministrator Help\nCookie Help\Administrator level 1 commands\nAdministrator level 2 commands\nAdministrator level 3 commands\nAdministrator level 4 commands","OK","Cancel");
return 1;
}
Dialog Response
pawn Код:
if(dialogid == 123 && response)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid, 301,DIALOG_STYLE_MSGBOX,"General Commands","/help, /shop, /kill, /locker, /afk, /back\n /rules, /admins, /admin, /report, /cshop\n /mycookies, /stats, /bug, /sug","OK","");
}
case 1:
{
ShowPlayerDialog(playerid, 302,DIALOG_STYLE_MSGBOX, "Administrator Help","In order to be on the Administrator Team, you need to be active, help people, and be mature.","OK","");
}
case 2:
{
ShowPlayerDialog(playerid, 302,DIALOG_STYLE_MSGBOX, "Cookie Help","Cookies are rewards given to you for good behavior.\nYou can use your cookies at the /cshop","OK","");
}
case 3:
if(PlayerInfo[playerid][pAdmin]>=1)
{
ShowPlayerDialog(playerid, 303,DIALOG_STYLE_MSGBOX, "Admin Level 1 Commands","/ah, /pm, /clearchat, /goto, /a, /fakechat, /askin","OK","");
}
else if(PlayerInfo[playerid][pAdmin] < 1)
{
SendClientMessage(playerid, COLOR_BRIGHTRED, "You're not admin level 1!");
}
case 4:
if(PlayerInfo[playerid][pAdmin]>=2)
{
ShowPlayerDialog(playerid, 403,DIALOG_STYLE_MSGBOX, "Admin Level 2 Commands","/ah, /pm, /clearchat, /goto, /a, /fakechat, /askin \n/mute, /unmute, /unban, /warn, /mode, /gethere, /repair, /fix, /veh, /ban \n /ashop, /setskin, /asay, /spec, /specoff, /kick, /givecookie, /resetcookies, /weather","OK","");
}
else if(PlayerInfo[playerid][pAdmin] < 2)
{
SendClientMessage(playerid, COLOR_BRIGHTRED, "You're not admin level 2!");
}
case 5:
if(PlayerInfo[playerid][pAdmin]>=3)
{
ShowPlayerDialog(playerid, 333,DIALOG_STYLE_MSGBOX, "Admin Level 3 Commands","/ah, /pm, /clearchat, /goto, /a, /fakechat, /askin \n/mute, /unmute, /unban, /warn, /mode, /gethere, /repair, /fix, /veh, /ban \n /ashop, /setskin, /asay, /spec, /specoff, /kick, /givecookie, /resetcookies, /weather\n /resetwarns, /freeze, /unfreeze, /hh, /sethp, /setarmour, /giveweapon, /giveallcookies \n /killall, /giveweaponall, /sethpall, /setarmourall, /ann ","OK","");
}
else if(PlayerInfo[playerid][pAdmin] < 3)
{
SendClientMessage(playerid, COLOR_BRIGHTRED, "You're not admin level 3!");
}
case 6:
if(PlayerInfo[playerid][pAdmin]>=4)
{
ShowPlayerDialog(playerid, 344,DIALOG_STYLE_MSGBOX, "Admin Level 4 Commands","/ah, /pm, /clearchat, /goto, /a, /fakechat, /askin \n/mute, /unmute, /unban, /warn, /mode, /gethere, /repair, /fix, /veh, /ban \n /ashop, /setskin, /asay, /spec, /specoff, /kick, /givecookie, /resetcookies, /weather\n /resetwarns, /freeze, /unfreeze, /hh, /sethp, /setarmour, /giveweapon, /giveallcookies \n /killall, /giveweaponall, /sethpall, /setarmourall, /ann \n /givemoney, /god, /gmx","OK","");
}
else if(PlayerInfo[playerid][pAdmin] < 4)
{
SendClientMessage(playerid, COLOR_BRIGHTRED, "You're not admin level 4!");
}
}
}
}