SA-MP Forums Archive
Hello - 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)
+--- Thread: Hello (/showthread.php?tid=400580)



Hello - Alex0 - 19.12.2012

Hello guys , can anybody help me to change Admin 1339 on Owner in my server . I mean wheen he types /a or /o or /n , i want him to appear like Owner <Name>: not like Admin 1339 <Name>:

If you guys can do that .. pleaze help me ... here is my admin command:
pawn Код:
if(strcmp(cmd, "/admin", true) == 0 || strcmp(cmd, "/a", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            new y,m,d;
            new h,mi,s;
            getdate(y,m,d);
            gettime(h,mi,s);
            GetPlayerName(playerid, sendername, sizeof(sendername));
            new length = strlen(cmdtext);
            while ((idx < length) && (cmdtext[idx] <= ' '))
            {
                idx++;
            }
            new offset = idx;
            new result[64];
            while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
            {
                result[idx - offset] = cmdtext[idx];
                idx++;
            }
            result[idx - offset] = EOS;
            if(!strlen(result))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: (/a)dmin [admin chat]");
                return 1;
            }
            format(string, sizeof(string), "{70DB93}* %d Admin {00BFFF}%s{70DB93}: %s", PlayerInfo[playerid][pAdmin], sendername, result);
            if(PlayerInfo[playerid][pScripter] == 1) { format(string, sizeof(string), "{8B2323}* Scripter {006400}%s{8B2323}: %s", sendername, result); }
            if(PlayerInfo[playerid][pSpecialAdmin] == 1) { format(string, sizeof(string), "{32CD32}* Special Admin {FFB90F}%s{32CD32}: %s", sendername, result); }
            if (PlayerInfo[playerid][pAdmin] >= 1)
            {
                SendAdminMessage(COLOR_GOLD, string);
                SendHelperMessage(COLOR_GOLD, string);

                format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %d Admin {FFFFFF}%s{FF9900}: %s",d,m,y,h,mi,s,PlayerInfo[playerid][pAdmin],sendername, result);
                AdminChatLog(string);
            }
            printf("Admin %s: %s", sendername, result);
        }
        return 1;
    }
Pleaze help me


Re: Hello - David (Sabljak) - 19.12.2012

add this

if(PlayerInfo[playerid][pAdmin] == 1339) { format(string, sizeof(string), "* Owner %s : %s", sendername, result); }


Re: Hello - Alex0 - 19.12.2012

Thx , can i add this at /o and /n ?