Some players spawning with black color?
#1

Hi all, well i don't know what to say about this but, every time a new player come into the server, he spawn with black color, i've tried to fix it by doing this:

PHP код:

foreach(new Player)
{
    if(!
PlayerInfo[i][pBackup])
    {
        if(
GetPVarInt(i"Jailed") > 0) {
            
SetPlayerColor(i0xAD7A2100);
        } else if(
PlayerInfo[i][pFaction] >= && PlayerInfo[i][pDuty] && FactionInfo[PlayerInfo[i][pFaction]][fType] != FACTION_HITMAN) {
            
SetPlayerColor(iFactionInfo[PlayerInfo[i][pFaction]][fColor] & ~0xff);
        } else if(
GetPlayerJob(iJOB_TAXIDRIVER) && GetPVarInt(i"TaxiFare") > 0) {
            
SetPlayerColor(i0xF5DEB300);
        } else {
            
SetPlayerColor(i0xFFFFFF00);
        }
    }

On player update, also tried to add it as a timer under ongamemodeint and still doesn't work, how can i find out from where do this players are getting that black color?
I've also added SetPlayerColor on player connect, as well as on player spawn but still it doesn't set them the color.
Reply
#2

Try this

PHP код:
foreach(new Player

    if(!
PlayerInfo[i][pBackup]) 
    { 
        if(
GetPVarInt(i"Jailed") > 0) { 
            
SetPlayerColor(i0xAD7A21FF); 
        } else if(
PlayerInfo[i][pFaction] >= && PlayerInfo[i][pDuty] && FactionInfo[PlayerInfo[i][pFaction]][fType] != FACTION_HITMAN) { 
            
SetPlayerColor(iFactionInfo[PlayerInfo[i][pFaction]][fColor] & ~0xff); 
        } else if(
GetPlayerJob(iJOB_TAXIDRIVER) && GetPVarInt(i"TaxiFare") > 0) { 
            
SetPlayerColor(i0xF5DEB3FF); 
        } else { 
            
SetPlayerColor(i0xFFFFFFFF); 
        } 
    } 

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)