Server announce ingame How? -
deqn_0000 - 04.08.2011
How I can put into my server something like this:
?
Re: Server announce ingame How? -
Scarred - 04.08.2011
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.
Re: Server announce ingame How? -
deqn_0000 - 04.08.2011
Thank you,but can you tell me how to use textdraweditor please?
Re: Server announce ingame How? -
grand.Theft.Otto - 04.08.2011
What do you want yours to say? I can make it for you with the editor.
Re: Server announce ingame How? -
deqn_0000 - 04.08.2011
I wanna "
www.gta-powerbg.info " thanks
Re: Server announce ingame How? -
grand.Theft.Otto - 04.08.2011
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.
Re: Server announce ingame How? -
deqn_0000 - 05.08.2011
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
Re: Server announce ingame How? -
iPLEOMAX - 05.08.2011
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..