[FilterScript] TextDraw all mods - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] TextDraw all mods (
/showthread.php?tid=501579)
TextDraw all mods -
Edu4rd - 19.03.2014
Good morning, today, not having what I thought to do unto you simply do TextDraw. I thought about those who do not know how to make a TextDraw 0. Finally, below you draw a picture of the text
Looks like it is positioned in the bottom right. Next to it you can put the server version (V1.0.0) or what version you have.
PHP код:
new Text:Textdraw0;
new Text:Textdraw1;
They put them by following define include sites or sites
And this:
PHP код:
Textdraw0 = TextDrawCreate(474.000000, 430.000000, "WWW.GTA-MP.RO");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.390000, 2.000000);
TextDrawColor(Textdraw0, 16711935);
TextDrawSetOutline(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);
Textdraw1 = TextDrawCreate(595.000000, 434.000000, "V1.0.0");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 2);
TextDrawLetterSize(Textdraw1, 0.309999, 1.199999);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 1);
TextDrawSetProportional(Textdraw1, 1);
In function OnGameModeInt
Now, we show that the TextDraw when they spawn player.
We go to OnPlayerSpawn and put:
PHP код:
[B]
for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, Textdraw0);
TextDrawShowForPlayer(i, Textdraw1);
}
}
[/B]
So, I hope you like it, is very simple ...
Re: TextDraw all mods -
iZN - 19.03.2014
You don't need to loop if you're already putting in OnPlayerSpawn callback. Just simply.
pawn Код:
public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
// .... rest of the code
return true;
}
Re: TextDraw all mods -
Mckarlis - 19.03.2014
Simple but good
Re: TextDraw all mods -
Edu4rd - 19.03.2014
Thanks.