SA-MP Forums Archive
/report - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /report (/showthread.php?tid=87967)



/report - nuriel8833 - 23.07.2009

I need the command /report but:
1. the message that will dend to the player "You have benn reported %s(ID: %d) for %s
2.the message that will send to the admins "[Report Sys] The player %s(ID:%d) reported %s (ID:%d) for %s
3.I need that the player can send one reported about another player in 2 minutes.
like bla has benn reported bli,bla can send a report about bli only in 2 seconds.
and it will send a message to the player You already reported %s(ID: %d)


tanks for the helpers
sorry about the long command :P


Re: /report - Klutty - 23.07.2009

If you want to request a command, Script request thread.


Re: /report - nuriel8833 - 23.07.2009

what where?


Re: /report - nuriel8833 - 23.07.2009

second page please help me


Re: /report - Flo_White - 23.07.2009

Quote:
Originally Posted by nuriel8833
3.I need that the player can send one reported about another player in 2 minutes.
like bla has benn reported bli,bla can send a report about bli only in 2 seconds.
and it will send a message to the player You already reported %s(ID: %d)
do you want it now in 2mins or 2 secs?


Re: /report - nuriel8833 - 23.07.2009

ohh sorry 2 minutes


Re: /report - nuriel8833 - 23.07.2009

second page please help!!!!!!!!!!!!!


Re: /report - AlexandA - 23.07.2009

Try out, but its in DCMD:

Код:
dcmd_report(playerid, params[])
{
	new
		pID,
		message[64],
	  string[128],
	  ThePlayer[MAX_PLAYER_NAME],
	  TheOtherPlayer[MAX_PLAYER_NAME];
	if(sscanf(params, "ds",pID, message))
	{
		SendClientMessage(playerid, COLOR, "Usage: /report [ID] [REASON]");
		return 1;
	}
	if(!IsPlayerConnected(pID))
	{
		  format(string, sizeof(string), "No player with ID %d is connected.", pID);
		  SendClientMessage(playerid, COLOR, string);
		  return 1;
	}
	GetPlayerName(playerid,ThePlayer,sizeof(ThePlayer));
	GetPlayerName(pID, TheOtherPlayer,sizeof(TheOtherPlayer));
	format(string,sizeof(string,"You have benn reported %s(ID: %d) for %s", TheOtherPlayer, pID, message);
	SendClientMessage(playerid, COLOR, string);
	format(string,sizeof(string),"[Report Sys] The player %s(ID:%d) reported %s (ID:%d) for %s",ThePlayer,playerid,TheOtherPlayer,pID,message);
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
			if(IsPlayerAdmin(i))
			{
			  SendClientMessage(i, COLOR, string);
			}
		}
	}
	return 1;
}



Re: /report - nuriel8833 - 23.07.2009

what is that DCMD
why can you make from it a command


Re: /report - Flo_White - 23.07.2009

Код:
if(strcmp(cmd, "/report", true) == 0)
	{
	  new tmp[128],reason[128];
		tmp = strtok(cmdtext, idx);
		if(!tmp[0]) return SendClientMessage(playerid,COLOR_RED,"USAGE: /report [playerid] [reason]");
		new player = strval(tmp);
		reason = extrastrtok(cmdtext, idx);
		new string[128];
		new playername[MAX_PLAYER_NAME],reportedname[MAX_PLAYER_NAME];
		GetPlayerName(player,reportedname,sizeof(reportedname)); GetPlayerName(playerid,playername,sizeof(playername));
		format(string,sizeof(string),"[Report Sys] You reported %s for %s",reportedname,reason);
		SendClientMessage(playerid,COLOR_YELLOW,string);
		format(string,sizeof(string),"[Report Sys] The player %s was reported by %s for %s",reportedname,playername,reason);
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
			// Here your Admindefinition
			SendClientMessage(i,COLOR_YELLOW,string);
		}
		return 1;
	}