28.01.2011, 10:18
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;
}