19.08.2009, 12:00
i was woundering how i can teleport with my car still with me
thx for ur time
thx for ur time
SetVehiclePos(vehicleid, X, Y, Z);
if (strcmp("/teleport",cmdtext,true)==0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(vehicleid,X, Y,Z);
}
else {
SetPlayerPos(playerid,X,Y,Z);
}
return 1;
}
if (strcmp("/teleport",cmdtext,true)==0) { new vehicleid = GetPlayerVehicleID(playerid); if(IsPlayerInAnyVehicle(playerid)) { SetVehiclePos(vehicleid,X, Y,Z); SetPlayerPos(playerid,X,Y,Z); } else { SetPlayerPos(playerid,X,Y,Z); } return 1; } }