Jump to content

طلب كود


Recommended Posts

السلام عليكم

انا ابغى كود الماركر

لو لمسته ينقلك بس لو كنت في قروب معين واذاما كنت في القروب تجي نافذة

وانا ابي احط اكثر من قروب

لو كنت في واحدمنهم ينقلني

Link to comment

طيب ذاالكود صح

marker = createMarker ( -3932.8427734375, -3015.9045410156, 350.49992553711, "arrow", 2, 255, 255, 0 ) 
 if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(player)), aclGetGroup( "Console" ) ) then 
setElementPosition( -3932.8427734375, -3015.9045410156, 350.49992553711) 
else 
outputChatBox("your not Admin", 255, 100, 0, true) 
end 
end 
addEventHandler("onClientMarkerHit", marker, 

Link to comment

طيب ضا الكودصح

اذا خطأ عدله

marker = createMarker ( -3932.8427734375, -3015.9045410156, 350.49992553711, "arrow", 2, 255, 255, 0 ) 
 if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(player)), aclGetGroup( "Console" ) ) then 
setElementPosition( -3932.8427734375, -3015.9045410156, 350.49992553711) 
else 
outputChatBox("your not Admin", 255, 100, 0, true) 
end 
end 
addEventHandler("onMarkerHit", marker) 

Link to comment
طيب ضا الكودصح

اذا خطأ عدله

marker = createMarker ( -3932.8427734375, -3015.9045410156, 350.49992553711, "arrow", 2, 255, 255, 0 ) 
 if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(player)), aclGetGroup( "Console" ) ) then 
setElementPosition( -3932.8427734375, -3015.9045410156, 350.49992553711) 
else 
outputChatBox("your not Admin", 255, 100, 0, true) 
end 
end 
addEventHandler("onMarkerHit", marker) 

-- Server Side --

marker = createMarker(-3932.84, -3015.9, 350.5, "arrow", 2, 255, 255, 0) 
  
function onHit(player) 
     if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Console")) then 
          setElementPosition(player, -3932.84, -3015.9, 350.5) 
     else 
          outputChatBox("your not Admin", player, 255, 100, 0, true) 
     end 
end 
addEventHandler("onMarkerHit", marker, onHit) 

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