PDA

View Full Version : I need script /acceptreport


ALIN^^
01/12/2012, 12:27 PM
Heloo. I need script /acceptreport for admins.

I use: 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;
}

doreto
01/12/2012, 12:28 PM
http://forum.sa-mp.com/showthread.php?t=395711
http://forum.sa-mp.com/showthread.php?t=187229

ALIN^^
01/12/2012, 12:33 PM
ok, sorry. I post there. Now can i help me? http://forum.sa-mp.com/showthread.php?t=187229&page=310

doreto
01/12/2012, 12:34 PM
Do not spamm in this topic while you are asking help there !!! (this place was wrong )