28.04.2018, 14:29
Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 2)
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Commands", "General Commands \nChat
Commands \nAnimation Commands \nGroup Commands \nPremium Commands \nHelper
Commands \nStaff Commands ", "Select", "Cancel");
}
return 1;
}
return 1;
}
if(dialogid == 2)
{
if(response)
{
if(listitem == 1)
{
ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "FAQs", "How to refill an empty water bottle?
\nHow to get weapons? \nHow to speak in the global chat? \nHow to refill an empty jerry canister
\nHow to open,close,lock and unlock doors? \nHow can I know my current location and reach
destinations easily? \nWhy do players have different colors?", "Select", "Close");
}
return 1;
}
return 1;
}
if(dialogid == 2)
{
if(response)
{
if(listitem == 2)
{
ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Tutorials", "Stats \nWeapon Management
\nPrivate Tents \nVehicles \nFishing \nBase Building", "Select", "Cancel");
}
return 1;
}
return 1;
}
return 0;
}
Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/help", cmdtext, true) == 0)
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Help Menu", "Commands \nFAQs \nTutorials \nCommunity ", "Select", "Cancel");
return 1;
}
return 0;
}

