Textdraw Message help
#1

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

PHP код:
#include <a_samp>
#include <foreach>
new Text:Textdrawdot;
new 
Text:Textdrawname;
new 
AutoMessageNum;
#define RepeatingTime 3
public OnFilterScriptInit()
{
Textdrawname TextDrawCreate(243.500000404.250000"FastAndFurious.Usa.cc");
TextDrawLetterSize(Textdrawname0.4499991.600000);
TextDrawAlignment(Textdrawname1);
TextDrawColor(Textdrawname, -1);
TextDrawSetShadow(Textdrawname0);
TextDrawSetOutline(Textdrawname1);
TextDrawBackgroundColor(Textdrawname51);
TextDrawFont(Textdrawname3);
TextDrawSetProportional(Textdrawname1);
Textdrawdot TextDrawCreate(475.500000327.833007"");
TextDrawLetterSize(Textdrawdot0.4499991.600000);
TextDrawAlignment(Textdrawdot1);
TextDrawColor(Textdrawdot, -5963521);
TextDrawSetShadow(Textdrawdot0);
TextDrawSetOutline(Textdrawdot1);
TextDrawBackgroundColor(Textdrawdot51);
TextDrawFont(Textdrawdot1);
TextDrawSetProportional(Textdrawdot1);
SetTimer("AutoMessage"RepeatingTime*45true);
return 
1;
}
forward AutoMessage();
public 
AutoMessage()
{
    switch(
AutoMessageNum)
    {
        case 
0TextDrawSetString(Textdrawname"~r~F~W~astAndFurious.Usa.c~r~c");
        case 
1TextDrawSetString(Textdrawname"~r~Fa~W~stAndFurious.Usa~r~.cc");
        case 
2TextDrawSetString(Textdrawname"~r~Fas~W~tAndFurious.Us~r~a.cc");
        case 
3TextDrawSetString(Textdrawname"~r~Fast~W~AndFurious.U~r~sa.cc");
        case 
4TextDrawSetString(Textdrawname"~r~FastA~W~ndFurious~r~.Usa.cc");
        case 
5TextDrawSetString(Textdrawname"~r~FastAn~W~dFuriou~r~s.Usa.cc");
        case 
6TextDrawSetString(Textdrawname"~r~FastAnd~W~Furio~r~us.Usa.cc");
        case 
7TextDrawSetString(Textdrawname"~r~FastAndF~W~uri~r~ous.Usa.cc");
        case 
8TextDrawSetString(Textdrawname"~r~FastAndFu~W~r~r~ious.Usa.cc");
        case 
9TextDrawSetString(Textdrawname"~r~FastAndFurious.Usa.cc");
        case 
10TextDrawSetString(Textdrawname"FastAndFurious.Usa.cc");
        case 
11TextDrawSetString(Textdrawname"~y~F~W~astAndFurious.Usa.c~y~c");
        case 
12TextDrawSetString(Textdrawname"~y~Fa~W~stAndFurious.Usa~y~.cc");
        case 
13TextDrawSetString(Textdrawname"~y~Fas~W~tAndFurious.Us~y~a.cc");
        case 
14TextDrawSetString(Textdrawname"~y~Fast~W~AndFurious.U~y~sa.cc");
        case 
15TextDrawSetString(Textdrawname"~y~FastA~W~ndFurious~y~.Usa.cc");
        case 
16TextDrawSetString(Textdrawname"~y~FastAn~W~dFuriou~y~s.Usa.cc");
        case 
17TextDrawSetString(Textdrawname"~y~FastAnd~W~Furio~y~us.Usa.cc");
        case 
18TextDrawSetString(Textdrawname"~y~FastAndF~W~uri~y~ous.Usa.cc");
        case 
19TextDrawSetString(Textdrawname"~y~FastAndFu~W~r~y~ious.Usa.cc");
        case 
20TextDrawSetString(Textdrawname"~y~FastAndFurious.Usa.cc");
        case 
21TextDrawSetString(Textdrawname"FastAndFurious.Usa.cc");
        case 
22TextDrawSetString(Textdrawname"~g~F~W~astAndFurious.Usa.c~g~c");
        case 
23TextDrawSetString(Textdrawname"~g~Fa~W~stAndFurious.Usa~g~.cc");
        case 
24TextDrawSetString(Textdrawname"~g~Fas~W~tAndFurious.Us~g~a.cc");
        case 
25TextDrawSetString(Textdrawname"~g~Fast~W~AndFurious.U~g~sa.cc");
        case 
26TextDrawSetString(Textdrawname"~g~FastA~W~ndFurious~g~.Usa.cc");
        case 
27TextDrawSetString(Textdrawname"~g~FastAn~W~dFuriou~g~s.Usa.cc");
        case 
28TextDrawSetString(Textdrawname"~g~FastAnd~W~Furio~g~us.Usa.cc");
        case 
29TextDrawSetString(Textdrawname"~g~FastAndF~W~uri~g~ous.Usa.cc");
        case 
30TextDrawSetString(Textdrawname"~g~FastAndFu~W~r~g~ious.Usa.cc");
        case 
31TextDrawSetString(Textdrawname"~g~FastAndFurious.Usa.cc");
        case 
32TextDrawSetString(Textdrawname"FastAndFurious.Usa.cc");
        case 
33TextDrawSetString(Textdrawname"~p~F~W~astAndFurious.Usa.c~p~c");
        case 
34TextDrawSetString(Textdrawname"~p~Fa~W~stAndFurious.Usa~p~.cc");
        case 
35TextDrawSetString(Textdrawname"~p~Fas~W~tAndFurious.Us~p~a.cc");
        case 
36TextDrawSetString(Textdrawname"~p~Fast~W~AndFurious.U~p~sa.cc");
        case 
37TextDrawSetString(Textdrawname"~p~FastA~W~ndFurious~p~.Usa.cc");
        case 
38TextDrawSetString(Textdrawname"~p~FastAn~W~dFuriou~p~s.Usa.cc");
        case 
39TextDrawSetString(Textdrawname"~p~FastAnd~W~Furio~p~us.Usa.cc");
        case 
40TextDrawSetString(Textdrawname"~p~FastAndF~W~uri~p~ous.Usa.cc");
        case 
41TextDrawSetString(Textdrawname"~p~FastAndFu~W~r~p~ious.Usa.cc");
        case 
42TextDrawSetString(Textdrawname"~p~FastAndFurious.Usa.cc");
        case 
43TextDrawSetString(Textdrawname"FastAndFurious.Usa.cc");
        case 
44TextDrawSetString(Textdrawname"~b~F~W~astAndFurious.Usa.c~b~c");
        case 
45TextDrawSetString(Textdrawname"~b~Fa~W~stAndFurious.Usa~b~.cc");
        case 
46TextDrawSetString(Textdrawname"~b~Fas~W~tAndFurious.Us~b~a.cc");
        case 
47TextDrawSetString(Textdrawname"~b~Fast~W~AndFurious.U~b~sa.cc");
        case 
48TextDrawSetString(Textdrawname"~b~FastA~W~ndFurious~b~.Usa.cc");
        case 
49TextDrawSetString(Textdrawname"~b~FastAn~W~dFuriou~b~s.Usa.cc");
        case 
50TextDrawSetString(Textdrawname"~b~FastAnd~W~Furio~b~us.Usa.cc");
        case 
51TextDrawSetString(Textdrawname"~b~FastAndF~W~uri~b~ous.Usa.cc");
        case 
52TextDrawSetString(Textdrawname"~b~FastAndFu~W~r~b~ious.Usa.cc");
        case 
53TextDrawSetString(Textdrawname"~b~FastAndFurious.Usa.cc");
        case 
54TextDrawSetString(Textdrawname"FastAndFurious.Usa.cc");
    }
    if(
AutoMessageNum 54) { AutoMessageNum++; }
    else { 
AutoMessageNum 0; }
    return 
true;
}
public 
OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playeridTextdrawdot);
TextDrawShowForPlayer(playeridTextdrawname);
return 
1;

