[FilterScript] Math Game
#1



Commands

/mathgame - join to math game
/ma - answer math asks

Download

CLICK ME!

Video

[ame]http://www.youtube.com/watch?v=Ksf5bmsJ5Qk[/ame]
Reply
#2

Код:
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++) {
 	MatematikSure[playerid] = TextDrawCreate(201.000000, 303.000000, "Kalan Sure: ~g~~h~30 sn");
	TextDrawBackgroundColor(MatematikSure[playerid], 255);
	TextDrawFont(MatematikSure[playerid], 1);
	TextDrawLetterSize(MatematikSure[playerid], 0.190000, 1.000000);
	TextDrawColor(MatematikSure[playerid], -1);
	TextDrawSetOutline(MatematikSure[playerid], 0);
	TextDrawSetProportional(MatematikSure[playerid], 1);
	TextDrawSetShadow(MatematikSure[playerid], 1);
	TextDrawSetSelectable(MatematikSure[playerid], 0);

	MatematikCompleted[playerid] = TextDrawCreate(201.000000, 293.000000, "Completed: ~g~~h~1~y~~h~/15");
	TextDrawBackgroundColor(MatematikCompleted[playerid], 255);
	TextDrawFont(MatematikCompleted[playerid], 1);
	TextDrawLetterSize(MatematikCompleted[playerid], 0.190000, 1.000000);
	TextDrawColor(MatematikCompleted[playerid], -1);
	TextDrawSetOutline(MatematikCompleted[playerid], 0);
	TextDrawSetProportional(MatematikCompleted[playerid], 1);
	TextDrawSetShadow(MatematikCompleted[playerid], 1);
	TextDrawSetSelectable(MatematikCompleted[playerid], 0);

	Matematikislem[playerid] = TextDrawCreate(208.000000, 171.000000, "5 x 25 = ?");
	TextDrawBackgroundColor(Matematikislem[playerid], 0);
	TextDrawFont(Matematikislem[playerid], 1);
	TextDrawLetterSize(Matematikislem[playerid], 0.740000, 4.099999);
	TextDrawColor(Matematikislem[playerid], -16776961);
	TextDrawSetOutline(Matematikislem[playerid], 0);
	TextDrawSetProportional(Matematikislem[playerid], 1);
	TextDrawSetShadow(Matematikislem[playerid], 1);
	TextDrawSetSelectable(Matematikislem[playerid], 0);
	}
Wouldn't this create tons of unused textdraws if your MAX_PLAYERS is 100, 500 or 1000 (possible with 0.3.7)? I would suggest create the textdraws on join, destroy them on leave, maybe use PlayerTextDraws.

Otherwise simple but great work.
Reply
#3

Great job, You're releasing many filter scripts on one day lmfao.

Rep+
Reply
#4

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)