[FilterScript] TextDraw all mods
#1

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

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

Simple but good
Reply
#4

Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)