server updates help
#1

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

Код:
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;
}
Hope I kinda made this clear..
Reply


Messages In This Thread
server updates help - by MichaelWharton101 - 11.04.2013, 18:31
Re: server updates help - by MichaelWharton101 - 11.04.2013, 22:35
Re: server updates help - by MichaelWharton101 - 12.04.2013, 10:52
Re: server updates help - by [KHK]Khalid - 12.04.2013, 10:55
Re: server updates help - by MichaelWharton101 - 12.04.2013, 23:21
Re: server updates help - by MichaelWharton101 - 16.04.2013, 00:37
Re : Re: server updates help - by DaTa[X] - 16.04.2013, 00:55
Re: server updates help - by MichaelWharton101 - 16.04.2013, 15:24

Forum Jump:


Users browsing this thread: 1 Guest(s)