/Report command
#1

hey guys can any1 tell me how to make the /report command
Reply
#2

pawn Код:
YCMD:report(playerid, o[], help)
{
    if(help) return SendClientMessage(playerid, -1,"Report command details");
    new name[MAX_PLAYER_NAME], str[128];
    if(isnull(o)) return SendClientMessage(playerid, -1,"Syntax Error: /report [Description]");
    GetPlayerName(playerid, name, sizeof(name));
    format(str,sizeof(str),"|- %s has made an report. Description: %s -|", name, o);
    SendClientMessageToAll(-1, str);
    return true;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)