13.07.2012, 16:36
I just got back in scripting, and I need some help.
I wanna make so when I type a command, a textdraw box with some text in it appears.
And then, when the player presses "LMB" ( left mouse button ) the box, text closes.
Here is my script that I done , and doesn't work. If you can please fix it for me.
Thank you.
I wanna make so when I type a command, a textdraw box with some text in it appears.
And then, when the player presses "LMB" ( left mouse button ) the box, text closes.
Here is my script that I done , and doesn't work. If you can please fix it for me.
Код:
new Text:rules;
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/rules", cmdtext, true, 10) == 0)
{
TextDrawCreate(320, 240, "xD");
TextDrawFont(rules, 2);
TextDrawLetterSize(rules, 0.7, 4.9);
TextDrawColor(rules, 0xB90000FF);
TextDrawSetOutline(rules , 0);
TextDrawSetProportional(rules , 1);
TextDrawSetShadow(rules , 1);
TextDrawUseBox(rules,1);
TextDrawBoxColor(rules, 0x000000FF);
TextDrawTextSize(rules, 0, 0);
return 1;
}
return 0;
}

