23.07.2015, 20:39
I don't think my script is a problem because it was working fine last night and at morning it doesn't showing textdraw.
And also i have tried to run my old backup which is 10 days ago or more but still not working there too.
So, I don't think script is a problem. I thought it was plugins but then i have updated my plugins into latest but still have same problem. Lemme download a textdraw script from samp forum and see .
EDITED: I'm using like this
And this is cmd
And also i have tried to run my old backup which is 10 days ago or more but still not working there too.
So, I don't think script is a problem. I thought it was plugins but then i have updated my plugins into latest but still have same problem. Lemme download a textdraw script from samp forum and see .
EDITED: I'm using like this
PHP код:
on top of script.
// rules box
new Text:RULEBOX;
new Text:rule1;
new Text:rule2;
OnGameMode
RULEBOX = TextDrawCreate(15.000000, 135.000000, "usebox");
TextDrawLetterSize(RULEBOX, 0.000000, 13.738883);
TextDrawTextSize(RULEBOX, 220.267944, 0.000000);
TextDrawAlignment(RULEBOX, 1);
TextDrawColor(RULEBOX, 0);
TextDrawUseBox(RULEBOX, true);
TextDrawBoxColor(RULEBOX, 102);
TextDrawSetShadow(RULEBOX, 0);
TextDrawSetOutline(RULEBOX, 0);
TextDrawFont(RULEBOX, 0);
rule1 = TextDrawCreate(18.000000, 136.000000, "~g~Server Rules~n~~n~~y~1. ~w~Respect all players and admins.~n~~y~2.~w~ Listen to and obey admins.~n~~y~3.~w~ Don't kill other players without a good reason~n~~y~4.~w~ Do not use cheats or any mods.~n~~y~5.~w~ Do not advertise anything.");
TextDrawAlignment(rule1, 1);
TextDrawLetterSize(rule1, 0.209999, 0.800000);
TextDrawColor(rule1, 0xffff00ff);
TextDrawSetOutline(rule1, 1);
TextDrawSetProportional(rule1, 2);
TextDrawSetShadow(rule1, 2);
rule2 = TextDrawCreate(18.000000, 186.500000, "~y~6.~w~ Don't spam~n~~y~7.~w~ Do not abuse any bug, if you found a bug~n~report it on forum.~n~~y~8.~w~ Cops and robbers cannot team up~n~~y~9.~w~ Do not quit your game to avoid anything.~n~~y~10.~w~ Medics may not physically harm other players ~n~in any way.~n~~y~11.~w~ Use common sense at all times.");
TextDrawAlignment(rule2, 1);
TextDrawLetterSize(rule2, 0.209999, 0.800000);
TextDrawColor(rule2, 0xffff00ff);
TextDrawSetOutline(rule2, 1);
TextDrawSetProportional(rule2, 2);
TextDrawSetShadow(rule2, 2);
PHP код:
CMD:rules(playerid, params[])
{
HideDraw(playerid);
TextDrawShowForPlayer(playerid, RULEBOX);
TextDrawShowForPlayer(playerid, rule1);
TextDrawShowForPlayer(playerid, rule2);
return true;
}