/admins not working properly
#7

PHP код:
CMD:admins(playeridparams[])
{
    new 
onlineastring[256],string[50];
    if(!
IsPlayerLoggedIn(playerid)) return SendClientMessage(playeridCOLOR_GREY"You need to login first before using any command.");
    for(new 
0GetPlayerPoolSize(); <= ji++)
    {
        if(
IsPlayerConnected(i) && PlayerInfo[i][pAdmin] > 0)
        {
            
online ++;
            
format(stringsizeof(string), "- NY:RP Admins (%d Online) -"online);
            
format(astringsizeof(astring), "{A35346}Name: {FFFFFF}%s{FFFFFF} | {A35346}Admin Level: {FFFFFF}%s (%d){FFFFFF} | {A35346}Admin Duty:{FFFFFF} %s |\n\r"RPN(i), RPALN(i), PlayerInfo[i][pAdmin], ADSTAT(i));
        }
    }
    if(
online)
    {
        
SendClientMessage(playeridCOLOR_LIGHTREDstring);
        
SendClientMessage(playeridCOLOR_WHITEastring);
    }
    else
    {
        
SendClientMessage(playeridCOLOR_GREY"- Theres no admins online -");
        
SendClientMessage(playeridCOLOR_YELLOW"Do not PM admins! Use /report & before reporting use /rules.");
    }
    return 
1;

Reply


Messages In This Thread
/admins not working properly - by maximthepain - 29.08.2017, 19:02
Re: /admins not working properly - by Dokins - 29.08.2017, 19:43
Re: /admins not working properly - by maximthepain - 29.08.2017, 19:49
Re: /admins not working properly - by 10MIN - 29.08.2017, 20:12
Re: /admins not working properly - by Arbico - 29.08.2017, 20:51
Re: /admins not working properly - by maximthepain - 29.08.2017, 21:27
Re: /admins not working properly - by DarkBr - 29.08.2017, 21:56

Forum Jump:


Users browsing this thread: 1 Guest(s)