Reply
#2

What?
Reply
#3

its not working help me to fix it i wanted to make message textdraw system without random messages
Reply
#4

PHP код:
#include <a_samp>

new Text:Textdrawdot;
new 
Text:Textdrawname;
new 
AutoMessageNum = -1;

#define RepeatingTime 3

public OnFilterScriptInit()
{
Textdrawname TextDrawCreate(243.500000404.250000"FastAndFurious.Usa.cc");
TextDrawLetterSize(Textdrawname0.4499991.600000);
TextDrawAlignment(Textdrawname1);
TextDrawColor(Textdrawname, -1);
TextDrawSetShadow(Textdrawname0);
TextDrawSetOutline(Textdrawname1);
TextDrawBackgroundColor(Textdrawname51);
TextDrawFont(Textdrawname3);
TextDrawSetProportional(Textdrawname1);

Textdrawdot TextDrawCreate(475.500000327.833007"");
TextDrawLetterSize(Textdrawdot0.4499991.600000);
TextDrawAlignment(Textdrawdot1);
TextDrawColor(Textdrawdot, -5963521);
TextDrawSetShadow(Textdrawdot0);
TextDrawSetOutline(Textdrawdot1);
TextDrawBackgroundColor(Textdrawdot51);
TextDrawFont(Textdrawdot1);
TextDrawSetProportional(Textdrawdot1);

SetTimer("AutoMessage"RepeatingTime*45true);
return 
1;
}


