PLAYER COLOR
#1

PHP код:
public wantedcolor()
{
    new 
wl,c;
    for(new 
d,g=GetMaxPlayers(); d<gd++) if(IsPlayerConnected(d) && !IsPlayerNPC(d))
    {
        
wl=GetPlayerWantedLevel(d);
        if(
wl == && gTeam[d] == CIVILIANS)
        {
            
GetPlayerColor(d);
            if(
!= BLANCO)
            
SetPlayerColor(d,BLANCO);
        }
        if(
wl >= && wl <= 3)
        {
            
GetPlayerColor(d);
            if(
!= AMARILLO)
            
SetPlayerColor(d,AMARILLO);
        }
        if(
wl >= 4)
        {
        
GetPlayerColor(d);
        if(
!= ROJO)
        
SetPlayerColor(d,ROJO);
        }
    }
    else if(
pData[d][pAdmin] == && IsOnduty{d} == && wl == 0)
    {
        
GetPlayerColor(d);
        
SetPlayerColor(d,COLOR_ADMIN);
        return 
1;
    }
    return 
1;

What's wrong with it. Its working fine but only IsonDuty not working? any idea whats wrong there?
Reply


Messages In This Thread
PLAYER COLOR - by STONEGOLD - 13.07.2015, 09:45
Re: PLAYER COLOR - by notime - 13.07.2015, 09:49
Re: PLAYER COLOR - by Vince - 13.07.2015, 10:05
Re: PLAYER COLOR - by STONEGOLD - 13.07.2015, 10:15

Forum Jump:


Users browsing this thread: 1 Guest(s)