Help with a /rules dialog
#1

I wanna make a /rules command but i dont know how to make this work can someone help me?
pawn Код:
COMMAND:rules(playerid, params[])
{
    ShowPlayerDialog(playerid, , DIALOG_STYLE_LIST, "Rules", "OK", "Cancel");
    #pragma unused params // params isn't used here

    // Setup local variables
    new CmdList2[2000];

    // Show all available player-commands
    format(CmdList2, sizeof(CmdList2), "/detach\n\tDetaches your trailer\n");
    format(CmdList2, sizeof(CmdList2), "/flip\n\tFlips your vehicle back on his wheels\n");
    format(CmdList2, sizeof(CmdList2), "/kill\n\tKills yourself\n");
    format(CmdList2, sizeof(CmdList2), "/reclass\n\tChoose another class\n");
    format(CmdList2, sizeof(CmdList2), "/work\n\tStart a job\n");
    format(CmdList2, sizeof(CmdList2), "/rescue\n\tLet's you respawn at a spawn-location\n");
    format(CmdList2, sizeof(CmdList2), "/admins\n\tShows all online admins\n");
    format(CmdList2, sizeof(CmdList2), "/cmds\n\tShows this list of commands\n");



    // Show all the commands in a dialog


    // Let the server know that this was a valid command
    return 1;
}
Reply


Messages In This Thread
Help with a /rules dialog - by thimo - 28.01.2011, 10:18
Re: Help with a /rules dialog - by Zh3r0 - 28.01.2011, 10:32
Re: Help with a /rules dialog - by thimo - 28.01.2011, 11:38
Re: Help with a /rules dialog - by Zh3r0 - 28.01.2011, 12:11
Re: Help with a /rules dialog - by thimo - 28.01.2011, 12:17
Re: Help with a /rules dialog - by armyoftwo - 28.01.2011, 12:24
Re: Help with a /rules dialog - by HyperZ - 28.01.2011, 12:26
Re: Help with a /rules dialog - by thimo - 28.01.2011, 12:52
Re: Help with a /rules dialog - by HyperZ - 28.01.2011, 12:57

Forum Jump:


Users browsing this thread: 1 Guest(s)