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

Quote:
Originally Posted by varthshenon
Посмотреть сообщение
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;
}
This didn't help me, I want the same code I got in the first post just with having the command like /Mute <PlayerID> <Minutes> <Reason>

Please someone help me

(It have to be the code that is in the first post or it wont work its because I have the admin system inside my gamemode and the command is connected with other parts in the gm.)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)