CRoW,,# Posted February 14, 2013 Share Posted February 14, 2013 (edited) ابي كود اذا واحد دخل منطقة معينة يموت بس مو كل الاعبين ابي تيم معين هو الي م يموت Edited February 15, 2013 by Guest Link to comment
==>ҭᾄlᾄl Posted February 14, 2013 Share Posted February 14, 2013 marker = createMarker ( 1791.1716308594, 1372.0931396484, 6.7419948577881, "cylinder", 4, 255, 255, 0, 170 ) -------- function kill(thePlayer) local accName = getAccountName (getPlayerAccount(thePlayer)) if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then killPed ( thePlayer ) end end addEventHandler( "onMarkerHit", marker, kill ) By 3nad Link to comment
iPrestege Posted February 14, 2013 Share Posted February 14, 2013 createColRectangle isObjectInACLGroup killPed "onColShapeHit" -- All Server Side! Link to comment
CRoW,,# Posted February 14, 2013 Author Share Posted February 14, 2013 ابيهه تيم مو قروب و اسف اذا تعبتكم Link to comment
|Mr|-Talal07-| Posted February 14, 2013 Share Posted February 14, 2013 يا شباب الاخ يقول تيم مو قروب استخدم getPlayerTeam getTeamFromName Link to comment
iPrestege Posted February 14, 2013 Share Posted February 14, 2013 marker = createMarker ( x,y,z, "cylinder", 2, 255, 255, 0, 170 ) addEventHandler( "onMarkerHit", marker, function (player) if (getElementType (player) == "player") then local team = getPlayerTeam (player) if ( team and getTeamName ( team ) ~= "اسم التيم" ) then killPed (player) end end end ) للمعلومية يالغالي لازم تكون بـ تيم عشان تموت يعني اذا مماكنت بتيم ماراح تموت (= ! واذا كنت بتيم الاسم اللي انت حاطة ماراح تموت واذا كنت بتيم وماحطيتة انت بالمكان فوق راح تموت وصلت ذذ Link to comment
yazan Posted February 14, 2013 Share Posted February 14, 2013 هههه اوضحلك كلام برستيج بطريقه اوضح يعني لزم يكون سيرفرك تيمات كمله لو واحد ما لهتيم ما بيسير له شي و لو من تيم ثاني بيموت ض1 Link to comment
CRoW,,# Posted February 14, 2013 Author Share Posted February 14, 2013 لا انا م ابي ماركر بمجرد دخوله المنطقة يموت مثل الساحة الخضرا Link to comment
PaiN^ Posted February 14, 2013 Share Posted February 14, 2013 (edited) إذا تبي ماحد يقدر يضرب إلا الشرطة marker = createMarker( X, Y, Z, "cylinder", 50, 0, 255, 0, 0 ) addEventHandler( "onMarkerHit", root, function ( ) if ( getElementType ( source ) == "player" ) then local team = getPlayerTeam ( source ) if ( team and getTeamFromName ( team ) ~= "Police" ) then toggleControl( source, "fire", false ) toggleControl( source, "aim_weapon", false ) end end end ) addEventHandler( "onMarkerLeave", root, function ( ) if ( getElementType ( source ) == "player" ) then toggleControl( source, "fire", true ) toggleControl( source, "aim_weapon", true ) end end ) وإذا شي ثاني, ياليت توضح أكثر Edited February 14, 2013 by Guest Link to comment
iPrestege Posted February 14, 2013 Share Posted February 14, 2013 -- Server Side ColShape = createColRectangle (x,y, Width, Height ) Radar = createRadarArea (leftX,bottomY,sizeX,sizeY,r,g, b,a) --The Arguments . addEventHandler( "onColShapeHit", ColShape, function (player) if (getElementType (player) == "player") then local team = getPlayerTeam (player) if ( team and getTeamName ( team ) ~= "اسم التيم" ) then killPed (player) end end end ) Link to comment
TAPL Posted February 14, 2013 Share Posted February 14, 2013 إذا تبي ماحد يقدر يضرب إلا الشرطة marker = createMarker( X, Y, Z, "cylinder", 50, 0, 255, 0, 0 ) addEventHandler( "onMarkerHit", root, function ( ) if ( getElementType ( source ) == "player" ) then local team = getPlayerTeam ( source ) if ( team and getTeamFromName ( team ) ~= "Police" ) then toggleControl( source, "fire", false ) toggleControl( source, "aim_weapon", false ) end end end ) وإذا شي ثاني, ياليت توضح أكثر https://wiki.multitheftauto.com/wiki/OnMarkerHit The source of this event is the marker that got hit by the element. بالنسبة للسطر ذا if ( team and getTeamFromName ( team ) ~= "Police" ) then شوف ردي بالموضوع ذا viewtopic.php?f=160&t=54250&start=15 Link to comment
CRoW,,# Posted February 14, 2013 Author Share Posted February 14, 2013 الحين وش دخل ذا الكود بالموضوع Link to comment
iPrestege Posted February 14, 2013 Share Posted February 14, 2013 مو تقول تبي كود زي الجرين زون -_-"؟ تسوي كول شيب وتسوي منطقة خضراء ذا الكود يسوي لك مثل الوظيفة !؟ Link to comment
PaiN^ Posted February 14, 2013 Share Posted February 14, 2013 مشكووور تابل + أدري غلبتك معي بس والله ودي اتعلمـ بسرعة Link to comment
CRoW,,# Posted February 14, 2013 Author Share Posted February 14, 2013 ايهه ابيه مثل كول شيب اذا دخل المنطقة يموت عدا التيم الي انا اسويه Link to comment
iPrestege Posted February 14, 2013 Share Posted February 14, 2013 -- Server Side ColShape = createColRectangle (احداثي x , احداثي y , ارتفاع المساحة , عرض المساحة ) addEventHandler( "onColShapeHit", ColShape, function (player) if (getElementType (player) == "player") then local team = getPlayerTeam (player) if ( team and getTeamName ( team ) ~= "اسم التيم" ) then killPed (player) end end end ) Link to comment
CRoW,,# Posted February 14, 2013 Author Share Posted February 14, 2013 مشكور م تقصر اسف تعبتك معك 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