Help with /noooc
#1

pawn Код:
ALTCOMMAND:o->ooc;
CMD:ooc(playerid, params[])
{
    new
        string[ 186 ]
    ;
    if((noooc) && PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_GRAD2, "OOC Chat closed by administrator!");
    if(isnull(params)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: {FFFFFF}(/o)oc [ooc chat]");

    format(string, sizeof(string), "(( OOC: %s: %s ))", RPName(playerid), params);
    OOCOff(0xCCFFFF00, string);
    OOCLog(string);
    printf("%s", string);
    return 1;
}


//heres my function
function OOCOff(color,const string[])
{
    foreach (Player,i)
    {
        if(!gOoc{i})
        {
            SendClientMessage(i, color, string);
        }
    }
}
I cant disable it
Reply
#2

What exactly do you want?
Reply
#3

it doesn't work, like the ooc chat does but I cant disable it
Reply
#4

Can I see the /noooc command?
Reply
#5

pawn Код:
ALTCOMMAND:o->ooc;
CMD:ooc(playerid, params[])
{
    new
        string[ 186 ]
    ;
    if((noooc) && PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_GRAD2, "OOC Chat closed by administrator!");//here
    if(isnull(params)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: {FFFFFF}(/o)oc [ooc chat]");

    format(string, sizeof(string), "(( OOC: %s: %s ))", RPName(playerid), params);
    OOCOff(0xCCFFFF00, string);
    OOCLog(string);
    printf("%s", string);
    return 1;
}
Reply
#6

You must have a /noooc command.How can you say if((noooc) etc without a /noooc command?
Reply
#7

how would I make one?
Reply
#8

It is about your script.My /noooc script is:

pawn Код:
CMD:noooc(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 3)
    {
        if (!noooc)
        {
            noooc = 1;
            BroadCast(COLOR_GRAD2, "   OOC chat channel disabled by an Admin!");
        }
        else
        {
            noooc = 0;
            BroadCast(COLOR_GRAD2, "   OOC chat channel enabled by an Admin!");
        }
    }
    else
    {
        SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)