forward AutoMessage();
public 
AutoMessage()
{
    if(
AutoMessageNum == 54) { AutoMessageNum = -1; }
    
AutoMessageNum ++;
    switch(
AutoMessageNum)
    {
        case 
0TextDrawSetString(Textdrawname"~r~F~W~astAndFurious.Usa.c~r~c");
        case 
1TextDrawSetString(Textdrawname"~r~Fa~W~stAndFurious.Usa~r~.cc");
        case 
2TextDrawSetString(Textdrawname"~r~Fas~W~tAndFurious.Us~r~a.cc");
        case 
3TextDrawSetString(Textdrawname"~r~Fast~W~AndFurious.U~r~sa.cc");
        case 
4TextDrawSetString(Textdrawname"~r~FastA~W~ndFurious~r~.Usa.cc");
        case 
5TextDrawSetString(Textdrawname"~r~FastAn~W~dFuriou~r~s.Usa.cc");
        case 
6TextDrawSetString(Textdrawname"~r~FastAnd~W~Furio~r~us.Usa.cc");
        case 
7TextDrawSetString(Textdrawname"~r~FastAndF~W~uri~r~ous.Usa.cc");
        case 
8TextDrawSetString(Textdrawname"~r~FastAndFu~W~r~r~ious.Usa.cc");
        case 
9TextDrawSetString(Textdrawname"~r~FastAndFurious.Usa.cc");
        case 
10TextDrawSetString(Textdrawname"FastAndFurious.Usa.cc");

        case 
11TextDrawSetString(Textdrawname"~y~F~W~astAndFurious.Usa.c~y~c");
        case 
12TextDrawSetString(Textdrawname"~y~Fa~W~stAndFurious.Usa~y~.cc");
        case 
13TextDrawSetString(Textdrawname"~y~Fas~W~tAndFurious.Us~y~a.cc");
        case 
14TextDrawSetString(Textdrawname"~y~Fast~W~AndFurious.U~y~sa.cc");
        case 
15TextDrawSetString(Textdrawname"~y~FastA~W~ndFurious~y~.Usa.cc");
        case 
16TextDrawSetString(Textdrawname"~y~FastAn~W~dFuriou~y~s.Usa.cc");
        case 
17TextDrawSetString(Textdrawname"~y~FastAnd~W~Furio~y~us.Usa.cc");
        case 
18TextDrawSetString(Textdrawname"~y~FastAndF~W~uri~y~ous.Usa.cc");
        case 
19TextDrawSetString(Textdrawname"~y~FastAndFu~W~r~y~ious.Usa.cc");
        case 
20TextDrawSetString(Textdrawname"~y~FastAndFurious.Usa.cc");
        case 
21TextDrawSetString(Textdrawname"FastAndFurious.Usa.cc");

        case 
22TextDrawSetString(Textdrawname"~g~F~W~astAndFurious.Usa.c~g~c");
        case 
23TextDrawSetString(Textdrawname"~g~Fa~W~stAndFurious.Usa~g~.cc");
        case 
24TextDrawSetString(Textdrawname"~g~Fas~W~tAndFurious.Us~g~a.cc");
        case 
25TextDrawSetString(Textdrawname"~g~Fast~W~AndFurious.U~g~sa.cc");
        case 
26TextDrawSetString(Textdrawname"~g~FastA~W~ndFurious~g~.Usa.cc");
        case 
27TextDrawSetString(Textdrawname"~g~FastAn~W~dFuriou~g~s.Usa.cc");
        case 
28TextDrawSetString(Textdrawname"~g~FastAnd~W~Furio~g~us.Usa.cc");
        case 
29TextDrawSetString(Textdrawname"~g~FastAndF~W~uri~g~ous.Usa.cc");
        case 
30TextDrawSetString(Textdrawname"~g~FastAndFu~W~r~g~ious.Usa.cc");
        case 
31TextDrawSetString(Textdrawname"~g~FastAndFurious.Usa.cc");
        case 
32TextDrawSetString(Textdrawname"FastAndFurious.Usa.cc");

        case 
33TextDrawSetString(Textdrawname"~p~F~W~astAndFurious.Usa.c~p~c");
        case 
34TextDrawSetString(Textdrawname"~p~Fa~W~stAndFurious.Usa~p~.cc");
        case 
35TextDrawSetString(Textdrawname"~p~Fas~W~tAndFurious.Us~p~a.cc");
        case 
36TextDrawSetString(Textdrawname"~p~Fast~W~AndFurious.U~p~sa.cc");
        case 
37TextDrawSetString(Textdrawname"~p~FastA~W~ndFurious~p~.Usa.cc");
        case 
38TextDrawSetString(Textdrawname"~p~FastAn~W~dFuriou~p~s.Usa.cc");
        case 
39TextDrawSetString(Textdrawname"~p~FastAnd~W~Furio~p~us.Usa.cc");
        case 
40TextDrawSetString(Textdrawname"~p~FastAndF~W~uri~p~ous.Usa.cc");
        case 
41TextDrawSetString(Textdrawname"~p~FastAndFu~W~r~p~ious.Usa.cc");
        case 
42TextDrawSetString(Textdrawname"~p~FastAndFurious.Usa.cc");
        case 
43TextDrawSetString(Textdrawname"FastAndFurious.Usa.cc");

        case 
44TextDrawSetString(Textdrawname"~b~F~W~astAndFurious.Usa.c~b~c");
        case 
45TextDrawSetString(Textdrawname"~b~Fa~W~stAndFurious.Usa~b~.cc");
        case 
46TextDrawSetString(Textdrawname"~b~Fas~W~tAndFurious.Us~b~a.cc");
        case 
47TextDrawSetString(Textdrawname"~b~Fast~W~AndFurious.U~b~sa.cc");
        case 
48TextDrawSetString(Textdrawname"~b~FastA~W~ndFurious~b~.Usa.cc");
        case 
49TextDrawSetString(Textdrawname"~b~FastAn~W~dFuriou~b~s.Usa.cc");
        case 
50TextDrawSetString(Textdrawname"~b~FastAnd~W~Furio~b~us.Usa.cc");
        case 
51TextDrawSetString(Textdrawname"~b~FastAndF~W~uri~b~ous.Usa.cc");
        case 
52TextDrawSetString(Textdrawname"~b~FastAndFu~W~r~b~ious.Usa.cc");
        case 
53TextDrawSetString(Textdrawname"~b~FastAndFurious.Usa.cc");
        case 
54TextDrawSetString(Textdrawname"FastAndFurious.Usa.cc");


    }
    return 
true;
}


