06.07.2012, 13:16
I want adverdise my forum in my server how to do that i need autotext
#include <a_samp>
public OnFilterScriptInit() {
SetTimer("Announcement",300000,true);
return 1;
}
forward Announcement();
public Announcement() {
GameTextForAll("~w~Visit ~r~mywebsite.com ~w~~n~To gain access to the forum",5000,5); //Replace mywebsite.com with your forum website address.
return 1;
}
#include <a_samp>
new Text:Textdraw0;
public OnFilterScriptInit()
{
SetTimer("Announcement",300000,true);
Textdraw0 = TextDrawCreate(10.000000, 320.000000, "~g~~h~Visit My WebSite~w~ : example~g~~h~.~w~com~g~~h~.~w~br");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.310000, 1.899999);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);
return 1;
}
forward Announcement(playerid);
public Announcement(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw0);
SetTimerEx("ExitText", 5000, false, "d", playerid); // 5 Seconds.
return 1;
}
forward ExitText(playerid);
public ExitText(playerid){TextDrawHideForPlayer(playerid, Textdraw0);}
TextDrawn:
pawn Код:
|