Mute System
#1

Hey Whats up!
well, i did my muted system but i have 1 problem, when you muted a user it works good, but if they log off with muted time when they come back to server the muted never finish.


This is my cmd

Quote:

CMD:mutear(playerid, params[])
{
if(Logged[playerid] == 1)
{
new string[128], targetid, time, reason[128];
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, blanco, "{FF0000}ERROR:{FFFFFF} Usted no esta autorizado para usar este comando");
if(sscanf(params,"rds", targetid, time, reason)) return SendClientMessage(playerid, blanco, "USA:{FFFFFF} /mutear [ID] [Segundos] [Razon]");
if(PlayerInfo[playerid][pMuted] == 1) return SendClientMessage(playerid, blanco, "{FF0000}ERROR:{FFFFFF} El jugador ya esta muteado");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, blanco, "{FF0000}ERROR:{FFFFFF} El jugador no esta conectado.");
if(PlayerInfo[targetid][pAdmin] > PlayerInfo[playerid][pAdmin]) return SendClientMessage(playerid, blanco, "{FF0000}ERROR:{FFFFFF} Usted no puede mutear a ese jugador.");
format(string, sizeof(string), "%s Ha sido muteado por %s.(%d Segundos)", GetName(targetid), reason, time);
SendClientMessageToAll(COLOR_RED, string);
KillTimer(PlayerInfo[targetid][pMutedTime]);
PlayerInfo[targetid][pMuted] = 1;
PlayerInfo[targetid][pMutedTime] = SetTimerEx("unmute",time*1000, 0, "i", targetid);
}
return 1;
}

Reply


Messages In This Thread
Mute System - by CoR3 - 14.10.2014, 03:42
Re: Mute System - by The__ - 14.10.2014, 03:49
Re: Mute System - by CoR3 - 14.10.2014, 04:06
Re: Mute System - by dominik523 - 14.10.2014, 05:24

Forum Jump:


Users browsing this thread: 1 Guest(s)