Jump to content

طلب كود !@


Dr.Xen

Recommended Posts

Posted

السلام عليكم

ابي كود حماية المكان

اي واحد يلمس الماركر يرميه في مكان غير اعضاء القروب ..

ابيهم جاهزز مع اني ما اعرف اجمع فنكشنن.....

دورت بالقسم لقبت بسس فنكشنات ما اعرف وش اسوي بهم ..

Posted

https://forum.multitheftauto.com/viewtopic.php?f=160&t=68306#p639035

local groupName = "اسم القروب المسموح له بدخول المنطقة" 
local x, y, z = 0, 0, 0 -- الإحداثيات الي ينتقل لها اللاعب إذا كان مهو بالقروب 
local colShape = createColRectangle ( fX, fY, fWidth, fHeight ) 
  
addEventHandler ( "onColShapeHit", colShape, 
    function ( theElm ) 
        if ( getElementType ( theElm ) == "player" ) and ( getElementData ( theElm, "Group" ) ~= groupName ) then 
            if ( isPedInVehicle ( theElm ) ) then 
                setElementPosition ( getPedOccupiedVehicle ( theElm ), x, y, z ) 
            else 
                setElementPosition ( theElm, x, y, z ) 
            end 
        end 
    end 
) 

. عوض مكان المتغيرات بأول ثلاث أسطر فقط الي تحتهم لاتعدل فيه شي أبد أبد **

Posted
يخي اثنين ؟؟

كيف اجيبهم زي X : Y ?

يب زي X, Y

وتحط كل شي بقيمة وحدة X, Y غير اسمهم, عشان لا تتلخبط بينهم و بين K1NG سبب ان

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...