/reports
#3

Код:
CMD:report(playerid, params[])
{
	new sstring[256], giveplayerid, reason[128], playername[25], giveplayer[25], string[128];
	if (sscanf(params, "us[128]", giveplayerid, reason)) return SendClientMessage(playerid, COLOR_WHITE, "Usage: /report [playerid] [reason]");
	if (!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, COLOR_RED, "Error: Inactive player id!");
	GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
	GetPlayerName(giveplayerid, giveplayer, MAX_PLAYER_NAME);
	format(sstring, sizeof(sstring), "%s reported player %s(%d) for %s.\r\n", playername, giveplayer, giveplayerid, reason);
	SendMessageToAdmins(COLOR_ORANGE, sstring);
	format(string, 128, "Your report regarding %s(%d) has been sent to server admins.", giveplayer, giveplayerid);
	SendClientMessage(playerid, COLOR_YELLOW, string);
	return 1;
}
Reply


Messages In This Thread
/reports - by KamalBa - 22.06.2015, 18:16
Re: /reports - by Prokill911 - 22.06.2015, 18:18
Re: /reports - by KamalBa - 22.06.2015, 18:21
Re: /reports - by KamalBa - 22.06.2015, 18:39
Re: /reports - by rappy93 - 22.06.2015, 18:40
Re: /reports - by KamalBa - 22.06.2015, 18:42
Re: /reports - by Pottus - 22.06.2015, 18:45
Re: /reports - by KamalBa - 22.06.2015, 18:50
Re: /reports - by Prokill911 - 22.06.2015, 20:37
Re : /reports - by KillerDVX - 22.06.2015, 20:43

Forum Jump:


Users browsing this thread: 3 Guest(s)