/report command help!
#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


Messages In This Thread
/report command help! - by ChristolisTV - 25.07.2015, 13:30
Re: /report command help! - by xVIP3Rx - 25.07.2015, 13:33
Re: /report command help! - by ChristolisTV - 25.07.2015, 13:43
Re: /report command help! - by xVIP3Rx - 25.07.2015, 13:48
Re: /report command help! - by ChristolisTV - 25.07.2015, 13:50
Re: /report command help! - by ChristolisTV - 25.07.2015, 13:52
Re: /report command help! - by xVIP3Rx - 25.07.2015, 13:56
Re: /report command help! - by ChristolisTV - 25.07.2015, 13:57

Forum Jump:


Users browsing this thread: 1 Guest(s)