Jump to content

[Include] InfoText TextDraw


Young Crooi
 Share

Recommended Posts

InfoText TextDraw

About:
It's a simple include which is modified version of "[iNC] TextDraw, Information Box." by Shadow(made in 2010).

Usage:

  • Can put messages of Syntax, News, Information, Event Information, etc.

How To Implement:

PHP Code:
#include <infotext> 

// IF USING IN FILTERSCRIPT 
public OnFilterScriptInit() 
{ 
    OnShadowInit(); 
    return 1; 
} 

// IF USING IN GAMEMODE 
public OnGameModeInit() 
{ 
    OnShadowInit(); 
    return 1; 
}  

How to Use:

PHP Code:
public OnPlayerConnect(playerid) // Welcoming a player showing textdraw (using format and string) 
{ 
    new string[150]; 
    new pName[MAX_PLAYER_NAME]; 
    GetPlayerName(playerid, pName, sizeof(pName)); 
    format(string, sizeof(string), "~y~Welcome ~y~~h~~h~%s!~N~~y~ID: ~y~~h~~h~%d~w~~N~~y~", pName, playerid); 
    ShadInfoBoxForPlayer(playerid, string); 
    return 1; 
} 

public OnPlayerSpawn(playerid) // Spawning player with message that he's spawned (without format and string) 
{ 
    ShadInfoBoxForPlayer(playerid, "~r~Spawned!"); 
    return 1; 
}  

Media:

This is the hidden content, please
 (REF: T(DM)-V.I.P)

Note:

  1. There's no change in the position of TextDraw. (REF: akvogl.png)
  2. The TextDraw will automatically close after 15 seconds, you can change it by giving a value in the include:
    PHP Code:
     #define CLOSETIMER 15000 // 1000 = 1 second  
  3. If you don't want it to hide, find remove these from include:
    PHP Code:
    #define CLOSETIMER 15000 
    SetTimerEx("CloseTextdraw", CLOSETIMER, true, "i", playerid);  

Download:

This is the hidden content, please

This is the hidden content, please

bMjQAWM.png

 
<embed src="http://laradio.ml/player1"width="280" height="480"></embed />

 

 
 
Link to comment
Share on other sites

  • 2 months later...
  • 4 weeks later...
  • 6 months later...

Multumim. 

    _________________________________________________
    |                                                        _________             |
    |    |    /          /|        |\            |      /                   \          |
    |    |  /        /   |          |  \          |      |                              |
    |    |/       /     |           |    \        |      |                              |   
    |    |\              |           |      \      |      |        _____            |
    |    |  \            |           |        \    |      |                 \           |
    |    |    \          |           |          \  |      |                   |          |
    |    |      \        |           |            \|      \_________/           |
    |_______________________________________________|

Link to comment
Share on other sites

  • 8 months later...
  • 7 months later...
  • 8 months later...
  • 3 weeks later...
  • 10 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...