Do_De<3 Posted February 15, 2014 Share Posted February 15, 2014 السسلام عليكمم ورحمة الله وبركاتهه آخبآركمم قآيزز <3 الكود ذآ فيهه مشكلة ؟ ؟ ركبتهه في سيرفري وخشيت منطقةة والتيم حقي انكسار ولا زبط : / function (player) if getPlayerTeam ( player ) and getPlayerTeam ( player ) == getTeamFromName ( "enksar" ) then outputChatBox( "* تم دخولك للمنطقة المحمية", source, math.random(255), math.random(255), math.random(255), true ) else outputChatBox( "* انت غير موجود في تيم انكسار ", source, math.random(255), math.random(255), math.random(255), true ) end end ) Link to comment
K1NG Posted February 15, 2014 Share Posted February 15, 2014 السسلام عليكمم ورحمة الله وبركاتههآخبآركمم قآيزز <3 الكود ذآ فيهه مشكلة ؟ ؟ ركبتهه في سيرفري وخشيت منطقةة والتيم حقي انكسار ولا زبط : / function (player) if getPlayerTeam ( player ) and getPlayerTeam ( player ) == getTeamFromName ( "enksar" ) then outputChatBox( "* تم دخولك للمنطقة المحمية", source, math.random(255), math.random(255), math.random(255), true ) else outputChatBox( "* انت غير موجود في تيم انكسار ", source, math.random(255), math.random(255), math.random(255), true ) end end ) الكود ناقص، إتأكد من إنكـ ناسخه كامل + وش تبيه يسوي للاعب الي دخل المنطقة وما كان بداخل التيم ؟ Link to comment
jafar Posted February 15, 2014 Share Posted February 15, 2014 (edited) -- Server Side ~! addEventHandler ( "onMarkerHit", إسم الماركر, function ( element ) if getElementType ( element ) == "player" then if getPlayerTeam ( element ) and getPlayerTeam ( element ) == getTeamFromName ( "enksar" ) then outputChatBox ( "* تم دخولك للمنطقة المحمية", element, math.random ( 255 ), math.random ( 255 ), math.random ( 255 ), true ); else outputChatBox ( "* انت غير موجود في تيم انكسار ", element, math.random ( 255 ), math.random ( 255 ), math.random ( 255 ), true ); end end end ); Edited February 15, 2014 by Guest Link to comment
Do_De<3 Posted February 15, 2014 Author Share Posted February 15, 2014 السسلام عليكمم ورحمة الله وبركاتههآخبآركمم قآيزز <3 الكود ذآ فيهه مشكلة ؟ ؟ ركبتهه في سيرفري وخشيت منطقةة والتيم حقي انكسار ولا زبط : / function (player) if getPlayerTeam ( player ) and getPlayerTeam ( player ) == getTeamFromName ( "enksar" ) then outputChatBox( "* تم دخولك للمنطقة المحمية", source, math.random(255), math.random(255), math.random(255), true ) else outputChatBox( "* انت غير موجود في تيم انكسار ", source, math.random(255), math.random(255), math.random(255), true ) end end ) الكود ناقص، إتأكد من إنكـ ناسخه كامل + وش تبيه يسوي للاعب الي دخل المنطقة وما كان بداخل التيم ؟ انا مسسوي مآركر اول مايخشه وهو مو في تيم انكسار يطلع في الشات انت غير موجود في تيم انكسار وطلب ثآني ><" ابي اذا صدم بالسيارةة يسحب سيارته لاهنتم <3 Link to comment
jafar Posted February 15, 2014 Share Posted February 15, 2014 onVehicleDamage destroyElement Link to comment
Do_De<3 Posted February 15, 2014 Author Share Posted February 15, 2014 onVehicleDamagedestroyElement الكود الاول حق الماركر زبطط : ) هذآ ابحاول فيهه اذا ماعرفت طرحت كودي وشفتوهه انتم ضض2 Link to comment
Do_De<3 Posted February 15, 2014 Author Share Posted February 15, 2014 onVehicleDamagedestroyElement اطرحح onVehicleDamage لان الويكي عندي رآيحح فيهآ >< " اطرحه من الويكي Link to comment
al-Kobra Posted February 15, 2014 Share Posted February 15, 2014 الحدث الا هو اذا صاد السيارة ضرر Link to comment
Do_De<3 Posted February 15, 2014 Author Share Posted February 15, 2014 الحدث الا هو اذا صاد السيارة ضرر يب اذا جاء السيارة ضرر يسحب السيارة بشرط ان السيارةة تكون رقمهآ 411 Link to comment
' ρяofзśŝoя 亗 Posted February 15, 2014 Share Posted February 15, 2014 الحدث الا هو اذا صاد السيارة ضرر يب اذا جاء السيارة ضرر يسحب السيارة بشرط ان السيارةة تكون رقمهآ 411 removeVehicleUpgrade # Link to comment
al-Kobra Posted February 15, 2014 Share Posted February 15, 2014 (edited) addEventHandler( "onVehicleDamage", getRootElement(), function ( ) for i,v in ipairs ( getElementsByType ( vehicle ) ) do local lool = getVehicleOccupant( source ) if lool and getElementModel ( v ) == 411 then destroyElement ( v ) end end end ) جرب , Edited February 15, 2014 by Guest Link to comment
Do_De<3 Posted February 15, 2014 Author Share Posted February 15, 2014 addEventHandler( "onVehicleDamage", getRootElement(), function ( ) for i,v in ipairs ( getElementByType ( vehicle ) ) do local lool = getVehicleOccupant( source ) if lool and getElementModel ( v, 411 ) then destroyElement ( v ) end end end ) جرب , يقول خطآ : ) الخطا ذذ getElementByType Link to comment
Do_De<3 Posted February 15, 2014 Author Share Posted February 15, 2014 وبعدينن صآرت لكل السيارات مو لسيارة معينة >< " الي هي رقم 411 Link to comment
#DRAGON!FIRE Posted February 15, 2014 Share Posted February 15, 2014 وبعدينن صآرت لكل السيارات مو لسيارة معينة >< "الي هي رقم 411 انت تبيها لسيارة محددة ؟ Link to comment
Do_De<3 Posted February 15, 2014 Author Share Posted February 15, 2014 وبعدينن صآرت لكل السيارات مو لسيارة معينة >< "الي هي رقم 411 انت تبيها لسيارة محددة ؟ يب : ) Link to comment
#DRAGON!FIRE Posted February 15, 2014 Share Posted February 15, 2014 (edited) addEventHandler( "onVehicleDamage", root, function ( ) if ( source == vehicle ) then if ( getVehicleController ( source ) ) then destroyElement ( source ) end end end ) Edited February 15, 2014 by Guest Link to comment
K1NG Posted February 15, 2014 Share Posted February 15, 2014 الحدث الا هو اذا صاد السيارة ضرر يب اذا جاء السيارة ضرر يسحب السيارة بشرط ان السيارةة تكون رقمهآ 411 removeVehicleUpgrade # ?? addEventHandler( "onVehicleDamage", getRootElement(), function ( ) for i,v in ipairs ( getElementsByType ( vehicle ) ) do local lool = getVehicleOccupant( source ) if lool and getElementModel ( v ) == 411 then destroyElement ( v ) end end end ) جرب , ?? الحدث الا هو اذا صاد السيارة ضرر يب اذا جاء السيارة ضرر يسحب السيارة بشرط ان السيارةة تكون رقمهآ 411 * Server Side: addEventHandler ( "onVehicleDamage", root, function ( ) if ( getVehicleController ( source ) ) and ( getElementModel ( source ) == 411 ) then destroyElement ( source ) end end ) Link to comment
Do_De<3 Posted February 15, 2014 Author Share Posted February 15, 2014 addEventHandler ( "onVehicleDamage", root, function ( ) if ( getVehicleController ( source ) ) and ( getElementModel ( source ) == 411 ) then destroyElement ( source ) end end ) زبط : ) طيب كنق فيهه كود اذا احد ضغط زر يطفي اف1 و 2 و3 و4 و5 ><" وش الكود ؟ Link to comment
#DRAGON!FIRE Posted February 15, 2014 Share Posted February 15, 2014 طيب كنق فيهه كود اذا احد ضغط زر يطفي اف1 و 2 و3 و4 و5 ><" وش الكود ؟ setElementData - getElementData or unbindKey Link to comment
Do_De<3 Posted February 15, 2014 Author Share Posted February 15, 2014 اوكي ثآنكسس لكل <3 Link to comment
K1NG Posted February 15, 2014 Share Posted February 15, 2014 addEventHandler ( "onVehicleDamage", root, function ( ) if ( getVehicleController ( source ) ) and ( getElementModel ( source ) == 411 ) then destroyElement ( source ) end end ) زبط : ) طيب كنق فيهه كود اذا احد ضغط زر يطفي اف1 و 2 و3 و4 و5 ><" وش الكود ؟ * Client Side: keyTable = { "F1", "F2", "F3", "F4", "F5" } function cancelKeys ( button ) for _, v in ipairs ( keyTable ) do if ( button == v ) then cancelEvent ( ) end end end addEventHandler ( "onClientGUIClick", اسم الزر, function ( ) addEventHandler ( "onClientKey", root, cancelKeys ) end, false ) .فقط ضع إسم الزر في سطر رقم 11 Link to comment
' ρяofзśŝoя 亗 Posted February 15, 2014 Share Posted February 15, 2014 function destroyVehiclesOfModel(modelID) local vehicles = getElementsByType("vehicle") for i,v in ipairs(vehicles) do if (getElementModel(v) == modelID) then destroyElement(v) end end end destroyVehiclesOfModel(411) addEventHandler("onVehicleDamage", root, destroyVehiclesOfModel) جرب ، # 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