[ajuda] Coisa basica com teleporte
#1

Ae, ontem eu postei um projeto aqui, era de um clube e eu podia entrar nele usando comando e "F", ai tentei tirar os comandos e usar ele como se fosse para entrar apertando apenas "F", so que quando aperto "F" o player nao й posicionado nas coordenadas, se alguem puder ajudar + REP!

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if((newkeys==KEY_SECONDARY_ATTACK))
      {if(IsPlayerInRangeOfPoint(playerid, 2.0, 578.6855,-2195.5337,1.6288))
        {
            ApplyAnimation(playerid,"DAM_JUMP","DAM_LAUNCH",2,0,1,1,0,0);
        }
        return 1;
        
     if(IsPlayerInRangeOfPoint(playerid, 2.0, 1081.1975,-1696.7900,13.5469))
        {
            SetPlayerPos(playerid, 575.7503,-2046.9207,16.1670);
            SendClientMessage(playerid, COLOR_GREEN, "[BSL] Bem Vindo ao Clube do Brasil Start Life, Vocк pagou R$ 50,00 para entrar no clube.");
            GivePlayerMoney(playerid,-50);
        }
        return 1;

     if(IsPlayerInRangeOfPoint(playerid, 2.0, 575.5306,-2050.3894,16.1700))
        {
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid, 1081.0916,-1697.7324,13.5469);
            SendClientMessage(playerid, COLOR_GREEN, "[BSL] Obrigado por Visitar o Clube, Volte Sempre!");
        }
        return 1;

     if(IsPlayerInRangeOfPoint(playerid, 2.0, 559.5461,-2033.9458,16.1743))
        {
            SetPlayerPos(playerid, 559.4380,-2092.8203,2.67120);
        }
        return 1;

     if(IsPlayerInRangeOfPoint(playerid, 2.0, 559.5261,-2095.8760,2.6254))
        {
            SetPlayerPos(playerid, 561.7214,-2033.8285,16.1670);
        }
        return 1;

     if(IsPlayerInRangeOfPoint(playerid, 2.0, 570.5856,-2095.8291,2.6077))
        {
            SetPlayerPos(playerid, 527.8544,-2082.4460,17.2253);
        }
        return 1;

     if(IsPlayerInRangeOfPoint(playerid, 2.0, 530.4130,-2082.5781,17.2253))
        {
            SetPlayerPos(playerid, 570.3227,-2093.3599,2.6448);
        }
        return 1;

     if(IsPlayerInRangeOfPoint(playerid, 2.0, 578.6855,-2195.5337,1.6288))
        {
            SetPlayerPos(playerid, 578.5896,-2194.7065,7.1380);
        }
        return 1;

    return 1;
    }
}
Reply


Messages In This Thread
[ajuda] Coisa basica com teleporte - by KinX - 02.03.2012, 15:22
Re: [ajuda] Coisa basica com teleporte - by [uGd]vSilv4_. - 02.03.2012, 15:55
Re: [ajuda] Coisa basica com teleporte - by KinX - 02.03.2012, 16:08
Re: [ajuda] Coisa basica com teleporte - by paulor - 02.03.2012, 16:12
Re: [ajuda] Coisa basica com teleporte - by KinX - 02.03.2012, 16:23
Re: [ajuda] Coisa basica com teleporte - by [uGd]vSilv4_. - 02.03.2012, 16:31
Re: [ajuda] Coisa basica com teleporte - by humildadeforever - 02.03.2012, 16:32
Re: [ajuda] Coisa basica com teleporte - by paulor - 02.03.2012, 17:28
Re: [ajuda] Coisa basica com teleporte - by [R] ousenber [K] - 02.03.2012, 17:36

Forum Jump:


Users browsing this thread: 1 Guest(s)