d43dr4 Posted December 6, 2012 Share Posted December 6, 2012 نعم معه حق نفس الخطا سطر 16 وانا مسويه سيرفر Link to comment
AhmadQTR Posted December 6, 2012 Share Posted December 6, 2012 نعم معه حقنفس الخطا سطر 16 وانا مسويه سيرفر يمكن كذا function click(m,s,p) if(getPlayerTeam(p)==getTeamFromName('Police'))then if(m=='right')then if(getElementType(source)=='vehicle')then destroyElement(source) return end if(getElementType(source)=='player')then setElementHealth(source,0) return end end end end function cursor(player, key) if isCursorShowing(player) then showCursor(false) else showCursor(true) end end bindKey(source,"a","down",cursor) Link to comment
3NAD Posted December 6, 2012 Share Posted December 6, 2012 -- Server Side addEventHandler ( "onElementClicked", root, function ( _, _, thePlayer ) acc = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user.".. acc, aclGetGroup ( "Police" ) ) then if getElementType ( source ) == "player" then killPed ( source, thePlayer ) elseif getElementType ( source ) == "vehicle" then destroyElement ( source ) end end end ) -- Client Side bindKey ( "a", "down", function ( ) showCursor ( not isCursorShowing() ) end ) Link to comment
AL-SAYED Posted December 6, 2012 Author Share Posted December 6, 2012 [2012-12-07 14:59:32] WARNING: 6520\2.lua:2: Bad argument @ 'bindKey' Link to comment
AL-SAYED Posted December 6, 2012 Author Share Posted December 6, 2012 ما يشتغل حتى المؤشر ما يطلع Link to comment
d43dr4 Posted December 6, 2012 Share Posted December 6, 2012 كفووووووووووووووو عناد بارك الله فيك Link to comment
3NAD Posted December 6, 2012 Share Posted December 6, 2012 ما يشتغل حتى المؤشر ما يطلع الأول سيرفر والثاني كلنت اطرح تعريف الميتا حقك Link to comment
d43dr4 Posted December 6, 2012 Share Posted December 6, 2012 يا عناد يمكن هو ماسوى الميتا صح انا سويته صح والمود شغال %100 شكرا Link to comment
iPrestege Posted December 6, 2012 Share Posted December 6, 2012 ?? مجرب و شغال +1 = http://www.mediafire.com/?44b876bm459myhl Link to comment
|Mr|-Talal07-| Posted December 6, 2012 Share Posted December 6, 2012 ترا سويته لاني طفشان addEventHandler("onElementClicked",root, function (_,_,player) if ( getElementData(player,"Can") == true ) then if ( getElementType(source) == "player" ) then killPed(source,player) elseif ( getElementType(source) == "vehicle" ) then destroyElement(source) end end end ) function cursor(player) if isCursorShowing(player) then showCursor(false) else showCursor(true) end end addEventHandler("onPlayerLogin",root, function (_,acc) if isObjectInACLGroup("user." .. getAccountName(acc),aclGetGroup("Police")) then setElementData(source,"Can",true) bindKey(source,"a","down",cursor) end end ) لازم يكون في قروب الشرطة ذا شغال و مضمون انت عندك مشكله و ورني وش يجي في الـ /debugscript 3 Link to comment
TAPL Posted December 9, 2012 Share Posted December 9, 2012 ترا سويته لاني طفشان addEventHandler("onElementClicked",root, function (_,_,player) if ( getElementData(player,"Can") == true ) then if ( getElementType(source) == "player" ) then killPed(source,player) elseif ( getElementType(source) == "vehicle" ) then destroyElement(source) end end end ) function cursor(player) if isCursorShowing(player) then showCursor(false) else showCursor(true) end end addEventHandler("onPlayerLogin",root, function (_,acc) if isObjectInACLGroup("user." .. getAccountName(acc),aclGetGroup("Police")) then setElementData(source,"Can",true) bindKey(source,"a","down",cursor) end end ) لازم يكون في قروب الشرطة ذا شغال و مضمون انت عندك مشكله و ورني وش يجي في الـ /debugscript 3 showCursor عندك خطأ في في السيرفر مطلوب لاعب و أنت مو حاط Link to comment
|Mr|-Talal07-| Posted December 10, 2012 Share Posted December 10, 2012 صح كلامك يا تابل بس عشان انا متعود على ذي الوظيفة في الكلينت تم تعديل الكود Link to comment
AL-SAYED Posted December 16, 2012 Author Share Posted December 16, 2012 مشكله ان اذا طلع مؤشرغير مؤشر حق الشرطة يعطي سلاب بالخطأ او يسحب السيارة ممكن حل اذا يوجد؟ Link to comment
TAPL Posted December 16, 2012 Share Posted December 16, 2012 مشكله ان اذا طلع مؤشرغير مؤشر حق الشرطة يعطي سلاب بالخطأ او يسحب السيارة ممكن حل اذا يوجد؟ حط الكود الي تستخدمه Link to comment
AL-SAYED Posted December 16, 2012 Author Share Posted December 16, 2012 (edited) addEventHandler ( "onElementClicked", root, function ( _, _, thePlayer ) acc = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user.".. acc, aclGetGroup ( "admin" ) ) then if getElementType ( source ) == "player" then killPed ( source, thePlayer ) elseif getElementType ( source ) == "vehicle" then destroyElement ( source ) end end end ) سوري نسيت السيرفر bindKey ( "m", "down", function ( ) showCursor ( not isCursorShowing() ) end ) Edited December 16, 2012 by Guest Link to comment
AL-SAYED Posted December 16, 2012 Author Share Posted December 16, 2012 هلووووووووووووو! Link to comment
AL-SAYED Posted December 17, 2012 Author Share Posted December 17, 2012 شباب الا يعرف لا يبخل Link to comment
abu5lf Posted December 17, 2012 Share Posted December 17, 2012 addEventHandler ( "onElementClicked", root, function ( _, _, thePlayer ) acc = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user.".. acc, aclGetGroup ( "Admin" ) ) then if getElementType ( source ) == "player" then killPed ( source, thePlayer ) elseif getElementType ( source ) == "vehicle" then destroyElement ( source ) end end end ) بس المفروض تتحق من الماوس مثلا اذا بغيت كلك يمين هو الي يقتل وكلك يسار يسحب . Link to comment
кιηg-αвα∂у Posted December 17, 2012 Share Posted December 17, 2012 addEventHandler ( "onElementClicked", root, function ( _, _, thePlayer ) acc = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user.".. acc, aclGetGroup ( "Admin" ) ) then if getElementType ( source ) == "player" then killPed ( source, thePlayer ) elseif getElementType ( source ) == "vehicle" then destroyElement ( source ) end end end ) بس المفروض تتحق من الماوس مثلا اذا بغيت كلك يمين هو الي يقتل وكلك يسار يسحب . a وتحدد انه مايسحب ويتقل الى اذا طلعت الماوس بي لأنه لو فتحت لوحة وضغطت زر وقدامك احد يقتله Link to comment
abu5lf Posted December 17, 2012 Share Posted December 17, 2012 الحل شباب حل ايش ماتشوف الكود الي فوق حاطه ؟؟ 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