08.03.2014, 19:47
Код:
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; }