Bassam*Syria Posted June 22, 2014 Share Posted June 22, 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 ) السيرفر function FadyCar () triggerServerEvent ( "FadyVIPCar",localPlayer) end addEventHandler ( "onClientGUIClick", GUIEditor.button[2], FadyCar, false ) ^^ Link to comment
Bassam*Syria Posted June 22, 2014 Author Share Posted June 22, 2014 و ياريت تقولولي ايش غيرتو ذذ Link to comment
1REDBULL Posted June 22, 2014 Share Posted June 22, 2014 الحين حق ايش ذا؟ if isElement(VIPCar) then destroyElement(VIPCar) ماشوف له فايده Link to comment
' ρяofзśŝoя 亗 Posted June 22, 2014 Share Posted June 22, 2014 الحين حق ايش ذا؟ if isElement(VIPCar) then destroyElement(VIPCar) ماشوف له فايده هذا اضنن ي طويل العممر اذ السيارهه موجودهه من قبل ~ يخفيها ويطلعع وحدهه غيرها بس اخطآ ^ Link to comment
K1NG Posted June 22, 2014 Share Posted June 22, 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 ) السيرفر function FadyCar () triggerServerEvent ( "FadyVIPCar",localPlayer) end addEventHandler ( "onClientGUIClick", GUIEditor.button[2], FadyCar, false ) ^^ * Server Side: local VIPCar = { } addEvent( "FadyVIPCar", true ) addEventHandler ( "FadyVIPCar", root, function ( ) if ( isPedInVehicle ( source ) ) then outputChatBox ( "Exit your car first !!", source, 255, 0, 0 ) else if isElement ( VIPCar [ source ] ) then destroyElement ( VIPCar [ source ] ) end VIPCar [ source ] = createVehicle ( 411, getElementPosition ( source ) ) warpPlayerIntoVehicle ( source, VIPCar [ source ] ) text = "VIP Car" setVehiclePlateText ( VIPCar [ source ], text ) setVehicleDamageProof ( VIPCar [ source ], true ) end end ) addEventHandler ( "onVehicleExplode", resourceRoot, function ( ) destroyElement ( source ) end ) addEventHandler ( "onPlayerQuit", root, function ( ) if ( isElement ( VIPCar [ source ] ) ) then destroyElement ( VIPCar [ source ] ) end VIPCar [ source ] = nil end ) 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