/report command problem
#2

Try this one
Код:
COMMAND:report(playerid, params[])
{

        new
			pplayerid,string[1000],reason[100];
        if(sscanf(params, "ds[100]", pplayerid,reason)) return SCM(playerid, COLOR_RED, ""COL_CYAN"Info: "COL_WHITE"/Report (Playerid) (Reason)");
        if(pplayerid == IPI) return SCM(playerid, -1, ""COL_RED"Error: "COL_WHITE"Wrong Playerid.");
        format(string,sizeof(string),""COL_BLUE"(REPORT): "COL_WHITE" \"%s (%d)\" has reported against \"%s (%d)\". (Reason: %s)",GetName(playerid),playerid,GetName(pplayerid),pplayerid,reason);
        SendAdminMessage(string);
        SCM(playerid, -1, ""COL_GREEN"Report successfully sended, please wait for the admins to take action.");
        return 1;
}
Reply


Messages In This Thread
/report command problem - by Youssef214 - 02.07.2014, 14:05
Re: /report command problem - by SHE790 - 02.07.2014, 14:08
Re: /report command problem - by Youssef214 - 02.07.2014, 16:19
Re: /report command problem - by greentarch - 02.07.2014, 16:41
AW: /report command problem - by Macronix - 02.07.2014, 17:09

Forum Jump:


Users browsing this thread: