why wont my command work?
#2

pawn Код:
COMMAND:unmute(playerid, params[])
{
    if(PlayerInfo[playerid][Admin] > 0)
    {
        new targetid, string[128];
        if(sscanf(params, "u", targetid)) return SendUsage(playerid, "USAGE: /unmute [targetid]");
        if(IsPlayerConnected(targetid))
        {
            format(string, 128, "**(ADMIN UNMUTE)** %s(%d) has been unmuted by Admin '%s(%d)'", PlayerName(targetid), targetid, PlayerName(playerid), playerid);
            SendClientMessageToAll(COLOR_RED, string);
            PlayerInfo[targetid][Muted] = 0;
        }
        else
        {
            SendClientMessage(playerid, COLOR_WHITE, "ERROR: That player is not connected.");
        }
    }
    else SendErrorMessage(playerid);
    return 1;
}
You know, I woudn't mind knowing if it worked...
Reply


Messages In This Thread
why wont my command work? - by Raz0r1000 - 28.01.2011, 22:37
****** - by Mean - 28.01.2011, 23:11
Re: why wont my command work? - by Raz0r1000 - 29.01.2011, 18:20

Forum Jump:


Users browsing this thread: 2 Guest(s)