02.08.2011, 21:55
Announceing help
02.08.2011, 22:00
You mean like a textdraw that is runned by a timer ?
02.08.2011, 22:01
No, were it automaticly advertises messages, like every 5 mins.
02.08.2011, 22:04
but at the bottom of the screen, like the pic i included.
02.08.2011, 22:08
pawn Код:
#include <a_samp>
new MessageTimer;
new Messages[][] =
{
{"Message Here"},
{"Message Here"},
{"Message Here"},
{"Message Here"},
{"Message Here"},
{"Message Here"}
};
forward SendMessagesToAll();
public SendMessagesToAll()
{
GameTextForAll(Messages[random(sizeof(Messages))], 4000, 0);
return 1;
}
//OnFilterScriptInit
public OnFilterScriptInit()
{
MessageTimer = SetTimer("SendMessagesToAll",60000, 1);
return 1;
}
//OnFilterScriptExit
public OnFilterScriptExit()
{
KillTimer(MessageTimer);
return 1;
}
**Edit, I just seen the picture, you might not want this.
02.08.2011, 22:09
And after he advertised that message it dissapeared ?
02.08.2011, 22:10
Nope, i'm not intrested in that sorry, im wanting it like the pic. ** And you Berlovan
02.08.2011, 22:12
Then you want textdraw's ... ran by timer's. As stated in the first response.
02.08.2011, 22:14
Yes, textdraw's that announce messages every 5 min, ran by timers. :/ Cmon.. can someone help
02.08.2011, 22:16
pawn Код:
// The top of the script.
new RandomMessages[][] =
{
"Have you seen a hacker? /report [ID] [Reason]",
"Only Noobs Rule break! Are you a noob?",
"Did you know we have forums? Register today!",
"You are playing on MY OWN SERVER.!"
};
new Text:TextRandom; // Same.
forward RandomMessage(); // Up there tho.
SetTimer("RandomMessage",3000,1); // Under OnGameModeInit
// Anywhere.
public RandomMessage()
{
TextDrawSetString(TextRandom, RandomMessages[random(sizeof(RandomMessages))]);
return 1;
}
02.08.2011, 22:25
It never worked.
02.08.2011, 22:28
Yeah sorry .. This also goes under OnGameModeInit.
pawn Код:
TextRandom = TextDrawCreate(150.000000, 1.000000,"Sum text.");
TextDrawAlignment(TextRandom,0);
TextDrawBackgroundColor(TextRandom,0x000000ff);
TextDrawFont(TextRandom,2);
TextDrawLetterSize(TextRandom,0.199999,0.899999);
TextDrawColor(TextRandom,0xffffffff);
TextDrawSetOutline(TextRandom,1);
TextDrawSetProportional(TextRandom,1);
TextDrawSetShadow(TextRandom,1);
02.08.2011, 22:35
Lol... still not working
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)