Vehicle Teleport.
#2

pawn Код:
else if (PlayerToPoint(1.0, playerid,-127.0548,-3652.8835,102.7324, cx,cy,cz))
    {
        //Car Parking
        if (GetPlayerState(playerid) == 2)
                {
                    new tmpcar = GetPlayerVehicleID(playerid);
                    SetVehiclePos(tmpcar, -1398.8077,-263.6243,5.7211);
                }
                else
                {
                    SetPlayerPos(playerid, -1398.8077,-263.6243,5.7211);
                }
        SetPlayerInterior(playerid,0);
        GameTextForPlayer(playerid, "~w~Car Parking", 5000, 3);
        SetPlayerVirtualWorld(playerid, 0);
        PlayerInfo[playerid][pInt] = 0;
    }
your set VehiclePos Was getting the payers id instead of the Vehicles ID
Reply


Messages In This Thread
Vehicle Teleport. - by Mr.Mafia - 05.01.2010, 08:57
Re: Vehicle Teleport. - by fsnameless - 05.01.2010, 14:08
Re: Vehicle Teleport. - by Mr.Mafia - 10.01.2010, 08:55
Re: Vehicle Teleport. - by Mr.Mafia - 14.01.2010, 13:36
Re: Vehicle Teleport. - by TheChaoz - 14.01.2010, 14:04
Re: Vehicle Teleport. - by Mr.Mafia - 14.01.2010, 16:00

Forum Jump:


Users browsing this thread: 2 Guest(s)