SetPlayerMarkerForPlayer
#1

This function doesn't work in short time after when players respawns.

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;
}
It never works properly.

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
     }
}
Reply


Messages In This Thread
SetPlayerMarkerForPlayer - by Midzi - 02.08.2015, 21:46
Re: SetPlayerMarkerForPlayer - by Crayder - 02.08.2015, 22:20
Re: SetPlayerMarkerForPlayer - by Midzi - 02.08.2015, 22:22
Re: SetPlayerMarkerForPlayer - by Tamer - 03.08.2015, 08:50
Re: SetPlayerMarkerForPlayer - by ikkentim - 03.08.2015, 14:18

Forum Jump:


Users browsing this thread: 1 Guest(s)