[ajuda] teleporte com carro
#4

Vini, acho que nгo precisa colocar o player no veнculo, quando teleporta o carro, se alguйm estб dentro, vai automaticamente.

Olha como fiz:

PHP код:
if (strcmp(cmd"/extele"true) == 0)
    {
        if(
PlayerInfo[playerid][pMembro] == || PlayerInfo[playerid][pLider] == 3)
        {
            if(
PlayerToPoint(2.0playerid1878.8372,-2367.2734,13.5547))
            {
                if (
GetPlayerState(playerid) == 2) {
                    new
                        
CCarro GetPlayerVehicleID(playerid)
                    ;
                    
SetVehiclePos(CCarro, -1429.8191,467.6045,7.1875);
                }
                else 
                    
SetPlayerPos(playerid, -1429.8191,467.6045,7.1875);
                
            }
            if(
PlayerToPoint(2.0playerid, -1429.8191,467.6045,7.1875))
            {
                if (
GetPlayerState(playerid) == 2) {
                    new
                        
CCarro GetPlayerVehicleID(playerid)
                    ;
                    
CCarro GetPlayerVehicleID(playerid)
                    
SetVehiclePos(CCarro1878.8372,-2367.2734,13.5547);
                }
                else 
                    
SetPlayerPos(playerid1878.8372,-2367.2734,13.5547);
                
            }
        }
        return 
1;
    } 
Reply


Messages In This Thread
[ajuda] teleporte com carro - by bombomloko - 02.05.2012, 17:52
Re: [ajuda] teleporte com carro - by s4kuL - 02.05.2012, 17:55
Re: [ajuda] teleporte com carro - by ViniBorn - 02.05.2012, 17:56
Re: [ajuda] teleporte com carro - by Bruno Pereira - 02.05.2012, 17:58
Re: [ajuda] teleporte com carro - by bombomloko - 02.05.2012, 18:01
Re: [ajuda] teleporte com carro - by ViniBorn - 02.05.2012, 18:05
Re: [ajuda] teleporte com carro - by KinX - 02.05.2012, 18:07
Re: [ajuda] teleporte com carro - by bombomloko - 02.05.2012, 18:09
Re: [ajuda] teleporte com carro - by Bruno Pereira - 02.05.2012, 18:09
Re: [ajuda] teleporte com carro - by ViniBorn - 02.05.2012, 18:10

Forum Jump:


Users browsing this thread: 3 Guest(s)