TOUNSI |, السعأدة Posted March 18, 2018 Share Posted March 18, 2018 --Clinet addEventHandler("onClientMarkerHit",marker, --عند لمس الماركر المحدد function(plr)--وظيفة if plr==localPlayer then addEventHandler("onClientPlayerDamage", root, cancel) triggerServerEvent ("AntiWeaponTounsi", localPlayer) end --نهاية الوظيفة end )--نهاية قوس الحدث addEventHandler("onClientMarkerLeave",marker, --عند لمس الماركر المحدد function(plr)--وظيفة if plr==localPlayer then removeEventHandler("onClientPlayerDamage", root, cancel) triggerServerEvent ("CancelAntiWeaponTounsi", localPlayer) end --نهاية الوظيفة end )--نهاية قوس الحدث --Server --Server addEvent( "AntiWeaponTounsi", true ) addEventHandler ( "AntiWeaponTounsi",root, function () toggleControl (source,"fire",false) toggleControl (source,"aim_weapon",false) toggleControl (source,"ain_jump",false) end ) addEvent( "CancelAntiWeaponDaery", true ) addEventHandler ( "CancelAntiWeaponTounsi",root, function () toggleControl (source,"fire",true) toggleControl (source,"aim_weapon",true) toggleControl (source,"ain_jump",true) end ) المشكلة في ممود منطقة حمايه لما اخش المركر وبطلع مره اقدر اضرب بسلاح ومره لا آرجو الحل Link to comment
^iiEcoo'x_) Posted March 18, 2018 Share Posted March 18, 2018 ركز بسطر ١٢ و ١٤ بتلاقي خطأك 1 Link to comment
TOUNSI |, السعأدة Posted March 18, 2018 Author Share Posted March 18, 2018 30 minutes ago, DABL said: ركز بسطر ١٢ و ١٤ بتلاقي خطأك اكتب ارقام زي كذا 123456789 مبفهم ارقام عربية --Server --Server addEvent( "AntiWeaponTounsi", true ) addEventHandler ( "AntiWeaponTounsi",root, function () toggleControl (source,"fire",false) toggleControl (source,"aim_weapon",false) toggleControl (source,"ain_jump",false) end ) addEvent( "CancelAntiWeaponTounsi", true ) addEventHandler ( "CancelAntiWeaponTounsi",root, function () toggleControl (source,"fire",true) toggleControl (source,"aim_weapon",true) toggleControl (source,"ain_jump",true) end ) ضض1 آشكرك تم حل المشكلة لازم قبل مانزل مساعده بروح اشوف طبيب عيون هه #delete 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