new newtext[41], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
format(newtext, sizeof(newtext), "~r~%s ~w~has left the server", name);
TextDrawSetString(TextdrawJoin1, newtext);
TextDrawShowForAll(TextdrawJoin1);
SetTimer("TextdrawDisconnectRemove", 9000, true);
new newtext[41], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
format(newtext, sizeof(newtext), "~g~%s ~w~has joined the server.", name);
TextDrawSetString(TextdrawJoin, newtext);
TextDrawShowForAll(TextdrawJoin);
SetTimer("TextdrawJoinRemove", 9000, true);
forward TextdrawJoinRemove();
public TextdrawJoinRemove()
{
TextDrawHideForAll(TextdrawJoin);
}
forward TextdrawDisconnectRemove();
public TextdrawDisconnectRemove()
{
TextDrawHideForAll(TextdrawJoin1);
}
TextdrawJoin = TextDrawCreate(35.000000,122.000000," ");
TextdrawJoin1 = TextDrawCreate(35.000000,134.000000," ");
TextDrawAlignment(TextdrawJoin,0);
TextDrawAlignment(TextdrawJoin1,0);
TextDrawBackgroundColor(TextdrawJoin,0x000000ff);
TextDrawBackgroundColor(TextdrawJoin1,0x000000ff);
TextDrawFont(TextdrawJoin,1);
TextDrawLetterSize(TextdrawJoin,0.299999,1.200000);
TextDrawFont(TextdrawJoin1,1);
TextDrawLetterSize(TextdrawJoin1,0.299999,1.100000);
TextDrawColor(TextdrawJoin,0xffffffff);
TextDrawColor(TextdrawJoin1,0xffffffff);
TextDrawSetOutline(TextdrawJoin,1);
TextDrawSetOutline(TextdrawJoin1,1);
TextDrawSetProportional(TextdrawJoin,1);
TextDrawSetProportional(TextdrawJoin1,1);
TextDrawSetShadow(TextdrawJoin,1);
TextDrawSetShadow(TextdrawJoin1,1);
Originally Posted by HydraX
Help, This is important for the script.
|
SetTimer("TextdrawJoinRemove", 9000, false);
Originally Posted by MadeMan
Turn off the repeating, set true to false
pawn Код:
|