zcmd error :|
#4

pawn Код:
CMD:ooc(playerid, params[])
{
    new
        result[128],
        sendername[MAX_PLAYER_NAME];
       
    if (sscanf(params, "s", result))
        return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/o)oc [ooc chat]");
    if(FindIP(params)) /// Anti-Reclama
    {
        format(string, sizeof(string), "AdmCmd: %s was kicked by Guardian, reason: Server Advertise",sendername);
        SendClientMessageToAll(0xFF6347FF,string);
        PlayerInfo[playerid][pWarns] += 1;
        KickLog(string);
        Kick(playerid);
        return true;
    }
    if(gPlayerLogged[playerid] == 0)
        return SendClientMessage(playerid, COLOR_GREY, "   You havent logged in yet !");
    if ((noooc) && PlayerInfo[playerid][pAdmin] < 1)
        return SendClientMessage(playerid, COLOR_GRAD2, "   The OOC channel has been disabled by an Admin !");
    if(PlayerInfo[playerid][pMuted] == 1)
        return SendClientMessage(playerid, TEAM_CYAN_COLOR, "   You can't speak, you have been silenced !");
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(result, sizeof(result), "(( %s: %s ))", sendername, result);
    OOCOff(COLOR_OOC,string);
    printf("%s", string);
    return 1;
}
Reply


Messages In This Thread
zcmd error :| - by eXtr1kE - 03.10.2010, 18:40
Re: zcmd error :| - by Hal - 03.10.2010, 18:41
Re: zcmd error :| - by eXtr1kE - 03.10.2010, 18:43
Re: zcmd error :| - by LarzI - 03.10.2010, 18:47

Forum Jump:


Users browsing this thread: 1 Guest(s)