19.01.2013, 23:42
pawn Код:
CMD:report(playerid, params[]) // Commands ***********
{
new name[MAX_PLAYER_NAME],name2[MAX_PLAYER_NAME],string[128],reason[128],id;
if(sscanf(params,"ds[64]",id,reason)) return SendClientMessage(playerid,COL_WHITE,"USAGE: /report [ID] [Reason]");
GetPlayerName(playerid,name,sizeof(name));
GetPlayerName(id,name2,sizeof(name2));
if(PlayerInfo[id][pAdmin]>0)
{
format(string,128,"%s reported %s for %s",name,name2,reason);
SendClientMessage(id,COL_WHITE,string);
}
return 1;
}