SA-MP Forums Archive
[FilterScript] News textdraw - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] News textdraw (/showthread.php?tid=539146)



News textdraw - momo123 - 26.09.2014

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;
}



Re: News textdraw - iSkate - 26.09.2014

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


Re: News textdraw - Dignity - 26.09.2014

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.


Re: News textdraw - GamingPro - 26.09.2014

Images please!


Re : Re: News textdraw - AYOUYOU - 26.09.2014

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


Re: News textdraw - Ox1gEN - 26.09.2014

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).


Re: News textdraw - Raza2013 - 27.09.2014

Simple and nice


Re: News textdraw - EPIC2LA - 27.09.2014

Images?,

But pretty nice.


Re: News textdraw - momo123 - 27.09.2014

Image Added:



Re: News textdraw - momo123 - 27.09.2014

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