SetPlayerMarkerForPlayer
#1

Hi,

I've always seemed to fail with this function -_-.

Anyways:

pawn Код:
for(new defenders = 0; defenders < MAX_PLAYERS; defenders++)
{
    if(IsPlayerConnected(defenders) && CCMission1_IsPlayerInTeamTwo(defenders))
    {
        SetPlayerMarkerForPlayer( defenders , playerid, 0x & GetPlayerColor(playerid) & 00);
    }  
}

for(new attackers = 0; attackers < MAX_PLAYERS; attackers++)
{
    if(IsPlayerConnected(attackers) && CCMission1_IsPlayerInTeamTwo(attackers))
    {
        SetPlayerMarkerForPlayer( attackers , playerid, 0x & GetPlayerColor(playerid) & 00);
    }
}
I'm basically trying to make all the defenders invinceble for the attackers & the other way around.
That seems to do nothing at all for the attacker team and the colours are fucked in the defender team (it's black)

If anybody could help me out, I'd be thankfull.

Matthias




Reply
#2

pawn Код:
SetPlayerMarkerForPlayer( attackers , playerid, GetPlayerColor(playerid) & 0xFFFFFF00);
And GetPlayerColor will only return the color if you have used SetPlayerColor before. Otherwise it returns black.
Reply
#3

I know

http://pawn.pastebin.com/m20329f2

I don't get it :/, his colour gets set but still returns black?

Also: How come it doesn't work for team attack either? (colours aren't black if you're on that team though)
Reply
#4

*Bump*
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)