Hello,
Recently, I've decided to write script which repairs one bug on DD maps. As somebody from u guys know, when u prees enter , gamemode marks u as "dead" - it puts something like shadow with burn on the middle. Same thing is when u get blown.
The problem is how gamemode marks u as dead? What event it uses?
function moveVehicle ( )
outputChatBox ( "First part", getRootElement(), 255, 0, 0, true )
local vehicle = getPedOccupiedVehicle ( source )
local x,y,z = getElementPosition( source )
outputChatBox ( "vehicle: " ..tostring ( source ) )
if ( vehicle ) then
setElementPosition ( vehicle, x,y,z-100 )
end
end
addEventHandler ( "onPlayerWasted" , getRootElement() , moveVehicle )
Ok i changed something.
Any ideas?