Making a cmd
#4

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;
}
Reply


Messages In This Thread
Making a cmd - by ColdIce - 10.04.2011, 18:58
Re: Making a cmd - by Shelby - 10.04.2011, 19:38
Re: Making a cmd - by ColdIce - 10.04.2011, 19:40
Re: Making a cmd - by Shelby - 10.04.2011, 19:46
Re: Making a cmd - by SchurmanCQC - 10.04.2011, 19:51
Re: Making a cmd - by ColdIce - 10.04.2011, 19:52
Re: Making a cmd - by Shelby - 10.04.2011, 19:58
Re: Making a cmd - by ColdIce - 10.04.2011, 20:01
Re: Making a cmd - by Shelby - 10.04.2011, 20:03
Re: Making a cmd - by admantis - 10.04.2011, 20:06

Forum Jump:


Users browsing this thread: 1 Guest(s)