16.02.2019, 13:39
Quote:
Код:
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; }
Na public OnPlayerDeath coloquei
Код:
HospProx(playerid);
se alguйm souber como resolver isto ficaria feliz :_