/admins
#4

PHP код:
CMD:admins(playeridparams[])
{
    new 
sendername[MAX_PLAYER_NAME], string[128];
    
SCM(pid, -1"{FF6600}Online {FFFFFF}Admins");
    for(new 
0MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
            if(
Player[i][pAdmin] == 1338)
            {
                
GetPlayerName(isendernamesizeof(sendername));
                
format(stringsizeof(string), "Server Founder: {FF0000}%s"sendername);
                
SCM(pidCOLOR_WHITEstring);
            }
            if(
Player[i][pAdmin] == 1337)
            {
                
GetPlayerName(isendernamesizeof(sendername));
                
format(stringsizeof(string), "Server Manager: {A31818}%s"sendername);
                
SCM(pidCOLOR_WHITEstring);
            }
            if(
Player[i][pAdmin] == 5)
            {
                
GetPlayerName(isendernamesizeof(sendername));
                
format(stringsizeof(string), "Server Mapper: {0080FF}%s"sendername);
                
SCM(pidCOLOR_WHITEstring);
            }
            if(
Player[i][pAdmin] == 4)
            {
                
GetPlayerName(isendernamesizeof(sendername));
                
format(stringsizeof(string), "Leader Coordinator: {6633CC}%s"sendername);
                
SCM(pidCOLOR_WHITEstring);
            }
            if(
Player[i][pAdmin] == 3)
            {
                
GetPlayerName(isendernamesizeof(sendername));
                
format(stringsizeof(string), "Server Guardian: {A173FF}%s"sendername);
                
SCM(pidCOLOR_WHITEstring);
            }
            if(
Player[i][pAdmin] == 2)
            {
                
GetPlayerName(isendernamesizeof(sendername));
                
format(stringsizeof(string), "Server Moderator: {5CFEADFF}%s"sendername);
                
SCM(pidCOLOR_WHITEstring);
            }
            if(
Player[i][pAdmin] == 1)
            {
                
GetPlayerName(isendernamesizeof(sendername));
                
format(stringsizeof(string), "Trial Admin: {94FEC9FF}%s"sendername);
            }
        }
        else
        {
            if(!
IsPlayerConnected(i))
            {
                
format(stringsizeof(string), "{08FC9A}There are no admins online.");
                
SCM(pid, -1string);
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
/admins - by JXF - 27.05.2016, 20:04
Re: /admins - by izeatfishz - 27.05.2016, 20:11
Re: /admins - by JXF - 27.05.2016, 20:15
Re: /admins - by oMa37 - 27.05.2016, 20:20
Re: /admins - by F1N4L - 27.05.2016, 20:20
Re: /admins - by JXF - 27.05.2016, 20:20
Re: /admins - by Konstantinos - 27.05.2016, 20:21
Re: /admins - by JXF - 27.05.2016, 20:47
Re: /admins - by Konstantinos - 27.05.2016, 21:07
Re: /admins - by YaQi - 27.05.2016, 22:45

Forum Jump:


Users browsing this thread: 1 Guest(s)