/report command help!
#1

Hello again!

I need a /report command with zcmd for my admin filterscript. Can you help me please?
Reply
#2

Depends on what do you want it to do and to say on each situation, Script it or use a filterscript like this
Reply
#3

I don't want to save it on a log just tell it on the chat only in level 1+.
Reply
#4

Do you use zcmd or the default "OnPlayerCommandText" ?
Reply
#5

Anyone?
Reply
#6

I use zcmd.
Reply
#7

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
Reply
#8

OK :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)