Problem in CMD unmute
#3

Try this:

pawn Код:
CMD:unmute(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
        new targetid, string[128];
        {
        if(sscanf(params, "ui", targetid)) SendClientMessage(playerid, C_GREY, "USAGE: /unmute [playerid]");

        format(string, sizeof(string), "ADMIN: %s has been un-muted.", Name(targetid));
        SendClientMessageToAll(C_YELLOW, string);
        SendClientMessage(targetid, C_LGREEN, "You are un-muted!");
        PlayerInfo[targetid][pMuted] = 0;
        }
        if(PlayerInfo[targetid][pMuted] == 1)
        //{
        SendClientMessage(playerid, C_RED, "Player muted!");
        //}
        else if(PlayerInfo[targetid][pMuted] == 0)
        //{
        SendClientMessage(playerid, C_RED, "Player not muted!");
        //}
       
    }
    else SendClientMessage(playerid, C_RED, "You are not authorized to use this command!");
    return 1;
}
Reply


Messages In This Thread
Problem in CMD unmute - by DetoNater - 28.05.2013, 15:43
Re : Problem in CMD unmute - by Stefano.R - 28.05.2013, 15:46
Re: Problem in CMD unmute - by Areax - 28.05.2013, 15:49
Re: Problem in CMD unmute - by jordy.kiesebrink - 28.05.2013, 15:53
Re: Problem in CMD unmute - by DetoNater - 28.05.2013, 15:57
Re: Problem in CMD unmute - by jordy.kiesebrink - 28.05.2013, 16:02

Forum Jump:


Users browsing this thread: 1 Guest(s)