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


Messages In This Thread
Help with /noooc - by Michael_Cuellar - 19.04.2013, 07:48
Re: Help with /noooc - by Necip - 19.04.2013, 07:56
Re: Help with /noooc - by Michael_Cuellar - 19.04.2013, 07:58
Re: Help with /noooc - by Necip - 19.04.2013, 07:59
Re: Help with /noooc - by Michael_Cuellar - 19.04.2013, 08:20
Re: Help with /noooc - by Necip - 19.04.2013, 08:50
Re: Help with /noooc - by Michael_Cuellar - 19.04.2013, 08:51
Re: Help with /noooc - by Necip - 19.04.2013, 08:52

Forum Jump:


Users browsing this thread: 1 Guest(s)