/*
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;
}
|
It would've been better if there were some images. I can't tell is this a good script or not. Post some images.
|