Making a cmd
#5

Quote:
Originally Posted by Larceny
Посмотреть сообщение
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;
}
OnPlayerCommandText doesn't return 1 twice.

Код:
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;
}
And you don't need to color your text like that, as its a pain in the ass. Use [ pawn] [/ pawn] tags.
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)