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.)