How to make a autotext
#1

I want adverdise my forum in my server how to do that i need autotext
Reply
#2

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
Reply
#3

how to use those man ?DS?D?S?d
Reply
#4

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;
}
Reply
#5

where to put this fucking text
Reply
#6

Quote:
Originally Posted by Gogeta
Посмотреть сообщение
where to put this fucking text
in the fucking gamemode
Reply
#7

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);}
Reply
#8

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.
Reply
#9

OMFG open pawno new list

type ctrl+f and public OnFilterScriptInit

and you make #define forward Annaouncment and you rdy
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)