SetPlayerMarkerForPlayer | NPC's
#4

Quote:
Originally Posted by iLearner
Посмотреть сообщение
As i am using it under onplayerspwan, i want the playerid to see everyone else's color set as invisible.

Your code means, everyone will see that player's color as invisible.
oh sorry i did missunderstand.

why not use this vv

PHP код:
public OnPlayerStreamIn(playeridforplayerid

    if(
IsPlayerNPC(playerid)) 
    { 
        
SetPlayerMarkerForPlayer(forplayeridplayerid0x00000000); 
    } 
    else 
    { 
        if(!
IsPlayerNPC(i))   
        {   
            if(
GPM(playerid)==&& GPM(i)==1)   
            {   
                
SetPlayerMarkerForPlayer(forplayeridplayerid0x85170255DD);   
            }   
            else   
            {   
                
SetPlayerMarkerForPlayer(forplayeridplayerid, ( GetPlayerColor) & 0x00000000 ));   
            }     
        }  
    }   
    return 
1

0x00000000 = Invisible

instand of making loop everytime
Reply


Messages In This Thread
SetPlayerMarkerForPlayer | NPC's - by iLearner - 28.07.2017, 12:59
Re: SetPlayerMarkerForPlayer | NPC's - by Xeon™ - 28.07.2017, 14:05
Re: SetPlayerMarkerForPlayer | NPC's - by iLearner - 28.07.2017, 14:13
Re: SetPlayerMarkerForPlayer | NPC's - by Xeon™ - 28.07.2017, 14:19
Re: SetPlayerMarkerForPlayer | NPC's - by iLearner - 28.07.2017, 14:25
Re: SetPlayerMarkerForPlayer | NPC's - by Xeon™ - 28.07.2017, 14:29
Re: SetPlayerMarkerForPlayer | NPC's - by iLearner - 28.07.2017, 14:36
Re: SetPlayerMarkerForPlayer | NPC's - by Xeon™ - 28.07.2017, 14:41
Re: SetPlayerMarkerForPlayer | NPC's - by NaS - 28.07.2017, 15:12
Re: SetPlayerMarkerForPlayer | NPC's - by iLearner - 28.07.2017, 15:20

Forum Jump:


Users browsing this thread: 1 Guest(s)