01.12.2011, 21:07
Howdy, So im working on a report system so that one they do /report [Text]
It send's the message to Admins Only.
The only problem is that i do not know how i would make it sent to Admins Only.
Here is the /report Command so Far.
It send's the message to Admins Only.
The only problem is that i do not know how i would make it sent to Admins Only.
Here is the /report Command so Far.
pawn Код:
CMD:report(playerid,params[])
{
new text,pName[MAX_PLAYER_NAME],string[128];
if(sscanf(params, "s[125]", text)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /report [Text]");
else
{
PlayerInfo[playerid][pReportSent] = 1;
SendClientMessage(playerid,COLOR_YELLOW,"Your Report Has Been Sent Succesfully...");
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string,128,"%s:[%d]:%s",pName,playerid,text);
SendClientMessage(playerid,COLOR_ORANGE,string);
}
return 1;
}