PlayerPlaySound to admins when new report is up. and level 4 admins can read it only
#7

pawn Код:
CMD:helpme(playerid, params[])
{
    new str[128], Name1[MAX_PLAYER_NAME];
    if(sscanf(params,"s[128]", str))
    {
     SendClientMessage(playerid, red,"CORRECT USAGE: /helpme [text]");
     return 1;
    }
    GetPlayerName(playerid, Name1, sizeof(Name1));
    format(str, sizeof(str),"{B80000}**New help request** {00FFF0}from - %s[%i]:{FFFF00} %s",Name1,playerid,str);
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(PlayerInfo[i][pAdmin] >= 4) // Change your admin here. I'm just make a exemple for this
        {
            SendClientMessage(i,red,str);
        }
    }
    SendClientMessage(playerid, yellow,"Your help request has been sent to online administrators, please be patient.");
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)