06.11.2009, 19:02
Hi,
I've always seemed to fail with this function -_-.
Anyways:
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
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);
}
}
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