SA-MP Forums Archive
Admin Command /o - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Admin Command /o (/showthread.php?tid=245097)



Admin Command /o - iReaLCFG - 30.03.2011

When ordering /o how can you talk to an admin /o her to show you have as an admin level ??!!


Re: Admin Command /o - Venice - 30.03.2011

pawn Код:
if(strcmp(cmd, "/aooc", true) == 0 || strcmp(cmd, "/ao", true) == 0)
    {
        if(PlayerInfo[playerid][pAdmin] >= 1)
        {
            if(gPlayerLogged[playerid] == 0)
            {
                SendClientMessage(playerid, COLOR_GREY, "   You havent logged in yet !");
                return 1;
            }
            GetPlayerName(playerid, sendername, sizeof(sendername));
            new length = strlen(cmdtext);
            while ((idx < length) && (cmdtext[idx] <= ' '))
            {
                idx++;
            }
            new offset = idx;
            new result[96];
            while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
            {
                result[idx - offset] = cmdtext[idx];
                idx++;
            }
            result[idx - offset] = EOS;
            if(!strlen(result))
            {
                SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/ao)oc [Admin OOC Chat]");
                return 1;
            }
            format(string, sizeof(string), "(( Admin %s: %s ))", sendername, result);
            OOCOff(COLOR_OOC,string);
        }
        return 1;
    }



Re: Admin Command /o - iReaLCFG - 30.03.2011

I do not want, I want to defend my level, Example: Admin Level 1338 - iRealCFG say: