Command /mute
#1

I tried to make command mute, but i dont know how to make it with timer..

i want to mute players on some time..but here is only for mute, and i need to unmute player if he wanna talk again, but i want that mute gone alone, when time go out

Код:
CMD:mute(playerid, params[])
{
	new id, string[128];
	if(PlayerInfo[playerid][pAdmin] < 1)return NisiAdmin(playerid);
	else if(sscanf(params, "u", id))return Koristi(playerid, "/mute [ime/ID]");
	else if(id == INVALID_PLAYER_ID) return PogresanID(playerid);
	SetPVarInt(id, "Mutan", 1);
	format(string, sizeof(string), ""#COL_YELLOW"Mute|Utisao si igraca %s!",PlayerName(id));
	SendClientMessage(playerid,-1, string);
	format(string, sizeof(string), ""#COL_YELLOW"Mute|Mutan si od Admina %s!",PlayerName(playerid));
	SendClientMessage(id,-1, string);
	return 1;
}
Reply


Messages In This Thread
Command /mute - by FL3GM4 - 14.12.2012, 14:45
Re: Command /mute - by LarzI - 14.12.2012, 14:55
Re: Command /mute - by FL3GM4 - 14.12.2012, 15:05
Re: Command /mute - by maramizo - 14.12.2012, 15:07
Re: Command /mute - by FL3GM4 - 14.12.2012, 15:08
Re: Command /mute - by maramizo - 14.12.2012, 15:16
Re: Command /mute - by FL3GM4 - 14.12.2012, 15:34
Re: Command /mute - by FL3GM4 - 14.12.2012, 15:37

Forum Jump:


Users browsing this thread: 1 Guest(s)