11.04.2015, 12:35
Hey i have problem in my Textdraw it disappears when player leaves the server and appears again in few seconds idk whats wrong with that, here is the code,
UNDER ONGAMEMODEINIT ___ IF numbers used needed tell me
UNDER ONPLAYERDISCONNECT
TextDrawHideForPlayer(playerid, ServerMSG);
///////////////////
UNDER ON PLAYER SPAWN
Код:
new Text:ServerMSG; new RMessages[][] = { "~g~Use /help and /cmds to know more about the server.", "~g~Seen any hacker? Use /report [ID][REASON].", "~g~Need any help? Feel free to ask any admin online." };
Код:
SetTimer("MSG", 8000, true); ServerMSG = TextDrawCreate(Removed, Removed, "Server MSG"); TextDrawColor(ServerMSG, Light_Blue); TextDrawFont(ServerMSG, Removed); TextDrawLetterSize(ServerMSG, Removed, Removed); TextDrawSetProportional(ServerMSG, Removed); TextDrawSetOutline(ServerMSG, Removed); TextDrawSetShadow(ServerMSG, Removed); TextDrawBackgroundColor(ServerMSG, White); TextDrawUseBox(ServerMSG, Removed); TextDrawBoxColor(ServerMSG, Gray); TextDrawTextSize(ServerMSG, Removed, Removed);
TextDrawHideForPlayer(playerid, ServerMSG);
///////////////////
Код:
public MSG() { TextDrawSetString(ServerMSG, RMessages[random(sizeof(RMessages))]); return 1; }
Код:
TextDrawSetString(ServerMSG, RMessages[random(sizeof(RMessages))]); TextDrawShowForPlayer(playerid, ServerMSG);