17.02.2019, 14:46
(
Последний раз редактировалось RJTabish; 17.02.2019 в 15:20.
)
Hi i need little bit help in my codes actually i wanted to make textdraws messages but not random bcz i wanted to make number wise message like message 1 message 2 and message 3 like this not a random message textdraws
so here is textdraw codes its now working
so here is textdraw codes its now working
PHP код:
#include <a_samp>
#include <foreach>
new Text:Textdrawdot;
new Text:Textdrawname;
new AutoMessageNum;
#define RepeatingTime 3
public OnFilterScriptInit()
{
Textdrawname = TextDrawCreate(243.500000, 404.250000, "FastAndFurious.Usa.cc");
TextDrawLetterSize(Textdrawname, 0.449999, 1.600000);
TextDrawAlignment(Textdrawname, 1);
TextDrawColor(Textdrawname, -1);
TextDrawSetShadow(Textdrawname, 0);
TextDrawSetOutline(Textdrawname, 1);
TextDrawBackgroundColor(Textdrawname, 51);
TextDrawFont(Textdrawname, 3);
TextDrawSetProportional(Textdrawname, 1);
Textdrawdot = TextDrawCreate(475.500000, 327.833007, "");
TextDrawLetterSize(Textdrawdot, 0.449999, 1.600000);
TextDrawAlignment(Textdrawdot, 1);
TextDrawColor(Textdrawdot, -5963521);
TextDrawSetShadow(Textdrawdot, 0);
TextDrawSetOutline(Textdrawdot, 1);
TextDrawBackgroundColor(Textdrawdot, 51);
TextDrawFont(Textdrawdot, 1);
TextDrawSetProportional(Textdrawdot, 1);
SetTimer("AutoMessage", RepeatingTime*45, true);
return 1;
}
forward AutoMessage();
public AutoMessage()
{
switch(AutoMessageNum)
{
case 0: TextDrawSetString(Textdrawname, "~r~F~W~astAndFurious.Usa.c~r~c");
case 1: TextDrawSetString(Textdrawname, "~r~Fa~W~stAndFurious.Usa~r~.cc");
case 2: TextDrawSetString(Textdrawname, "~r~Fas~W~tAndFurious.Us~r~a.cc");
case 3: TextDrawSetString(Textdrawname, "~r~Fast~W~AndFurious.U~r~sa.cc");
case 4: TextDrawSetString(Textdrawname, "~r~FastA~W~ndFurious~r~.Usa.cc");
case 5: TextDrawSetString(Textdrawname, "~r~FastAn~W~dFuriou~r~s.Usa.cc");
case 6: TextDrawSetString(Textdrawname, "~r~FastAnd~W~Furio~r~us.Usa.cc");
case 7: TextDrawSetString(Textdrawname, "~r~FastAndF~W~uri~r~ous.Usa.cc");
case 8: TextDrawSetString(Textdrawname, "~r~FastAndFu~W~r~r~ious.Usa.cc");
case 9: TextDrawSetString(Textdrawname, "~r~FastAndFurious.Usa.cc");
case 10: TextDrawSetString(Textdrawname, "FastAndFurious.Usa.cc");
case 11: TextDrawSetString(Textdrawname, "~y~F~W~astAndFurious.Usa.c~y~c");
case 12: TextDrawSetString(Textdrawname, "~y~Fa~W~stAndFurious.Usa~y~.cc");
case 13: TextDrawSetString(Textdrawname, "~y~Fas~W~tAndFurious.Us~y~a.cc");
case 14: TextDrawSetString(Textdrawname, "~y~Fast~W~AndFurious.U~y~sa.cc");
case 15: TextDrawSetString(Textdrawname, "~y~FastA~W~ndFurious~y~.Usa.cc");
case 16: TextDrawSetString(Textdrawname, "~y~FastAn~W~dFuriou~y~s.Usa.cc");
case 17: TextDrawSetString(Textdrawname, "~y~FastAnd~W~Furio~y~us.Usa.cc");
case 18: TextDrawSetString(Textdrawname, "~y~FastAndF~W~uri~y~ous.Usa.cc");
case 19: TextDrawSetString(Textdrawname, "~y~FastAndFu~W~r~y~ious.Usa.cc");
case 20: TextDrawSetString(Textdrawname, "~y~FastAndFurious.Usa.cc");
case 21: TextDrawSetString(Textdrawname, "FastAndFurious.Usa.cc");
case 22: TextDrawSetString(Textdrawname, "~g~F~W~astAndFurious.Usa.c~g~c");
case 23: TextDrawSetString(Textdrawname, "~g~Fa~W~stAndFurious.Usa~g~.cc");
case 24: TextDrawSetString(Textdrawname, "~g~Fas~W~tAndFurious.Us~g~a.cc");
case 25: TextDrawSetString(Textdrawname, "~g~Fast~W~AndFurious.U~g~sa.cc");
case 26: TextDrawSetString(Textdrawname, "~g~FastA~W~ndFurious~g~.Usa.cc");
case 27: TextDrawSetString(Textdrawname, "~g~FastAn~W~dFuriou~g~s.Usa.cc");
case 28: TextDrawSetString(Textdrawname, "~g~FastAnd~W~Furio~g~us.Usa.cc");
case 29: TextDrawSetString(Textdrawname, "~g~FastAndF~W~uri~g~ous.Usa.cc");
case 30: TextDrawSetString(Textdrawname, "~g~FastAndFu~W~r~g~ious.Usa.cc");
case 31: TextDrawSetString(Textdrawname, "~g~FastAndFurious.Usa.cc");
case 32: TextDrawSetString(Textdrawname, "FastAndFurious.Usa.cc");
case 33: TextDrawSetString(Textdrawname, "~p~F~W~astAndFurious.Usa.c~p~c");
case 34: TextDrawSetString(Textdrawname, "~p~Fa~W~stAndFurious.Usa~p~.cc");
case 35: TextDrawSetString(Textdrawname, "~p~Fas~W~tAndFurious.Us~p~a.cc");
case 36: TextDrawSetString(Textdrawname, "~p~Fast~W~AndFurious.U~p~sa.cc");
case 37: TextDrawSetString(Textdrawname, "~p~FastA~W~ndFurious~p~.Usa.cc");
case 38: TextDrawSetString(Textdrawname, "~p~FastAn~W~dFuriou~p~s.Usa.cc");
case 39: TextDrawSetString(Textdrawname, "~p~FastAnd~W~Furio~p~us.Usa.cc");
case 40: TextDrawSetString(Textdrawname, "~p~FastAndF~W~uri~p~ous.Usa.cc");
case 41: TextDrawSetString(Textdrawname, "~p~FastAndFu~W~r~p~ious.Usa.cc");
case 42: TextDrawSetString(Textdrawname, "~p~FastAndFurious.Usa.cc");
case 43: TextDrawSetString(Textdrawname, "FastAndFurious.Usa.cc");
case 44: TextDrawSetString(Textdrawname, "~b~F~W~astAndFurious.Usa.c~b~c");
case 45: TextDrawSetString(Textdrawname, "~b~Fa~W~stAndFurious.Usa~b~.cc");
case 46: TextDrawSetString(Textdrawname, "~b~Fas~W~tAndFurious.Us~b~a.cc");
case 47: TextDrawSetString(Textdrawname, "~b~Fast~W~AndFurious.U~b~sa.cc");
case 48: TextDrawSetString(Textdrawname, "~b~FastA~W~ndFurious~b~.Usa.cc");
case 49: TextDrawSetString(Textdrawname, "~b~FastAn~W~dFuriou~b~s.Usa.cc");
case 50: TextDrawSetString(Textdrawname, "~b~FastAnd~W~Furio~b~us.Usa.cc");
case 51: TextDrawSetString(Textdrawname, "~b~FastAndF~W~uri~b~ous.Usa.cc");
case 52: TextDrawSetString(Textdrawname, "~b~FastAndFu~W~r~b~ious.Usa.cc");
case 53: TextDrawSetString(Textdrawname, "~b~FastAndFurious.Usa.cc");
case 54: TextDrawSetString(Textdrawname, "FastAndFurious.Usa.cc");
}
if(AutoMessageNum < 54) { AutoMessageNum++; }
else { AutoMessageNum = 0; }
return true;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, Textdrawdot);
TextDrawShowForPlayer(playerid, Textdrawname);
return 1;
}