10.03.2012, 17:43
What should this be? This is showing a simple dialog, yes, but what if a player is clicking on the button of the dialog? NOTHING will continue, you didn't even try to continue scripting! You would have had to continue under "OnDialogResponse" and set some functions there! This is really one of the most useless tutorials I've ever seen, sorry! I mean, for this little piece, you could simply do the following:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "/healme, /makebettertutorial, etc...");
return 1;
}
return 0;
}