20.04.2011, 15:56
First use that :
If you don't use zcmd, try this, but i don't know, is that working :
pawn Код:
//==============================================================================
COMMAND:rules(playerid,params[])
{
new DialogText[1024];
strcat(DialogText, " The Server Rules\n");
strcat(DialogText, " The Admins Rules\n");
strcat(DialogText, "(1)Admins Rule: Don't ban forever\n");
strcat(DialogText, "(2)Admins Rule: Don't ban or kick or mute or freeze without reason\n");
strcat(DialogText, " The Players Rules\n");
strcat(DialogText, "(1)Players Rule: Don't hack/cheat / (2)Players Rule: Don;t ad / (3)Players Rule: Don't Ask to be Admin /\n");
strcat(DialogText, "(4)Players Rule: Don't say bad word / (4)Players Rule: Don't say bad words / (5)Player Rules: Don't Go To Admins House Only Admins\n");
ShowPlayerDialog(playerid, 701, DIALOG_STYLE_MSGBOX, "Rules", DialogText, "OK", "");
return 1;
}
//==============================================================================
COMMAND:cmds(playerid,params[])
{
new DialogText[1024];
strcat(DialogText, "Account: /login /register /stats\n");
strcat(DialogText, "Chat: /pm /me /do\n");
strcat(DialogText, "Basic: /rules /report\n");
strcat(DialogText, "Teleports: /gs /lsa /lc /pipe /minigames\n");
strcat(DialogText, "Other: /lol /emenu /call /kill /healme /gang /call /hangup /pickup /flip /afk afklist /back /flip /jobs /anims\n");
strcat(DialogText, "Cars: /tunecar /cars /lock /unlock\n");
strcat(DialogText, "(4)Players Rule: Don't say bad word / (4)Players Rule: Don't say bad words / (5)Player Rules: Don't Go To Admins House Only Admins\n");
ShowPlayerDialog(playerid, 700, DIALOG_STYLE_MSGBOX, "Commands", DialogText, "OK", "");
return 1;
}
pawn Код:
//==============================================================================
if(strcmp(cmdtext, "/rules", true) == 0)
{
new DialogText[1024];
strcat(DialogText, " The Server Rules\n");
strcat(DialogText, " The Admins Rules\n");
strcat(DialogText, "(1)Admins Rule: Don't ban forever\n");
strcat(DialogText, "(2)Admins Rule: Don't ban or kick or mute or freeze without reason\n");
strcat(DialogText, " The Players Rules\n");
strcat(DialogText, "(1)Players Rule: Don't hack/cheat / (2)Players Rule: Don;t ad / (3)Players Rule: Don't Ask to be Admin /\n");
strcat(DialogText, "(4)Players Rule: Don't say bad word / (4)Players Rule: Don't say bad words / (5)Player Rules: Don't Go To Admins House Only Admins\n");
ShowPlayerDialog(playerid, 701, DIALOG_STYLE_MSGBOX, "Rules", DialogText, "OK", "");
return 1;
}
//==============================================================================
if(strcmp(cmdtext, "/cmds", true) == 0)
{
new DialogText[1024];
strcat(DialogText, "Account: /login /register /stats\n");
strcat(DialogText, "Chat: /pm /me /do\n");
strcat(DialogText, "Basic: /rules /report\n");
strcat(DialogText, "Teleports: /gs /lsa /lc /pipe /minigames\n");
strcat(DialogText, "Other: /lol /emenu /call /kill /healme /gang /call /hangup /pickup /flip /afk afklist /back /flip /jobs /anims\n");
strcat(DialogText, "Cars: /tunecar /cars /lock /unlock\n");
strcat(DialogText, "(4)Players Rule: Don't say bad word / (4)Players Rule: Don't say bad words / (5)Player Rules: Don't Go To Admins House Only Admins\n");
ShowPlayerDialog(playerid, 700, DIALOG_STYLE_MSGBOX, "Commands", DialogText, "OK", "");
return 1;
}

