Bassam*Syria Posted February 17, 2014 Share Posted February 17, 2014 في عطل بالمود لما حد ياخذ سيارة من الوحة و واحد تاني يبي السيارة و ياخذها تختفي من الاول الرجاء المساعددة function FadyCar ( ) if isPedInVehicle ( source ) then outputChatBox ( " Exit your car first !! ",source,255,0,0,false) CancelEvent () else x,y,z = getElementPosition ( source ) if isElement(VIPCar) then destroyElement(VIPCar) end VIPCar = createVehicle ( 411, x, y, z ) warpPlayerIntoVehicle ( source, VIPCar ) text = "VIP Car" setVehiclePlateText ( VIPCar, text ) setVehicleDamageProof ( VIPCar, true ) end end addEvent( "FadyVIPCar", true ) addEventHandler( "FadyVIPCar", getRootElement(), FadyCar ) Link to comment
#DRAGON!FIRE Posted February 17, 2014 Share Posted February 17, 2014 (edited) else ما يحتاج تكسنل الافنت مدام متحقق انه معاه ومسوي CancelEvent ملأحظة :ما ادري وش تقصد بـ الكينسل .. انت متحقق من وجود السيارة ومسوي لو معاه local vehicle = { } function FadyCar ( ) if isPedInVehicle ( source ) then outputChatBox ( " Exit your car first !! ",source,255,0,0,false) CancelEvent () else local x, y, z = getElementPosition ( source ) if isElement( vehicle[ source ] ) then destroyElement( vehicle[ source ] ) end vehicle[ source ] = createVehicle ( 411, x, y, z ) warpPlayerIntoVehicle ( source, vehicle[ source ] ) text = "VIP Car" setVehiclePlateText ( vehicle[ source ], text ) setVehicleDamageProof ( vehicle[ source ], true ) end end addEvent( "FadyVIPCar", true ) addEventHandler( "FadyVIPCar", getRootElement(), FadyCar ) addEventHandler( "onPlayerQuit", root, function( ) if isElement( vehicle[ source ] ) then destroyElement( vehicle[ source ] ) vehicle[ source ] = nil end end ) addEventHandler( "onVehicleExplode", resourceRoot, function( ) setTimer( destroyElement, 2000, 1, source) end ) Edited February 17, 2014 by Guest Link to comment
iPrestege Posted February 17, 2014 Share Posted February 17, 2014 else ما يحتاج تكسنل الافنت مدام متحقق انه معاه ومسوي CancelEvent ملأحظة :ما ادري وش تقصد بـ الكينسل .. انت متحقق من وجود السيارة ومسوي لو معاه local vehicle = { } function FadyCar ( ) if isPedInVehicle ( source ) then outputChatBox ( " Exit your car first !! ",source,255,0,0,false) CancelEvent () else local x, y, z = getElementPosition ( source ) if isElement( vehicle[ source ] ) then destroyElement( vehicle[ source ] ) end vehicle[ source ] = createVehicle ( 411, x, y, z ) warpPlayerIntoVehicle ( source, vehicle[ source ] ) text = "VIP Car" setVehiclePlateText ( vehicle[ source ], text ) setVehicleDamageProof ( vehicle[ source ], true ) end end addEvent( "FadyVIPCar", true ) addEventHandler( "FadyVIPCar", getRootElement(), FadyCar ) What is this ? Link to comment
abu5lf Posted February 17, 2014 Share Posted February 17, 2014 في عطل بالمود لما حد ياخذ سيارة من الوحة و واحد تاني يبي السيارة و ياخذها تختفي من الاول الرجاء المساعددة function FadyCar ( ) if isPedInVehicle ( source ) then outputChatBox ( " Exit your car first !! ",source,255,0,0,false) CancelEvent () else x,y,z = getElementPosition ( source ) if isElement(VIPCar) then destroyElement(VIPCar) end VIPCar = createVehicle ( 411, x, y, z ) warpPlayerIntoVehicle ( source, VIPCar ) text = "VIP Car" setVehiclePlateText ( VIPCar, text ) setVehicleDamageProof ( VIPCar, true ) end end addEvent( "FadyVIPCar", true ) addEventHandler( "FadyVIPCar", getRootElement(), FadyCar ) اللي فهمته انك تبي اللي يسرق سيارة تنسحب منه Link to comment
AboShanab Posted February 18, 2014 Share Posted February 18, 2014 CancelEvent () v cancelEvent () + اظن انها ما تضبط فـ استخدم return افضل ,, Link to comment
فاّرس Posted February 18, 2014 Share Posted February 18, 2014 الحين نفسي افهم وين الحدث الي تبي تنكسله ؟ -__-" Link to comment
#DRAGON!FIRE Posted February 18, 2014 Share Posted February 18, 2014 CancelEvent انا فهمته غلط يمكن او فهمي صحيح .. احسب يتصل بـ فنكشن اسمه لانه كل اكواده نسخ - لصق .. ومهو داري وش السالفة -__- . Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now