How to make a autotext - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to make a autotext (
/showthread.php?tid=357206)
How to make a autotext -
Gogeta - 06.07.2012
I want adverdise my forum in my server how to do that i need autotext
Re: How to make a autotext -
Gamer_007 - 06.07.2012
Quote:
Originally Posted by Gogeta
I want adverdise my forum in my server how to do that i need autotext
|
Use text draws or random messages or announcements
Re: How to make a autotext -
Gogeta - 06.07.2012
how to use those man ?DS?D?S?d
Re: How to make a autotext -
clarencecuzz - 06.07.2012
I'm not too good with textdraws but I can make a timed announcement.
pawn Код:
#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;
}
Re: How to make a autotext -
Gogeta - 06.07.2012
where to put this fucking text
Re: How to make a autotext -
milanosie - 06.07.2012
Quote:
Originally Posted by Gogeta
where to put this fucking text
|
in the fucking gamemode
Re: How to make a autotext -
cJMaster_ - 06.07.2012
TextDrawn:
pawn Код:
#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);}
Re: How to make a autotext -
clarencecuzz - 06.07.2012
Quote:
Originally Posted by Gogeta
where to put this fucking text
|
Put public and forward Announcement at the VERY bottom of your script. Put OnFilterScriptInit at the top under #include and all new variables, or combine with your current OnFilterScriptInit. Change to OnGameModeInit if you're using it in a gamemode.
Re: How to make a autotext -
kaloqn54 - 06.07.2012
OMFG open pawno new list
type ctrl+f and public OnFilterScriptInit
and you make #define forward Annaouncment and you rdy
Re: How to make a autotext -
cJMaster_ - 06.07.2012
Quote:
Originally Posted by doodem
TextDrawn:
pawn Код:
#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);}
|
Screen:
http://i46.tinypic.com/29zbs08.png