[HELP] Mute Command
#1

Hi everyone,
How can i change my /mute command for admins so i can use it /mute <ID> <Time/Minutes> <Reason> ?
My /mute command Auto mute for 60seconds, How can i change it ?


Код:
#define AUTO_MUTE_TIME        60
Код:
CMD:mute(playerid, params[])
{
    if(pInfo[playerid][pLevel] >= 1)
    {
        new id, reason[50];
        if(isnull(params)) return SendClientMessage(playerid, yellow, "Usage: /mute <Player ID> <Reason>");
        sscanf(params, "us[50]", id, reason);
        if(IsPlayerConnected(id))
        {
            if(pInfo[id][Muted] == 1) return SendClientMessage(playerid,red,"This player is already muted. see /muted");
            if(pInfo[playerid][pLevel] < pInfo[id][pLevel]) return ShowMessage(playerid, red, 6);
            if(!isnull(reason))
		    format(Jstring,sizeof(Jstring),"Administrator %s has muted player '%s' | Reason: %s",GetName(playerid),GetName(id),reason);
		    else format(Jstring,sizeof(Jstring),"Administrator %s has muted '%s'",GetName(playerid),GetName(id));
		    SendClientMessageToAll(red,Jstring);
		    pInfo[id][Muted] = 1;
		    CommandToAdmins(playerid,"mute");
			return 1;
		}
		else return ShowMessage(playerid, red, 2);
    }
    else return ShowMessage(playerid, red, 1);
}
Reply


Messages In This Thread
[HELP] Mute Command - by TwiiKzz - 15.01.2016, 16:50
Re: [HELP] Mute Command - by Sjn - 15.01.2016, 17:12
Re: [HELP] Mute Command - by Crayder - 15.01.2016, 17:12
Re: [HELP] Mute Command - by TwiiKzz - 15.01.2016, 17:40

Forum Jump:


Users browsing this thread: 1 Guest(s)