13.03.2014, 01:10
When ever I /vmute someone, it says I mute them but it doesn't mute them from VIP chat.
Код:
command(vmute, playerid, params[]) { new id, string[128]; if(sscanf(params, "u", id)) { if(Player[playerid][AdminLevel] >= 1) { SendClientMessage(playerid, WHITE, "SYNTAX: /vmute [playerid]"); SendClientMessage(playerid, GREY, "This can be used to reverse the mute effect (effectively unmute)."); } } else { if(Player[playerid][AdminLevel] >= 1) { if(IsPlayerConnectedEx(id)) { if(Player[id][vMuted] == 0) { format(string, sizeof(string), "You have muted %s from VIP chat.", GetName(id)); Player[id][vMuted] = 1; SendClientMessage(playerid, WHITE, string); } else { format(string, sizeof(string), "You have unmuted %s from VIP chat.", GetName(id)); Player[id][vMuted] = 0; SendClientMessage(playerid, WHITE, string); } } else { SendClientMessage(playerid, WHITE, "That player is not connected or isn't logged in."); } } } return 1; }