22.02.2010, 12:25
Get rid of the timer, that method of showing a textdraw is not needed for this situation.
Create the textdraw via OnGameModeInit:
Then show the textdraw to the player that connects to the server.
Then hide the textdraw to the player that disconnects the server.
Create the textdraw via OnGameModeInit:
Код:
Site = TextDrawCreate(120.000,425.000,"http://blablabla.com"); TextDrawColor(Site,COLOR_WHITE); TextDrawLetterSize(Site, 0.5, 1.5); TextDrawFont(Site, 3); TextDrawBackgroundColor(Site, 0x000000AA); TextDrawSetOutline(Site, 2);
Код:
public OnPlayerConnect(playerid) { TextDrawShowForPlayer(playerid, Site); }
Код:
public OnPlayerDisconnect(playerid, reason) { TextDrawHideForPlayer(playerid, Site); }