Server announce ingame How?
#1

How I can put into my server something like this:

?
Reply
#2

That would be a textdraw, you will need to create it using TextDrawCreate, and TextDrawShowForPlayer; I recommend checking out the SA:MP wiki, and for an easier way to create them in-game, I recommend https://sampforum.blast.hk/showthread.php?tid=117851.
Reply
#3

Thank you,but can you tell me how to use textdraweditor please?
Reply
#4

What do you want yours to say? I can make it for you with the editor.
Reply
#5

I wanna " www.gta-powerbg.info " thanks
Reply
#6

Here:

pawn Код:
// TextDraw developed using Zamaroht's Textdraw Editor 1.0

// On top of script:
new Text:Textdraw0;

// In OnGameModeInit prefferably, we procced to create our textdraws:
Textdraw0 = TextDrawCreate(477.000000, 100.000000, "www.gta-powerbg.info");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 3);
TextDrawLetterSize(Textdraw0, 0.400000, 1.300000);
TextDrawColor(Textdraw0, 16711935);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);

// You can now use TextDrawShowForPlayer(-ForAll), TextDrawHideForPlayer(-ForAll) and
// TextDrawDestroy functions to show, hide, and destroy the textdraw.
Made by Zamaroht's editor. It is not the same green as in that picture above, it is a brighter green.
Reply
#7

I got these errors:
pawn Код:
C:\Users\тоши\Desktop\[B-U-L-G-E-R-I-A-N [G-T-A] [S-E-R-V-E-R]\[B-U-L-G-E-R-I-A-N [G-T-A] [S-E-R-V-E-R]\original samp server mod\gamemodes\gangwars4.pwn(640) : warning 217: loose indentation
C:\Users\тоши\Desktop\[B-U-L-G-E-R-I-A-N [G-T-A] [S-E-R-V-E-R]\[B-U-L-G-E-R-I-A-N [G-T-A] [S-E-R-V-E-R]\original samp server mod\gamemodes\gangwars4.pwn(648) : warning 217: loose indentation
pawn Код:
Textdraw0 = TextDrawCreate(477.000000, 100.000000, "www.gta-powerbg.info");
TextDrawBackgroundColor(Textdraw0, 255); //Line640
TextDrawFont(Textdraw0, 3);
TextDrawLetterSize(Textdraw0, 0.400000, 1.300000);
TextDrawColor(Textdraw0, 16711935);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
//===============================[Player Class]=================================
    AddPlayerClass(1, 1481.2080,    -1770.6204, 18.7958,    359.4039, -1, -1, -1, -1, -1, -1); //Civilian 1 //line 648
Reply
#8

Move the textdraw(lines) a little further:

pawn Код:
//Like this:
    Textdraw0 = TextDrawCreate(477.000000, 100.000000, "www.gta-powerbg.info");
    TextDrawBackgroundColor(Textdraw0, 255); //Line640
    TextDrawFont(Textdraw0, 3);
    TextDrawLetterSize(Textdraw0, 0.400000, 1.300000);
    TextDrawColor(Textdraw0, 16711935);
    TextDrawSetOutline(Textdraw0, 0);
    TextDrawSetProportional(Textdraw0, 1);
    TextDrawSetShadow(Textdraw0, 1);
    //===============================[Player Class]=================================
    AddPlayerClass(1, 1481.2080,    -1770.6204, 18.7958,    359.4039, -1, -1, -1, -1, -1, -1); //Civilian 1 //line 648
or arrange them correctly..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)