14.01.2011, 22:00
Here's your goto with vehicle stuff.
Just reverse the playerid's with the targetid's and vice versa.
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;
}