14.02.2019, 06:02
hello sorry for another quick post but i'm facing problem in my textdraws actually i made some differennt textdraw
with timer idk what wrong with it but its seems like fine as i have experience but there is alot experience people in samp so have a look and give suggestion or help hand what i did wrong
PROBLEM >> problem is its working fine when someone is connecting ingame after spawning and 3 seconds or maybe 8 or 9 seconds textdraw is going to be dissapear idk what wrong with it here is Codes
NOTE: if i'm using this on other server or using as filterscript its working fine otherwise its not usefull for me
with timer idk what wrong with it but its seems like fine as i have experience but there is alot experience people in samp so have a look and give suggestion or help hand what i did wrong
PROBLEM >> problem is its working fine when someone is connecting ingame after spawning and 3 seconds or maybe 8 or 9 seconds textdraw is going to be dissapear idk what wrong with it here is Codes
PHP код:
////////////////INCLUDES///////////////////////////
#include <a_samp>
#include <foreach>
new Text:Textdrawdot;
new Text:Textdrawname;
new Text:TextDraw3s;
// On top of your script.
#define RepeatingTime 3
// 3 = minutes
new AutoMessageNum;
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(TextDraw3s, "~r~F~W~astAndFurious.Usa.c~r~c");
case 1: TextDrawSetString(TextDraw3s, "~r~Fa~W~stAndFurious.Usa~r~.cc");
case 2: TextDrawSetString(TextDraw3s, "~r~Fas~W~tAndFurious.Us~r~a.cc");
case 3: TextDrawSetString(TextDraw3s, "~r~Fast~W~AndFurious.U~r~sa.cc");
case 4: TextDrawSetString(TextDraw3s, "~r~FastA~W~ndFurious~r~.Usa.cc");
case 5: TextDrawSetString(TextDraw3s, "~r~FastAn~W~dFuriou~r~s.Usa.cc");
case 6: TextDrawSetString(TextDraw3s, "~r~FastAnd~W~Furio~r~us.Usa.cc");
case 7: TextDrawSetString(TextDraw3s, "~r~FastAndF~W~uri~r~ous.Usa.cc");
case 8: TextDrawSetString(TextDraw3s, "~r~FastAndFu~W~r~r~ious.Usa.cc");
case 9: TextDrawSetString(TextDraw3s, "~r~FastAndFurious.Usa.cc");
case 10: TextDrawSetString(TextDraw3s, "FastAndFurious.Usa.cc");
case 11: TextDrawSetString(TextDraw3s, "~y~F~W~astAndFurious.Usa.c~y~c");
case 12: TextDrawSetString(TextDraw3s, "~y~Fa~W~stAndFurious.Usa~y~.cc");
case 13: TextDrawSetString(TextDraw3s, "~y~Fas~W~tAndFurious.Us~y~a.cc");
case 14: TextDrawSetString(TextDraw3s, "~y~Fast~W~AndFurious.U~y~sa.cc");
case 15: TextDrawSetString(TextDraw3s, "~y~FastA~W~ndFurious~y~.Usa.cc");
case 16: TextDrawSetString(TextDraw3s, "~y~FastAn~W~dFuriou~y~s.Usa.cc");
case 17: TextDrawSetString(TextDraw3s, "~y~FastAnd~W~Furio~y~us.Usa.cc");
case 18: TextDrawSetString(TextDraw3s, "~y~FastAndF~W~uri~y~ous.Usa.cc");
case 19: TextDrawSetString(TextDraw3s, "~y~FastAndFu~W~r~y~ious.Usa.cc");
case 20: TextDrawSetString(TextDraw3s, "~y~FastAndFurious.Usa.cc");
case 21: TextDrawSetString(TextDraw3s, "FastAndFurious.Usa.cc");
case 22: TextDrawSetString(TextDraw3s, "~g~F~W~astAndFurious.Usa.c~g~c");
case 23: TextDrawSetString(TextDraw3s, "~g~Fa~W~stAndFurious.Usa~g~.cc");
case 24: TextDrawSetString(TextDraw3s, "~g~Fas~W~tAndFurious.Us~g~a.cc");
case 25: TextDrawSetString(TextDraw3s, "~g~Fast~W~AndFurious.U~g~sa.cc");
case 26: TextDrawSetString(TextDraw3s, "~g~FastA~W~ndFurious~g~.Usa.cc");
case 27: TextDrawSetString(TextDraw3s, "~g~FastAn~W~dFuriou~g~s.Usa.cc");
case 28: TextDrawSetString(TextDraw3s, "~g~FastAnd~W~Furio~g~us.Usa.cc");
case 29: TextDrawSetString(TextDraw3s, "~g~FastAndF~W~uri~g~ous.Usa.cc");
case 30: TextDrawSetString(TextDraw3s, "~g~FastAndFu~W~r~g~ious.Usa.cc");
case 31: TextDrawSetString(TextDraw3s, "~g~FastAndFurious.Usa.cc");
case 32: TextDrawSetString(TextDraw3s, "FastAndFurious.Usa.cc");
case 33: TextDrawSetString(TextDraw3s, "~p~F~W~astAndFurious.Usa.c~p~c");
case 34: TextDrawSetString(TextDraw3s, "~p~Fa~W~stAndFurious.Usa~p~.cc");
case 35: TextDrawSetString(TextDraw3s, "~p~Fas~W~tAndFurious.Us~p~a.cc");
case 36: TextDrawSetString(TextDraw3s, "~p~Fast~W~AndFurious.U~p~sa.cc");
case 37: TextDrawSetString(TextDraw3s, "~p~FastA~W~ndFurious~p~.Usa.cc");
case 38: TextDrawSetString(TextDraw3s, "~p~FastAn~W~dFuriou~p~s.Usa.cc");
case 39: TextDrawSetString(TextDraw3s, "~p~FastAnd~W~Furio~p~us.Usa.cc");
case 40: TextDrawSetString(TextDraw3s, "~p~FastAndF~W~uri~p~ous.Usa.cc");
case 41: TextDrawSetString(TextDraw3s, "~p~FastAndFu~W~r~p~ious.Usa.cc");
case 42: TextDrawSetString(TextDraw3s, "~p~FastAndFurious.Usa.cc");
case 43: TextDrawSetString(TextDraw3s, "FastAndFurious.Usa.cc");
case 44: TextDrawSetString(TextDraw3s, "~b~F~W~astAndFurious.Usa.c~b~c");
case 45: TextDrawSetString(TextDraw3s, "~b~Fa~W~stAndFurious.Usa~b~.cc");
case 46: TextDrawSetString(TextDraw3s, "~b~Fas~W~tAndFurious.Us~b~a.cc");
case 47: TextDrawSetString(TextDraw3s, "~b~Fast~W~AndFurious.U~b~sa.cc");
case 48: TextDrawSetString(TextDraw3s, "~b~FastA~W~ndFurious~b~.Usa.cc");
case 49: TextDrawSetString(TextDraw3s, "~b~FastAn~W~dFuriou~b~s.Usa.cc");
case 50: TextDrawSetString(TextDraw3s, "~b~FastAnd~W~Furio~b~us.Usa.cc");
case 51: TextDrawSetString(TextDraw3s, "~b~FastAndF~W~uri~b~ous.Usa.cc");
case 52: TextDrawSetString(TextDraw3s, "~b~FastAndFu~W~r~b~ious.Usa.cc");
case 53: TextDrawSetString(TextDraw3s, "~b~FastAndFurious.Usa.cc");
case 54: TextDrawSetString(TextDraw3s, "FastAndFurious.Usa.cc");
}
if(AutoMessageNum < 54) { AutoMessageNum++; }
else { AutoMessageNum = 0; }
return true;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, Textdrawdot);
TextDrawShowForPlayer(playerid, Textdrawname);
return 1;
}