/report command help! - 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: /report command help! (
/showthread.php?tid=583053)
/report command help! -
ChristolisTV - 25.07.2015
Hello again!
I need a /report command with zcmd for my admin filterscript. Can you help me please?
Re: /report command help! -
xVIP3Rx - 25.07.2015
Depends on what do you want it to do and to say on each situation, Script it or use a filterscript like
this
Re: /report command help! -
ChristolisTV - 25.07.2015
I don't want to save it on a log just tell it on the chat only in level 1+.
Re: /report command help! -
xVIP3Rx - 25.07.2015
Do you use zcmd or the default "OnPlayerCommandText" ?
Re: /report command help! -
ChristolisTV - 25.07.2015
Anyone?
Re: /report command help! -
ChristolisTV - 25.07.2015
I use zcmd.
Re: /report command help! -
xVIP3Rx - 25.07.2015
pawn Код:
CMD:report(playerid,params[])
{
new id, reason[128];
if(sscanf(params, "us[128]", id, reason)) return SendClientMessage(playerid,-1,"use /report id reason");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,-1,"player is not connected");
new string[128], name[2][MAX_PLAYER_NAME];
GetPlayerName(playerid, name[0], MAX_PLAYER_NAME);
GetPlayerName(id, name[1], MAX_PLAYER_NAME);
format(string,sizeof(string),"%s(%d) has reported %s(%d) reason: %s", name[0], playerid, name[1], id, reason);
SendClientMessageToAll(-1,"Reported");
return 1;
}
Please, learn for it
Don't just copy paste and yay
Re: /report command help! -
ChristolisTV - 25.07.2015
OK :P