/vmute bugged
#1

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;
}
Reply


Messages In This Thread
/vmute bugged - by ChromeMenu - 13.03.2014, 01:10
Re: /vmute bugged - by Ceathor - 13.03.2014, 01:58
Re: /vmute bugged - by ChromeMenu - 13.03.2014, 03:41
Re: /vmute bugged - by Keyhead - 13.03.2014, 04:09
Re: /vmute bugged - by ChromeMenu - 13.03.2014, 04:24
Re: /vmute bugged - by Mriss - 13.03.2014, 05:35

Forum Jump:


Users browsing this thread: 1 Guest(s)