14.12.2012, 14:45
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
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; }