16.10.2013, 02:24
Something like this?
Or something more major?
Код:
CMD:suggest(playerid, params[]) { if(isnull(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /suggest [text]"); if(strlen(params) > 128) return SendClientMessage(playerid, COLOR_GREY, "Maximum characters limit is 128."); new File: file = fopen("bugs.cfg", io_append), rpnstring[128]; format(rpnstring, sizeof(rpnstring), "[%s] %s\r\n", RPN[playerid], params); fwrite(file, rpnstring); fclose(file); SendClientMessage(playerid, COLOR_LIGHTBLUE, "Your suggestions has been saved, Developers will check it once possible."); if(PlayerInfo[playerid][pDev] >= 1) { SendClientMessage(playerid, COLOR_YELLOW, "%s has sent a suggestion, Please inform the developers"); } return 1; }