Quote:
Originally Posted by xXitsgodzillaXx
pawn Код:
CMD:News(playerid, params[]) { new file[128]; format(file, sizeof(file), "News.ini"); if(IsPlayerAdmin(playerid)){ new string[256]; strmid(string, params, 6, 256); dini_Set(file, "News", string); new thing[256]; thing = dini_Get(file, "News"); format(string, sizeof(string), "Server News: %s", thing); SendClientMessage(playerid, 0x006400FF, string);
} else { SendClientMessage(playerid, 0x006400FF, "You have to be logged into RCON in order to change the News!"); } return 1; }
let me know if you get any errors i didnt get any but yeah.
|
It did not show any error/warning but it did not work in game.