02.08.2015, 21:46
This function doesn't work in short time after when players respawns.
Code:
It never works properly.
This code also not working:
Code:
Код:
public OnPlayerSpawn(playerid)
{
foreach(new x : Player)
{
if(x == playerid) continue;
SetPlayerMarkerForPlayer(playerid, x, 0x00FF0000); // This works good
SetPlayerMarkerForPlayer(x, playerid, 0x00FF0000); // This doesn't work - why?
}
return 1;
}
This code also not working:
Код:
Function()
{
foreach(new x : Player)
{
TogglePlayerSpectating(x, 0); // Force player to respawn
}
return 1;
}
public OnPlayerSpawn(playerid)
{
foreach(new x : Player)
{
if(playerid == x) continue;
SetPlayerMarkerForPlayer(playerid, x, 0x00FF0000); // Won't work for respawned players
SetPlayerMarkerForPlayer(x, playerid, 0x00FF0000); // Won't work for respawned players
}
}

