I need script /acceptreport
#1

Heloo. I need script /acceptreport for admins.

I use:
Код HTML:
	if(strcmp(cmd, "/report", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        GetPlayerName(playerid, sendername, sizeof(sendername));
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			new result[64];
			while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
			{
				result[idx - offset] = cmdtext[idx];
				idx++;
			}
			result[idx - offset] = EOS;
			if(!strlen(result))
			{
				SendClientMessage(playerid, COLOR_GREY, "USAGE: /report [text]");
				return 1;
			}
			format(string, sizeof(string), "{F3FF02}Report de la {FFFFFF}[ID: %d] {F3FF02}%s: {FFFFFF}%s", playerid, sendername, (result));
			ABroadCast(COLOR_YELLOW,string,1);
			SendClientMessage(playerid, COLOR_YELLOW, "Tocmai ce ai trimis un report adminilor online de pe server.");
	    }
	    return 1;
	}
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=395711
https://sampforum.blast.hk/showthread.php?tid=187229
Reply
#3

ok, sorry. I post there. Now can i help me? https://sampforum.blast.hk/showthread.php?tid=187229&page=310
Reply
#4

Do not spamm in this topic while you are asking help there !!! (this place was wrong )
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)