[FilterScript] News textdraw
#1

Hi Samp players, i create simple and easy news Line textdraw

i will post here the codes because its easy

Код:
/*
This system created by  momo123 pls dont remove credits

*/
#include <a_samp>

#define FILTERSCRIPT

#if defined FILTERSCRIPT

forward Nupdate ();
new Ntimer;

new Text:Ntick;

new news[][] =
{
"News_Line_1", "News_Line_2", "News_Line_3"
};


public OnFilterScriptInit()
{
        Ntimer = SetTimer("Nupdate", 5000, 1);
        print("\n--------------------------------------");
        print(" News System by momo123 ");
        print(" LOADED ");
        print("--------------------------------------\n");
    Ntick = TextDrawCreate(321.000000,435.000000,"Type your news here");
    TextDrawUseBox(Ntick,1);
    TextDrawBoxColor(Ntick,0x00000099);
    TextDrawTextSize(Ntick,0.000000,631.000000);
    TextDrawAlignment(Ntick,2);
    TextDrawBackgroundColor(Ntick,0x000000ff);
    TextDrawFont(Ntick,3);
    TextDrawLetterSize(Ntick,0.399999,1.100000);
    TextDrawColor(Ntick,0xffffffff);
    TextDrawSetOutline(Ntick,1);
    TextDrawSetProportional(Ntick,1);
    TextDrawSetShadow(Ntick,1);
        return 1;
}

public OnFilterScriptExit()
{
        KillTimer(Ntimer);
        print("\n--------------------------------------");
        print(" News System by momo123");
        print(" UNLOADED ");
        print("--------------------------------------\n");
        TextDrawDestroy(Ntick);
        return 1;
}

#else

main()
{
        print("\n----------------------------------");
        print(" News System by momo123 ");
        print("----------------------------------\n");
}

#endif

public OnPlayerConnect(playerid)
{
        TextDrawShowForPlayer(playerid, Ntick);
        return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
        TextDrawHideForPlayer(playerid, Ntick);
        return 1;
}

public Nupdate ()
{
static Number = 0;
TextDrawSetString(Ntick, news[Number++]);
TextDrawShowForAll(Ntick);
if(Number == sizeof(news)) Number = 0;
return 1;
}
Reply
#2

It would've been better if there were some images. I can't tell is this a good script or not. Post some images.
Reply
#3

Quote:
Originally Posted by inshal
Посмотреть сообщение
It would've been better if there were some images. I can't tell is this a good script or not. Post some images.
Depending on images to show you how "good" the script is, is not a good way of determining whether it is good or bad.

You can tell if it's a good script by looking at the code, not visuals. Any idiot can make a script look awesome visually.
Reply
#4

Images please!
Reply
#5

Quote:
Originally Posted by GamingPro
Посмотреть сообщение
Images please!
Same
Reply
#6

Well, if you made it dynamic so you could change the text that's written inside the news box in-game it'd be alot better.

Good job though. (Haven't looked at the code so much just ran through it).
Reply
#7

Simple and nice
Reply
#8

Images?,

But pretty nice.
Reply
#9

Image Added:
Reply
#10

Guys Can if you Like it +REP me (i realy Need RepS)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)