Mute systems error.Help pelase (Sscanf2)
#1

Hi,in the mute system error output./mute id Can not we make silence.Sorry bad english,please help.
Reply
#2

Hmm show the fucking codes?
Reply
#3

Show us the code.
Quote:
Originally Posted by ******
"And we are meant to guess your code?"
Reply
#4

all mute systems.

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

        format(string, sizeof(string), "ADMIN: %s has been muted. [REASON: %s]", Name(targetid), reason);
        SendClientMessageToAll(C_YELLOW, string);
        PlayerInfo[targetid][pMuted] = 1;
    }
    else SendClientMessage(playerid, C_RED, "You do not have access to this command!");
    return 1;
}

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

        format(string, sizeof(string), "ADMIN: %s has been un-muted.", Name(targetid));
        SendClientMessageToAll(C_YELLOW, string);
        PlayerInfo[targetid][pMuted] = 0;
    }
    else SendClientMessage(playerid, C_RED, "You do not have access to this command!");
    return 1;
}
Reply
#5

Add this inside your public OnPlayerText
pawn Код:
if(PlayerInfo[playerid][pMuted] == 1)
{
       SendClientMessage(playerid,C_RED,"You are muted!");
       return 0;
}
Reply
#6

Quote:
Originally Posted by biker122
Посмотреть сообщение
Add this inside your public OnPlayerText
pawn Код:
if(PlayerInfo[playerid][pMuted] == 1)
{
       SendClientMessage(playerid,C_RED,"You are muted!");
       return 0;
}
It did not.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)