Report
#1

How to get the latest 5 reports?

PHP код:
CMD:report(playerid,params[])
{
    new 
id,reason[50],string[300];
    if(
sscanf(params,"us[178]",idreason)) return SendClientMessage(playerid, -1,"USAGE: /report [playerid] [reason]");
    
format(string,sizeof(string),"[Notice]: Player %s (Id: %d) reported By %s(Id: %d) For: %s"GetName(id), idGetName(playerid), playeridreason);
    
lastreport string;
    for(new 
0MAX_PLAYERSi++)
    {
        if(
pData[i][Admin] >= || IsPlayerAdmin(i))
        {
            
SendClientMessage(i0xFF0000FFstring);
        }
    }
    
format(string,sizeof(string),"Player %s (Id: %d) reported By %s(Id: %d) For:  %s"GetName(id), idGetName(playerid), playeridreason);
    
IRC_Say(groupID,"%"IRC_CHANNELstring);
    return 
1;
}
CMD:reports(playeridparams[])
{
    if(
pData[playerid][Admin] >= 3)
    {
    
SendClientMessage(playeridCOLOR_YELLOW"Last report was:");
    
SendClientMessage(playerid0xFF0000FFlastreport);
    } else return 
SendClientMessage(playerid,COLOR_YELLOW,"Only +level 3 can use this command");
    return 
1;

Reply


Messages In This Thread
Report - by Loinal - 09.02.2017, 22:10
Re: Report - by Type-R - 10.02.2017, 01:50
Re: Report - by Loinal - 10.02.2017, 08:07
Re: Report - by Loinal - 10.02.2017, 21:55
Re: Report - by BiosMarcel - 10.02.2017, 21:56
Re: Report - by Yousha - 13.05.2017, 05:18

Forum Jump:


Users browsing this thread: 3 Guest(s)