Need some help with three options +rep
#1

Hey, so I have an admin system and I thought it'd be great to have "admin status"
such as

Usage: /status [1,2,3]
Hint: Available (1), Busy (2), Away (3)

now, I wanna show it on my admins list, here is my admin list from South Central Roleplay -

PHP код:

CMD
:admins(playeridparams[])
{
    new 
count 0;
    
SendClientMessage(playeridCOLOR_YELLOW"Online Administrators:");
    foreach (new 
Player) if (PlayerData[i][pAdmin] > && PlayerData[i][pAdminHide] < 1)
    {
        if (
PlayerData[i][pAdminDuty])
            
SendClientMessageEx(playeridCOLOR_NICEBLUE"* %s (Level: %d) - (Status)"ReturnName(i0), PlayerData[i][pAdmin]);
        else
            
SendClientMessageEx(playeridCOLOR_NICEBLUE"* %s (Level: %d) - (Status)"ReturnName(i0), PlayerData[i][pAdmin]);
        
count++;
    }
    if (!
count) {
        
SendClientMessage(playeridCOLOR_WHITE"There is no admins currently online");
    }
    return 
1;

And I want the admin status to be "Available" as default everytime, how I do this? I'm kinda new at this and I need some help around :P
Reply


Messages In This Thread
Need some help with three options +rep - by DemME - 27.10.2015, 22:12
Re: Need some help with three options +rep - by Scottylad - 27.10.2015, 23:37
Re: Need some help with three options +rep - by DemME - 27.10.2015, 23:45
Re: Need some help with three options +rep - by Kevln - 28.10.2015, 00:10
Re: Need some help with three options +rep - by DemME - 28.10.2015, 02:29
Re: Need some help with three options +rep - by Kevln - 28.10.2015, 03:01
Re: Need some help with three options +rep - by DemME - 28.10.2015, 03:19
Re: Need some help with three options +rep - by Kevln - 28.10.2015, 04:03

Forum Jump:


Users browsing this thread: 2 Guest(s)