View Issue Details

IDProjectCategoryView StatusLast Update
0002054Multi Theft Auto : San AndreasScriptingpublic2007-05-18 04:00
ReporterAlienXAssigned ToOli 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Versionblue_sa.r2.a12 
Target VersionFixed in Versionmtasadm_v1.0-dp1 
Summary0002054: Issue With onVehicleExit Event
Description

When using this event, the "Jacked" var returns the wrong value, its seems that it returns the same value as "player", thus making the message: "AlienX stole the green teams vehicle from AlienX!"

Code:
addEventHandler ( "onVehicleExit", root, "onExitVehicle" )
function onExitVehicle ( player, seat, jacked )
--source = the vehicle
if ( source == blueTeamVehicle ) then
if ( jacked ) then
showTextForAll ( 3000, 0, 0, 255, 1.5, getClientName( player ) .. " stole the Blue teams vehicle from " .. getClientName( jacked ) )
else
showTextForAll ( 3000, 0, 0, 255, 1.5, getClientName( player ) .. " lost the Blue teams vehicle!" )
end
elseif ( source == greenTeamVehicle ) then
if ( jacked ) then
showTextForAll ( 3000, 0, 0, 255, 1.5, getClientName( player ) .. " stole the Green teams vehicle from " .. getClientName( jacked ) )
else
showTextForAll ( 3000, 0, 0, 255, 1.5, getClientName( player ) .. " lost the Green teams vehicle!" )
end
end
end

TagsNo tags attached.

Activities

Jax

2007-05-18 04:00

administrator   ~~0004575

Leave issues unassigned, they're easier to see for everyone then.
Assigning to Oli was pretty stupid anyway :P

Issue History

Date Modified Username Field Change