Huge & annoying problems with the planes
I'm sure that most of PTP players hates this "bug"
When you are in a plane, about to block a president, you get killed by "falling" or either getting launched very far away by your plane... We have to jump from the plane in the exact moment to not ocurre any of those situations, so the idea is simple.
- Disable the collision of the plane we just jumped from, to avoid these situations. (Disable this only to the "driver?" of the plane of course..)
Hoping to see this added in the next few updates..
best regards Izzo a.k.a kawazaki
Re: Huge & annoying problems with the planes
@RoCK$TaR
should like this
Re: Huge & annoying problems with the planes
This code will make plane non-collidable for 3sec when a player exits a plane. Plane will be set non-collidable only with the source who exited the plane.
https://i.imgur.com/RphQRiC.mp4
Code:
function onPlaneExit(player)
if player == localPlayer then
local myPlane = getPedOccupiedVehicle(player)
if getVehicleType(source) == "Plane" then
setElementAlpha(source, 170)
setElementCollidableWith(source, player, false)
setTimer(function()
setElementCollidableWith(myPlane, player, true)
setElementAlpha(myPlane, 255)
end, 3000, 1)
end
end
end
addEventHandler("onClientVehicleStartExit", getRootElement(), onPlaneExit)
Re: Huge & annoying problems with the planes
Quote:
Originally Posted by
TKN
This code will make plane non-collidable for 3sec when a player exits a plane. Plane will be set non-collidable only with the source who exited the plane.
https://i.imgur.com/RphQRiC.mp4
Code:
function onPlaneExit(player)
if player == localPlayer then
local myPlane = getPedOccupiedVehicle(player)
if getVehicleType(source) == "Plane" then
setElementAlpha(source, 170)
setElementCollidableWith(source, player, false)
setTimer(function()
setElementCollidableWith(myPlane, player, true)
setElementAlpha(myPlane, 255)
end, 3000, 1)
end
end
end
addEventHandler("onClientVehicleStartExit", getRootElement(), onPlaneExit)
good bro
Re: Huge & annoying problems with the planes
Quote:
Originally Posted by
tkn
this code will make plane non-collidable for 3sec when a player exits a plane. Plane will be set non-collidable only with the source who exited the plane.
https://i.imgur.com/rphqric.mp4
Code:
function onplaneexit(player)
if player == localplayer then
local myplane = getpedoccupiedvehicle(player)
if getvehicletype(source) == "plane" then
setelementalpha(source, 170)
setelementcollidablewith(source, player, false)
settimer(function()
setelementcollidablewith(myplane, player, true)
setelementalpha(myplane, 255)
end, 3000, 1)
end
end
end
addeventhandler("onclientvehiclestartexit", getrootelement(), onplaneexit)
pro!!!
Re: Huge & annoying problems with the planes
Quote:
Originally Posted by
TKN
This code will make plane non-collidable for 3sec when a player exits a plane. Plane will be set non-collidable only with the source who exited the plane.
https://i.imgur.com/RphQRiC.mp4
Code:
function onPlaneExit(player)
if player == localPlayer then
local myPlane = getPedOccupiedVehicle(player)
if getVehicleType(source) == "Plane" then
setElementAlpha(source, 170)
setElementCollidableWith(source, player, false)
setTimer(function()
setElementCollidableWith(myPlane, player, true)
setElementAlpha(myPlane, 255)
end, 3000, 1)
end
end
end
addEventHandler("onClientVehicleStartExit", getRootElement(), onPlaneExit)
ye but how to use that or u wil tell admins to add it to ptp in next updates
Re: Huge & annoying problems with the planes
bumping here to add this in the next updates. please... let me tell you that this is VERY VERY annoying...
Re: Huge & annoying problems with the planes
This way we wont be able to block presidents anymore? Hello? No ty
Re: Huge & annoying problems with the planes
Quote:
Originally Posted by
Trends
This way we wont be able to block presidents anymore? Hello? No ty
Nope, that's not how it would be.
Everyone expect you (the player who left the plane) will get hit by the plane.
So if you leave the shamal, it doesn't crush you to death, it will just go through you (and only you).
Re: Huge & annoying problems with the planes