Jump to content

|تمت الافاده |طلب كود ماركر الانتقال للادمن


Recommended Posts

هلا شباب

ابي كود ماركر لانتقال بس للادمن

""|يعني لما اللاعب يروح للماركر ماينقله لازم يكون ادمن |""

يقول للاعب بالشات انت ليس معك صلاحيات

بس

هذا ماركر الانتقالات "|ابيه ماينتقل الا الادمن|" اوكــ

local marker = createMarker( 4224, -1842.80005, 0.5, "cylinder", 2, 255, 255, 0, 0) 
createBlipAttachedTo(marker, 15) 
function changeLocation(person) 
        setElementPosition(person, 4224.67236, -1829.95642, 4.95625) 
end 
addEventHandler("onMarkerHit", marker, changeLocation) 

Edited by Guest
Link to comment
local marker = createMarker ( 4224, -1842.80005, 0.5, "cylinder", 2, 255, 255, 0, 0 ); 
createBlipAttachedTo ( marker, 15 ); 
  
function changeLocation ( person ) 
    if getElementType ( person ) == "player" then 
        if isObjectInACLGroup ( "user."..getAccountName ( getPlayerAccount ( person ) ), aclGetGroup ( "Console" ) ) then 
            setElementPosition ( person, 4224.67236, -1829.95642, 4.95625 ); 
        else 
            outputChatBox ( "لا يمكن إلا للأدمن الإنتقال !!!", person, 255, 0, 0, true ); 
        end 
    end 
end 
addEventHandler ( "onMarkerHit", marker, changeLocation ); 

Link to comment

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...