25.07.2015, 13:30
Hello again!
I need a /report command with zcmd for my admin filterscript. Can you help me please?
I need a /report command with zcmd for my admin filterscript. Can you help me please?
CMD:report(playerid,params[])
{
new id, reason[128];
if(sscanf(params, "us[128]", id, reason)) return SendClientMessage(playerid,-1,"use /report id reason");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,-1,"player is not connected");
new string[128], name[2][MAX_PLAYER_NAME];
GetPlayerName(playerid, name[0], MAX_PLAYER_NAME);
GetPlayerName(id, name[1], MAX_PLAYER_NAME);
format(string,sizeof(string),"%s(%d) has reported %s(%d) reason: %s", name[0], playerid, name[1], id, reason);
SendClientMessageToAll(-1,"Reported");
return 1;
}