[Ajuda] Spawn Hospital mais prуximo
#5

Quote:
Originally Posted by Lovejoy
Посмотреть сообщение
A stock ficou assim

Код:
 stock HospProx(playerid)
{

for(new nh=0;nh!=TOTAL_DE_HOSPITAIS;nh++) {
    distactual = GetPlayerDistanceFromPoint(playerid,poshospital[nh][0],poshospital[nh][1],poshospital[nh][2]);
    if (distactual<menordistancia) {
        menordistancia=distactual;
        hospital=nh;
        SetSpawnInfo(playerid,-1,PlayerInfo[playerid][pSkin],poshospital[hospital][0],poshospital[hospital][1],poshospital[hospital][2],0,0,0,0,0,0);
    }
}

	return 1;
}
O SetSpawnInfo compilou tudo certo.
Na public OnPlayerDeath coloquei

Код:
HospProx(playerid);
Da mesma forma quando morre, volta para a ъltima posiзгo ao invйs de nascer no hospital mais prуximo
se alguйm souber como resolver isto ficaria feliz :_
Reply


Messages In This Thread
[Resolvido]Spawn Hospital mais prуximo - by Japis - 16.02.2019, 02:26
Re: Spawn Hospital mais prуximo - by markshelcee0104031995 - 16.02.2019, 02:40
Re: Spawn Hospital mais prуximo - by Japis - 16.02.2019, 10:40
Re: Spawn Hospital mais prуximo - by Lovejoy - 16.02.2019, 11:47
Re: Spawn Hospital mais prуximo - by Japis - 16.02.2019, 13:39
Re: Spawn Hospital mais prуximo - by HelderPT - 16.02.2019, 15:11
Re: Spawn Hospital mais prуximo - by Japis - 16.02.2019, 15:47
Re: Spawn Hospital mais prуximo - by Japis - 16.02.2019, 16:02
Re: Spawn Hospital mais prуximo - by Japis - 16.02.2019, 19:32
Re: Spawn Hospital mais prуximo - by HelderPT - 16.02.2019, 20:34
Re: Spawn Hospital mais prуximo - by Japis - 16.02.2019, 20:55

Forum Jump:


Users browsing this thread: 1 Guest(s)