20.05.2011, 21:10
(
Последний раз редактировалось Alex_Obando; 21.05.2011 в 17:30.
)
Solved.
Can you make me a report system then?
I just need the reporter, the reported, and the reason. Edit* You dont need to add the strock due I already have my sendclientmessagetoadmins strock. |
CMD:report(playerid, params[])
{
new aName[MAX_PLAYER_NAME], str[128], reason, iD;
if (sscanf(params, "dz", iD, reason)) return SCM(playerid, RED, "* Usage : /report [PlayerID/Name] [Reason]");
if (iD == INVALID_PLAYER_ID) return SendClientMessage(playerid, RED, "ERROR : Invaild PlayerID");
if (playerid == iD) return SendClientMessage(playerid, RED, "ERROR : You cannot report yourself");
GetPlayerName(iD, aName, sizeof(aName));
format(str, sizeof(str), "%s(%d) has reported %s(%d) for : %s", pName(playerid), playerid, aName, iD, reason);
SendAdminMessage(COLOR_YELLOW, str); //change this to yours!
return true;
}