23.02.2016, 20:01
I'm using this script when a gang war starts:
The problem is:When i use this function OnPlayerSpawn is not working.
And also the player dissapear on respawn
Where i'm wrong ? How i FIX IT to make on spawn to see the gangsters?
Код:
foreach(new igor : Player) { if(PlayerInfo[igor][pMember] == 5 || PlayerInfo[igor][pMember] == 6) { foreach(new igor2 : Player) { if(PlayerInfo[igor2][pMember] == 5 || PlayerInfo[igor2][pMember] == 6) { SetPlayerMarkerForPlayer(igor, igor2, GetPlayerGColor(igor2)); SetPlayerMarkerForPlayer(igor2, igor, GetPlayerGColor(igor)); } } } }
And also the player dissapear on respawn
Код:
new igor = playerid; if(PlayerInfo[igor][pMember] == 5 || PlayerInfo[igor][pMember] == 6) { foreach(new igor2 : Player) { if(PlayerInfo[igor2][pMember] == 5 || PlayerInfo[igor2][pMember] == 6) { SetPlayerMarkerForPlayer(igor, igor2, GetPlayerGColor(igor2)); SetPlayerMarkerForPlayer(igor2, igor, GetPlayerGColor(igor)); } } }