I want to add time in my mute command HELP :D
#4

I hate editing stuff
This is a simple mute command with timer:
pawn Код:
forward Unmute(playerid);

CMD:mute(playerid,params[])
{
    new toplayerid;
    if(sscanf(params,"ds",toplayerid,params) return SendClientMessage(playerid,LIGHTBLUE2,"Usage: /mute [PlayerID] [Reason]")
    else if(AccInfo[toplayerid][Muted] == true) return SendClientMessage(playerid,LIGHTBLUE2,"The player is already muted.")
    SetTimerEx("Unmuted",minute,0,"d",toplayerid);
    AccInfo[toplayerid][Muted] = true;
    return;
}

public Unmute(playerid)
{
        AccInfo[playerid][Muted] = false;
        return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)