[Ajuda] spawn em Hospitais Aleatorios
#1

O Titulo jб estб falando, os locais pra spawnar quando morre jб estб certo mais o local nгo estб funfando eu marquei tipo um local no mapa e fiz igual uma gangzone, mais nгo estб funcionando, o que estб errado?

PHP код:
stock IsPlayerInLs(playerid)
{
    new 
Float:x,Float:y,Float:z;
    
GetPlayerPos(playeridxyz);
    if(
>= -35.6829 && >= -400.4102 && <= 1505.2594 && <= -2914.9653) return 1;
    else return 
0;

Este local й em ls, eu coloquei o spawn no hosp de ls e marquei um local no mapa, fui testar mais nгo estб funfando estou fazendo/pegando as coordenadas errado?
Reply
#2

http://forum.sa-mp.com/showpost.php?...10&postcount=9
Reply
#3

Uma base.
PHP код:
new hosp random(5);
if (
hosp == 0) { SetPlayerPos(playeridx,y,z); }
if (
hosp == 1) { SetPlayerPos(playeridx,y,z); }
if (
hosp == 2) { SetPlayerPos(playeridx,y,z); }
if (
hosp == 3) { SetPlayerPos(playeridx,y,z); } 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)