How do I respawn near players?
#3

Quote:
Originally Posted by Mugalito
Посмотреть сообщение
PHP код:
for (new 0MAX_PLAYERSi++)
{
    if(
IsPlayerInRangeOfPoint(i,range,X,Y,Z)) SpawnPlayer(playerid);

That wouldnt work obviously, stop posting random code that doesn't work man.

You can try something like this but it won't work i guess. What you want to do sound complicated but it might be possible.

You can also try to do something with https://sampwiki.blast.hk/wiki/GetPlayerDistanceFromPoint
PHP код:
//onplayerdeath
new Float:pxFloat:pyFloat:pz;
for (new 
0MAX_PLAYERSi++)
{
    
GetPlayerPos(ipxpypz);
        
SetPlayerPos(playerid,px+50py+50pz);

Why don't spawn them at the nearest hospital?
Reply


Messages In This Thread
How do I respawn near players? - by ivndosos - 02.02.2018, 11:24
Re: How do I respawn near players? - by Mugala - 02.02.2018, 11:28
Re: How do I respawn near players? - by jasperschellekens - 02.02.2018, 11:33
Re: How do I respawn near players? - by Mugala - 02.02.2018, 11:38
Re: How do I respawn near players? - by ivndosos - 02.02.2018, 13:24
Re: How do I respawn near players? - by Mugala - 02.02.2018, 13:58

Forum Jump:


Users browsing this thread: 1 Guest(s)