11.04.2013, 18:31
Okay, Let me do my best to explain what I want this to do. I have a command (/updatelist) and I want to make it so it will be in a format like 'Launched - Whatever U have entered' this one would show if a GMX has been done, But if not GMX yet format like this 'Not Launched - Whatever U have entered'
My Code
Hope I kinda made this clear..
My Code
Код:
CMD:updatelist(playerid, params[])
{
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /updatelist [text]");
if(PlayerInfo[playerid][pAdmin] < 1338) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
if(AntiAdv(playerid, params)) return 1;
if(strlen(params) > 128) return SendClientMessage(playerid, COLOR_GREY, "Maximum characters limit is 128.");
if(!aDuty[playerid]) return SendClientMessage(playerid, COLOR_GREY, "You are not on Admin Duty.");
new File: file = fopen("updates.cfg", io_append), string[128];
format(string, sizeof(string), "%s\r\n", params);
fwrite(file, string);
fclose(file);
format(string, sizeof(string), "AdmWarn: %s has posted updates, use /updates to view it.", RPN(playerid));
SendClientMessageToAll(COLOR_LIGHTRED, string);
return 1;
}



impossible