10.04.2011, 19:51
Quote:
Add it under OnPlayerCommandText(playerid,cmdtext[]).
Like this: Код:
public OnPlayerCommandText(playerid,cmdtext[]) { new cmd[256]; if(strcmp(cmd, "/rules", true) == 0) { ShowPlayerDialog(playerid,DIALOG_ID,DIALOG_STYLE,"Rules","1. You must respect the rules\n2.You can't do anything without read the rules...","button1","button2"); return 1; } return 1; } |
Код:
public OnPlayerCommandText(playerid,cmdtext[]) { new cmd[256]; if(strcmp(cmd, "/rules", true) == 0) { ShowPlayerDialog(playerid,DIALOG_ID,DIALOG_STYLE,"Rules","1. You must respect the rules\n2.You can't do anything without read the rules...","button1","button2"); return 1; } return 0; }