[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.000000430.000000"WWW.GTA-MP.RO");
    
TextDrawBackgroundColor(Textdraw0255);
    
TextDrawFont(Textdraw01);
    
TextDrawLetterSize(Textdraw00.3900002.000000);
    
TextDrawColor(Textdraw016711935);
    
TextDrawSetOutline(Textdraw01);
    
TextDrawSetProportional(Textdraw01);
    
Textdraw1 TextDrawCreate(595.000000434.000000"V1.0.0");
    
TextDrawBackgroundColor(Textdraw1255);
    
TextDrawFont(Textdraw12);
    
TextDrawLetterSize(Textdraw10.3099991.199999);
    
TextDrawColor(Textdraw1, -1);
    
TextDrawSetOutline(Textdraw11);
    
TextDrawSetProportional(Textdraw11); 
In function OnGameModeInt
Now, we show that the TextDraw when they spawn player.
We go to OnPlayerSpawn and put:


PHP код:
[B]
    for(new 
iMAX_PLAYERS++)
    {
        if(
IsPlayerConnected(i))
        {
            
TextDrawShowForPlayer(iTextdraw0);
            
TextDrawShowForPlayer(iTextdraw1);
        }
    }
[/
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)