12.04.2014, 03:57
Why in this global motd needs to restart my server before it going to show?
if there a motd saying like "Welcome back"
when you /motd Test i need to restart the server before the "Welcome back" changed to "test" why? whats the problem? I want if /motd test change the motd fast no need to restart the server.
if there a motd saying like "Welcome back"
when you /motd Test i need to restart the server before the "Welcome back" changed to "test" why? whats the problem? I want if /motd test change the motd fast no need to restart the server.
Код:
CMD:motd(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 1337) { if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /motd [message]"); new string[128]; format(string, sizeof(string), "AdmCmd: %s has changed the global motd to: %s.", GetPlayerNameEx(playerid), params); ABroadCast( COLOR_LIGHTRED, string, 4); format(GlobalMOTD, sizeof(GlobalMOTD), "%s", params); SendClientMessageEx(playerid, COLOR_WHITE, "You've adjusted the Global MOTD."); SaveMOTDs(); } return 1; }
Код:
new motdstring[100]; format(motdstring,100,"NEWS: %s", GlobalMOTD); MainMenuTxtdraw[8] = TextDrawCreate(320.000000, 331.520019, motdstring); TextDrawLetterSize(MainMenuTxtdraw[8], 0.476000, 3.201597); TextDrawAlignment(MainMenuTxtdraw[8], 2); TextDrawColor(MainMenuTxtdraw[8], -65281); TextDrawSetShadow(MainMenuTxtdraw[8], 0); TextDrawSetOutline(MainMenuTxtdraw[8], 1); TextDrawBackgroundColor(MainMenuTxtdraw[8], 51); TextDrawFont(MainMenuTxtdraw[8], 1); TextDrawSetProportional(MainMenuTxtdraw[8], 1); textdrawscount++;