[Ajuda] comando /sair
#1

Bem, o comando /sair ele estб com um pequeno problema, quando o player digita /entrar na frente da casa, ele vai pro interior da casa certinho, sу que o /sair, ele teleporta o player pra ultima casa CRIADA no servidor.

PHP код:
CMD:sair(playeridparams[])
{
    for(new 
0MAX_HOUSESi++)
     {
        if(
IsPlayerInRangeOfPoint(playerid,2.0,HouseInfo[i][EnterX],HouseInfo[i][EnterY],HouseInfo[i][EnterZ]))
         {
            
SetPlayerPos(playeridHouseInfo[i][ExitX],HouseInfo[i][ExitY],HouseInfo[i][ExitZ]);
            
SetPlayerInterior(playeridHouseInfo[i][ExitInt]);
            
SetPlayerVirtualWorld(playeridHouseInfo[i][ExitVW]);
         }
     }
     return 
1;

Reply


Messages In This Thread
comando /sair - by FernandoDutra - 21.05.2016, 22:14
Re: comando /sair - by Whoo - 21.05.2016, 22:35
Re: comando /sair - by FernandoDutra - 21.05.2016, 22:39
Re: comando /sair - by PainNagato - 21.05.2016, 22:39
Re: comando /sair - by FernandoDutra - 21.05.2016, 23:06
Re: comando /sair - by PainNagato - 21.05.2016, 23:13
Re: comando /sair - by FernandoDutra - 21.05.2016, 23:33
Re: comando /sair - by Coreia - 21.05.2016, 23:40
Re: comando /sair - by Whoo - 21.05.2016, 23:47
Re: comando /sair - by FernandoDutra - 22.05.2016, 00:35

Forum Jump:


Users browsing this thread: 1 Guest(s)