31.10.2016, 15:35
Okay i have this /cmds command and it shows dialog of what commands I can choose. When i choose first they are shown. But any bellow is not. Here is code
PHP код:
CMD:cmds(playerid)
{
if(Info[playerid][Admin]>=1) ShowPlayerDialog(playerid, DIALOG_CMDS, DIALOG_STYLE_LIST, "BFE COMMANDS", "Account\nPlayer\nVehicle\nHouse\nVip\nAdmin", "Select", "Cancel");
if(Info[playerid][Admin]< 1) ShowPlayerDialog(playerid, DIALOG_CMDS, DIALOG_STYLE_LIST, "BFE COMMANDS", "Account\nPlayer\nVehicle\nHouse\nVip", "Select", "Cancel");
return 1;
}
if(dialogid == DIALOG_CMDS)
{
if(response)
{
if(listitem == 0)return ShowPlayerDialog(playerid, DIALOG_CMDS_ACCOUNT, DIALOG_STYLE_MSGBOX, ""RED"BFE Account Commands", ""ORANGE"/changename "GREEN"- change your name\n"ORANGE"/changepass "GREEN"- change your account password", "OK", "");
if(listitem == 1)
{
new bigstring[6000];
strcat(bigstring, ""ORANGE" В•"YELLOW" /dm "PINK" - "CYAN"Show lists of DM areas \n", sizeof(bigstring));
strcat(bigstring, ""ORANGE" В•"YELLOW" /t "PINK" - "CYAN"Shows Thelist of teleports \n", sizeof(bigstring));
strcat(bigstring, ""ORANGE" В•"YELLOW" /pm "PINK" - "CYAN"Send a private message \n", sizeof(bigstring));
strcat(bigstring, ""ORANGE" В•"YELLOW" /o "PINK" - "CYAN"To Attach Objects to your skin \n", sizeof(bigstring));
strcat(bigstring, ""ORANGE" В•"YELLOW" /mymute "PINK" - "CYAN"View your mute clock \n", sizeof(bigstring));
strcat(bigstring, ""ORANGE" В•"YELLOW" /mutelist "PINK" - "CYAN"View list of muted players \n", sizeof(bigstring));
strcat(bigstring, ""ORANGE" В•"YELLOW" /settings "PINK" - "CYAN"View and change your account preferences \n", sizeof(bigstring));
strcat(bigstring, ""ORANGE" В•"YELLOW" /pms "PINK" - "CYAN"Toggle PMs \n", sizeof(bigstring));
strcat(bigstring, ""ORANGE" В•"YELLOW" /god "PINK" - "CYAN"Toggle god mode \n", sizeof(bigstring));
strcat(bigstring, ""ORANGE" В•"YELLOW" /givemoney "PINK" - "CYAN"Transfer your money to another player \n", sizeof(bigstring));
strcat(bigstring, ""ORANGE" В•"YELLOW" /goto "PINK" - "CYAN"Teleport to someother player \n", sizeof(bigstring));
strcat(bigstring, ""ORANGE" В•"YELLOW" /gos "PINK" - "CYAN"Toggle Goto \n", sizeof(bigstring));
strcat(bigstring, ""ORANGE" В•"YELLOW" /w "PINK" - "CYAN"Change your weapon \n", sizeof(bigstring));
strcat(bigstring, ""ORANGE" В•"YELLOW" /color "PINK" - "CYAN"Change your nick name colour \n", sizeof(bigstring));
strcat(bigstring, ""ORANGE" В•"YELLOW" /report "PINK" - "CYAN"Report an hacker/cheater to administrators \n", sizeof(bigstring));
strcat(bigstring, ""ORANGE" В•"YELLOW" /admins "PINK" - "CYAN"View online administrators \n", sizeof(bigstring));
strcat(bigstring, ""ORANGE" В•"YELLOW" /skin "PINK" - "CYAN"Change your player skin \n", sizeof(bigstring));
strcat(bigstring, ""ORANGE" В•"YELLOW" /kill "PINK" - "CYAN"Suicide yourself \n", sizeof(bigstring));
strcat(bigstring, ""ORANGE" В•"YELLOW" /para "PINK" - "CYAN"Get a parachute \n", sizeof(bigstring));
ShowPlayerDialog(playerid, DIALOG_CMDS_PLAYER, DIALOG_STYLE_MSGBOX, ""RED"BFE Player Commands", bigstring, "OK", "");
}