Goto, Get Here
#2

Here's your goto with vehicle stuff.

pawn Код:
new
    Float:x,
    Float:y,
    Float:z,
    vehid = GetPlayerVehicleID(playerid),
    interior = GetPlayerInterior(targetid),
    world = GetPlayerVirtualWorld(targetid);
   
GetPlayerPos(targetid, x,y,z);
SetPlayerInterior(playerid, GetPlayerInterior(targetid));
SetPlayerVirtualWorld(targetid,GetPlayerVirtualWorld(playerid));

if(vehid)
{
    SetVehiclePos(vehid,x+1,y,z+3);
    LinkVehicleToInterior(vehid,interior);
    SetVehicleVirtualWorld(vehid,world);
    return 1;
}
else
{
    SetPlayerPos(playerid, x+1,y,z);
    return 1;
}
Just reverse the playerid's with the targetid's and vice versa.
Reply


Messages In This Thread
Goto, Get Here - by Larsey123IsMe - 14.01.2011, 21:41
Re: Goto, Get Here - by Backwardsman97 - 14.01.2011, 22:00
Re: Goto, Get Here - by Larsey123IsMe - 14.01.2011, 22:20
Re: Goto, Get Here - by Backwardsman97 - 14.01.2011, 22:57
Re: Goto, Get Here - by Larsey123IsMe - 14.01.2011, 23:23

Forum Jump:


Users browsing this thread: 1 Guest(s)