[FilterScript] Textdraw displays your server IP (SIMPLE)
#1

textdraw showing ip when playing..

PHOTO:



CODE:

pawn Код:
//Created by: ADO[K]1NG
//Not stealing credit, please!

#include <a_samp>

new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
new Text:Textdraw6;
new Text:Textdraw7;
new Text:Textdraw8;

public OnGameModeInit()
{
    Textdraw1 = TextDrawCreate(498.000000, 100.000000, "~r~IP~w~:
~b~125~w~.~p~132~w~.~r~~h~25~w~.~g~251~w~:~y~2513"
);
    TextDrawBackgroundColor(Textdraw1, 255);
    TextDrawFont(Textdraw1, 3);
    TextDrawLetterSize(Textdraw1, 0.270000, 2.000001);
    TextDrawColor(Textdraw1, -1);
    TextDrawSetOutline(Textdraw1, 1);
    TextDrawSetProportional(Textdraw1, 1);
   
    Textdraw3 = TextDrawCreate(498.000000, 119.000000, "Thanks for visiting");
    TextDrawBackgroundColor(Textdraw3, 255);
    TextDrawFont(Textdraw3, 2);
    TextDrawLetterSize(Textdraw3, 0.240000, 1.100000);
    TextDrawColor(Textdraw3, -1);
    TextDrawSetOutline(Textdraw3, 1);
    TextDrawSetProportional(Textdraw3, 1);

    Textdraw0 = TextDrawCreate(476.000000, 108.000000, "]");
    TextDrawBackgroundColor(Textdraw0, 255);
    TextDrawFont(Textdraw0, 2);
    TextDrawLetterSize(Textdraw0, 0.529999, -1.800000);
    TextDrawColor(Textdraw0, -65281);
    TextDrawSetOutline(Textdraw0, 1);
    TextDrawSetProportional(Textdraw0, 1);

    Textdraw2 = TextDrawCreate(617.000000, 102.000000, "_");
    TextDrawBackgroundColor(Textdraw2, 255);
    TextDrawFont(Textdraw2, 1);
    TextDrawLetterSize(Textdraw2, 0.500000, 3.500000);
    TextDrawColor(Textdraw2, 16777215);
    TextDrawSetOutline(Textdraw2, 0);
    TextDrawSetProportional(Textdraw2, 1);
    TextDrawSetShadow(Textdraw2, 1);
    TextDrawUseBox(Textdraw2, 1);
    TextDrawBoxColor(Textdraw2, 90);
    TextDrawTextSize(Textdraw2, 488.000000, 0.000000);

    Textdraw4 = TextDrawCreate(470.000000, 126.000000, "]");
    TextDrawBackgroundColor(Textdraw4, 255);
    TextDrawFont(Textdraw4, 2);
    TextDrawLetterSize(Textdraw4, 0.529999, -1.800000);
    TextDrawColor(Textdraw4, -65281);
    TextDrawSetOutline(Textdraw4, 1);
    TextDrawSetProportional(Textdraw4, 1);

    Textdraw5 = TextDrawCreate(478.000000, 145.000000, "]");
    TextDrawBackgroundColor(Textdraw5, 255);
    TextDrawFont(Textdraw5, 2);
    TextDrawLetterSize(Textdraw5, 0.529999, -1.800000);
    TextDrawColor(Textdraw5, -65281);
    TextDrawSetOutline(Textdraw5, 1);
    TextDrawSetProportional(Textdraw5, 1);

    Textdraw6 = TextDrawCreate(609.000000, 145.000000, "]");
    TextDrawBackgroundColor(Textdraw6, 255);
    TextDrawFont(Textdraw6, 2);
    TextDrawLetterSize(Textdraw6, 0.529999, -1.800000);
    TextDrawColor(Textdraw6, -65281);
    TextDrawSetOutline(Textdraw6, 1);
    TextDrawSetProportional(Textdraw6, 1);

    Textdraw7 = TextDrawCreate(616.000000, 126.000000, "]");
    TextDrawBackgroundColor(Textdraw7, 255);
    TextDrawFont(Textdraw7, 2);
    TextDrawLetterSize(Textdraw7, 0.529999, -1.800000);
    TextDrawColor(Textdraw7, -65281);
    TextDrawSetOutline(Textdraw7, 1);
    TextDrawSetProportional(Textdraw7, 1);

    Textdraw8 = TextDrawCreate(611.000000, 106.000000, "]");
    TextDrawBackgroundColor(Textdraw8, 255);
    TextDrawFont(Textdraw8, 2);
    TextDrawLetterSize(Textdraw8, 0.529999, -1.800000);
    TextDrawColor(Textdraw8, -65281);
    TextDrawSetOutline(Textdraw8, 1);
    TextDrawSetProportional(Textdraw8, 1);
    return 1;
}

public OnPlayerSpawn(playerid)
{
    TextDrawShowForPlayer(playerid, Textdraw1);
    TextDrawShowForPlayer(playerid, Textdraw0);
    TextDrawShowForPlayer(playerid, Textdraw2);
    TextDrawShowForPlayer(playerid, Textdraw3);
    TextDrawShowForPlayer(playerid, Textdraw4);
    TextDrawShowForPlayer(playerid, Textdraw5);
    TextDrawShowForPlayer(playerid, Textdraw6);
    TextDrawShowForPlayer(playerid, Textdraw7);
    TextDrawShowForPlayer(playerid, Textdraw8);
    return 1;
}
CREDITS:
Creador: ADO[K]1NG (Yo)

Until next work, see you..
Reply
#2

Nice & Simple
Reply
#3

And this? https://sampforum.blast.hk/showthread.php?tid=525038
Reply
#4

I like It, good job.
Reply
#5

Quote:
Originally Posted by AviPeker
Посмотреть сообщение
Nice & Simple
Yeah, thanks!

Quote:
Originally Posted by hydewhyd
Посмотреть сообщение
it's mine, only in Spanish

Quote:
Originally Posted by Faix
Посмотреть сообщение
I like It, good job.
Thanks you!
Reply
#6

Nice and simple. Good job.
Reply
#7

Great FS, two issues though mate :3

First, use per player textdraws mostly the IP one, second Textdraw1 and 3 can be together.
Reply
#8

Nice and simple work!
Reply
#9

Thanks to all the people!
Reply
#10

Nice FS as i think I really appreciated.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)