SA-MP Forums Archive
[HELP] with /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: [HELP] with /report (/showthread.php?tid=156587)



[HELP] with /report - GaBBaFreaK[oC] - 23.06.2010

Hello
i need help with my report when i make /report an send the report the report are sendet to all amdins but i want to have a /accept report cmd that soneone admin can accept the report

Sry for my ban englisch.. xD




Re: [HELP] with /report - iZN - 23.06.2010

What's the variable are you using with Admin Script?


Re: [HELP] with /report - GaBBaFreaK[oC] - 23.06.2010

оf(PlayerInfo[playerid][pAdmin] == LVL)


Re: [HELP] with /report - GaBBaFreaK[oC] - 23.06.2010

HELPPPP!!!!


Re: [HELP] with /report - CAR - 23.06.2010

Do you already got a /report command
What is your admin level code...


Re: [HELP] with /report - GaBBaFreaK[oC] - 23.06.2010

the report menu

Код:
	if(response)
	{
		if(dialogid == REPORTMENU)
		{

				    new str[160];
		  GetPlayerName(playerid, str, MAX_PLAYER_NAME);
      for (new i = 0; i < MAX_PLAYER_NAME; i++)
      if (str[i] == '_')
      str[i] = ' ';
			format(str, sizeof(str), "Report von %s : %s", str, (inputtext));
			ABroadCast(COLOR_REDA,str,1);
			SendClientMessage(playerid, COLOR_YELLOW, "Dein Report wьrde an die Admins gesendet!");

		}
	}
the cmd
Код:
		if(strcmp(cmd, "/report", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
      //ShowPlayerDialog(playerid,REPORTMENU,DIALOG_STYLE_LIST,"MyDialog","1. Line\r\n2. Line\r\n3. Line","Option 1", "Option 2");
      ShowPlayerDialog(playerid,REPORTMENU,DIALOG_STYLE_INPUT,"Report","Was mцchtest du Reporten?","Report","Abbrechen");
	  }
	  return 1;
	}