Command /report change the skin
#1

When somebody use /report and if is too long his skin will be changed (only if the message is long)
Код:
CMD:report(playerid, params[])
{
	new string2[256],message[256],admins=0;
	if(sscanf(params, "s[256]", message)) return SCM(playerid, COLOR_GREY, SYNTAX_MESSAGE"/report [text]");
	{
	    if( strlen( message ) > 128 )
	        return SCM( playerid, -1, "Nu poti trimite un report mai lung de 128 de caractere." );
		if(PlayerData[playerid][pRMuted] <= 0)
		{
			if(PlayerData[playerid][pDr] <= 0)
			{
				foreach(Player, i)
		     	{
					if(PlayerData[i][pAdmin] >= 1)
					{
						admins++;
					}
				}
				if(admins == 0) return SendClientMessage(playerid, COLOR_FRED, "{CCCCFF}[Server]: {FFFFFF}Nu sunt admini online.");
				format(string2, sizeof(string2), "{CCCCFF}[Report]: {FFFFFF}`%s` reportul fost trimis adminilor.", message);
				SendClientMessage(playerid, 0xFFFFFFFF, string2);
				format(string2, sizeof(string2), ""HP44"[Report] %s [%d]: "HP22"%s.",PlayerData[playerid][pNormalName],playerid, message);
				submitToHelpersAndAdmins(string2,COLOR_FRED);
				PlayerData[playerid][pDr] = 60;
				PlayerData[playerid][pReported] = 1;
				format(PlayerData[playerid][pReportMessage], 256,"%s", string2);
			}
			else
			{
				SCM(playerid,-1,"{CCCCFF}[Server]: {FFFFFF}Poti da un report o data la un minut.");
			}
		}
		else SCM(playerid,-1,"{CCCCFF}[Server]: {FFFFFF}ai restrictie la comanda /report.");
	}
	return 1;
}
Reply


Messages In This Thread
Command /report change the skin - by TheWay - 23.05.2016, 08:45
Re: Command /report change the skin - by justjamie - 23.05.2016, 09:20
Re: Command /report change the skin - by TheWay - 23.05.2016, 09:39
Re: Command /report change the skin - by MBilal - 23.05.2016, 09:57
Re: Command /report change the skin - by TheWay - 23.05.2016, 10:08
Re: Command /report change the skin - by MBilal - 23.05.2016, 10:35
Re: Command /report change the skin - by GTLS - 23.05.2016, 11:24
Re: Command /report change the skin - by Stinged - 23.05.2016, 11:51

Forum Jump:


Users browsing this thread: 1 Guest(s)