public 
OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playeridTextdrawdot);
TextDrawShowForPlayer(playeridTextdrawname);

return 
1;

Reply
#5

not works dissapearing
Reply
#6

pawn Код:
#include <a_samp>

new Text:Textdrawdot;
new Text:Textdrawname;
new AutoMessageNum = 0;

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", 3*45, true);
return 1;
}


forward AutoMessage();
public AutoMessage()
{
    AutoMessageNum ++;
    switch(AutoMessageNum)
    {
        case 1: TextDrawSetString(Textdrawname, "~r~F~W~astAndFurious.Usa.c~r~c");
        case 2: TextDrawSetString(Textdrawname, "~r~Fa~W~stAndFurious.Usa~r~.cc");
        case 3: TextDrawSetString(Textdrawname, "~r~Fas~W~tAndFurious.Us~r~a.cc");
        case 4: TextDrawSetString(Textdrawname, "~r~Fast~W~AndFurious.U~r~sa.cc");
        case 5: TextDrawSetString(Textdrawname, "~r~FastA~W~ndFurious~r~.Usa.cc");
        case 6: TextDrawSetString(Textdrawname, "~r~FastAn~W~dFuriou~r~s.Usa.cc");
        case 7: TextDrawSetString(Textdrawname, "~r~FastAnd~W~Furio~r~us.Usa.cc");
        case 8: TextDrawSetString(Textdrawname, "~r~FastAndF~W~uri~r~ous.Usa.cc");
        case 9: TextDrawSetString(Textdrawname, "~r~FastAndFu~W~r~r~ious.Usa.cc");
        case 10: TextDrawSetString(Textdrawname, "~r~FastAndFurious.Usa.cc");
        case 11: TextDrawSetString(Textdrawname, "FastAndFurious.Usa.cc");

        case 12: TextDrawSetString(Textdrawname, "~y~F~W~astAndFurious.Usa.c~y~c");
        case 13: TextDrawSetString(Textdrawname, "~y~Fa~W~stAndFurious.Usa~y~.cc");
        case 14: TextDrawSetString(Textdrawname, "~y~Fas~W~tAndFurious.Us~y~a.cc");
        case 15: TextDrawSetString(Textdrawname, "~y~Fast~W~AndFurious.U~y~sa.cc");
        case 16: TextDrawSetString(Textdrawname, "~y~FastA~W~ndFurious~y~.Usa.cc");
        case 17: TextDrawSetString(Textdrawname, "~y~FastAn~W~dFuriou~y~s.Usa.cc");
        case 18: TextDrawSetString(Textdrawname, "~y~FastAnd~W~Furio~y~us.Usa.cc");
        case 19: TextDrawSetString(Textdrawname, "~y~FastAndF~W~uri~y~ous.Usa.cc");
        case 20: TextDrawSetString(Textdrawname, "~y~FastAndFu~W~r~y~ious.Usa.cc");
        case 21: TextDrawSetString(Textdrawname, "~y~FastAndFurious.Usa.cc");
        case 22: TextDrawSetString(Textdrawname, "FastAndFurious.Usa.cc");

        case 23: TextDrawSetString(Textdrawname, "~g~F~W~astAndFurious.Usa.c~g~c");
        case 24: TextDrawSetString(Textdrawname, "~g~Fa~W~stAndFurious.Usa~g~.cc");
        case 25: TextDrawSetString(Textdrawname, "~g~Fas~W~tAndFurious.Us~g~a.cc");
        case 26: TextDrawSetString(Textdrawname, "~g~Fast~W~AndFurious.U~g~sa.cc");
        case 27: TextDrawSetString(Textdrawname, "~g~FastA~W~ndFurious~g~.Usa.cc");
        case 28: TextDrawSetString(Textdrawname, "~g~FastAn~W~dFuriou~g~s.Usa.cc");
        case 29: TextDrawSetString(Textdrawname, "~g~FastAnd~W~Furio~g~us.Usa.cc");
        case 30: TextDrawSetString(Textdrawname, "~g~FastAndF~W~uri~g~ous.Usa.cc");
        case 31: TextDrawSetString(Textdrawname, "~g~FastAndFu~W~r~g~ious.Usa.cc");
        case 32: TextDrawSetString(Textdrawname, "~g~FastAndFurious.Usa.cc");
        case 33: TextDrawSetString(Textdrawname, "FastAndFurious.Usa.cc");

        case 34: TextDrawSetString(Textdrawname, "~p~F~W~astAndFurious.Usa.c~p~c");
        case 35: TextDrawSetString(Textdrawname, "~p~Fa~W~stAndFurious.Usa~p~.cc");
        case 36: TextDrawSetString(Textdrawname, "~p~Fas~W~tAndFurious.Us~p~a.cc");
        case 37: TextDrawSetString(Textdrawname, "~p~Fast~W~AndFurious.U~p~sa.cc");
        case 38: TextDrawSetString(Textdrawname, "~p~FastA~W~ndFurious~p~.Usa.cc");
        case 39: TextDrawSetString(Textdrawname, "~p~FastAn~W~dFuriou~p~s.Usa.cc");
        case 40: TextDrawSetString(Textdrawname, "~p~FastAnd~W~Furio~p~us.Usa.cc");
        case 41: TextDrawSetString(Textdrawname, "~p~FastAndF~W~uri~p~ous.Usa.cc");
        case 42: TextDrawSetString(Textdrawname, "~p~FastAndFu~W~r~p~ious.Usa.cc");
        case 43: TextDrawSetString(Textdrawname, "~p~FastAndFurious.Usa.cc");
        case 44: TextDrawSetString(Textdrawname, "FastAndFurious.Usa.cc");

        case 45: TextDrawSetString(Textdrawname, "~b~F~W~astAndFurious.Usa.c~b~c");
        case 46: TextDrawSetString(Textdrawname, "~b~Fa~W~stAndFurious.Usa~b~.cc");
        case 47: TextDrawSetString(Textdrawname, "~b~Fas~W~tAndFurious.Us~b~a.cc");
        case 48: TextDrawSetString(Textdrawname, "~b~Fast~W~AndFurious.U~b~sa.cc");
        case 49: TextDrawSetString(Textdrawname, "~b~FastA~W~ndFurious~b~.Usa.cc");
        case 50: TextDrawSetString(Textdrawname, "~b~FastAn~W~dFuriou~b~s.Usa.cc");
        case 51: TextDrawSetString(Textdrawname, "~b~FastAnd~W~Furio~b~us.Usa.cc");
        case 52: TextDrawSetString(Textdrawname, "~b~FastAndF~W~uri~b~ous.Usa.cc");
        case 53: TextDrawSetString(Textdrawname, "~b~FastAndFu~W~r~b~ious.Usa.cc");
        case 54: TextDrawSetString(Textdrawname, "~b~FastAndFurious.Usa.cc");
        case 55: TextDrawSetString(Textdrawname, "FastAndFurious.Usa.cc"), AutoMessageNum=0;

    }
    return true;
}


public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, Textdrawdot);
TextDrawShowForPlayer(playerid, Textdrawname);
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)