30.08.2010, 17:40
Do someone know how to create Textdraw join messages? It will be really useful since it doesn't flood the chat. Like in COD5.
new Text:Textdraw0;//On top
new PlayerName[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "~R~%s~w~(ID: %d has joined the server.", PlayerName, playerid);
Textdraw0 = TextDrawCreate(19, 145, string); //Under OnPlayerConnect
TextDrawShowForAll(Textdraw0);
TextDrawSetOutline(Textdraw0,true);
SetTimer("HideTD",5000,true);
forward HideTD();
public HideTD()
{
TextDrawHideForAll(Textdraw0);//Somewhere in your script NOT in any functions.
}