I need script /acceptreport - 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)
+--- Thread: I need script /acceptreport (
/showthread.php?tid=396586)
I need script /acceptreport -
ALIN^^ - 01.12.2012
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;
}
Re: I need script /acceptreport -
doreto - 01.12.2012
https://sampforum.blast.hk/showthread.php?tid=395711
https://sampforum.blast.hk/showthread.php?tid=187229
Re: I need script /acceptreport -
ALIN^^ - 01.12.2012
ok, sorry. I post there. Now can i help me?
https://sampforum.blast.hk/showthread.php?tid=187229&page=310
Re: I need script /acceptreport -
doreto - 01.12.2012
Do not spamm in this topic while you are asking help there !!! (this place was wrong )