Messages :D - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Messages :D (
/showthread.php?tid=185162)
Messages :D -
dillo1000 - 23.10.2010
Ok I need message at bottom of screen saying "Visit Website rpfclan.tk" and then after 10 seconds it goes onto "Put rpfclan.no-ip.org:7777 In Your Favs"
Thanks if anyone can help
Re: Messages :D -
Jeffry - 23.10.2010
https://sampwiki.blast.hk/wiki/TextDrawCreate
https://sampwiki.blast.hk/wiki/TextDrawShowForAll
https://sampwiki.blast.hk/wiki/TextDrawSetString
Use a Timer and Change the Text with TextDrawSetString every 10 seconds.
Re: Messages :D -
dillo1000 - 23.10.2010
Thanks
But what I mean is not in chat box like
Below map
The what it says
Re: Messages :D -
Badger(new) - 23.10.2010
You can put a Textdraw anywhere you like.
Here's a TextDraw creator that I find really useful as you use it in-game:
http://forum.sa-mp.com/showthread.ph...xt+draw+editor
Re: Messages :D -
Jeffry - 24.10.2010
At top of your cript:
pawn Код:
new Text:MyChangingText;
new MessageNum;
OnGameModeInit:
pawn Код:
MyChangingText= TextDrawCreate(3.4, 430.0, "Visit Website rpfclan.tk");
TextDrawTextSize(MyChangingText,629.000000,2.000000);
TextDrawFont(MyChangingText,2);
TextDrawLetterSize(MyChangingText,0.5,1.4);
TextDrawColor(MyChangingText,0x00FF00FF);
SetTimer("ChangeMsg",10000,true); // Textdraw will change every 10 seconds.
OnPlayerConnect:
pawn Код:
TextDrawShowForPlayer(playerid, MyChangingText);
Put this at the bottom of your script:
pawn Код:
forward ChangeMsg();
public ChangeMsg()
{
switch(MessageNum)
{
case 0: TextDrawSetString(abc, "Visit Website rpfclan.tk"), MessageNum++;
case 1: TextDrawSetString(abc, "Put rpfclan.no-ip.org:7777"), MessageNum++;
case 2: TextDrawSetString(abc, "Whatever here...."), MessageNum=0; // =0; Must be at the LAST case.
//You can add more cases here, but don't forget to change all cases above the last to MessageNum++; and the last to MessageNum=0;
}
return 1;
}
I hope this is what you ment, and come along with it.
If you have any questions, feel free to ask them.
Greetings,
Jeffry