Ahmed Ly Posted January 25, 2016 Share Posted January 25, 2016 السلام عليكم انا صنعت المود هدا لم تكتب فياف8 يصنع لك ماركه بس نبيه لي ادمنيه بس مو عصابة قوست function e ( player ) x,y,z = getElementPosition (thePlayer) local marker = createMarker (x,y,z, "cylinder", 2, 77 , 99, 31, 224) if getElementType ( player ) == "player" then if getElementData( player ,'NameGroup') == 'GhosT' then setElementHealth ( player, 100 ) setPedArmor ( player, 100 ) setPedSkin ( player, 230 ) else outputChatBox ( "يجب ان تكون فى عصابه GhosT", player, 244 , 87, 10, true ) end end end addEventHandler ( "onMarkerHit", marker,e,root) addCommandHandler ("marker",e) Link to comment
#Soking Posted January 25, 2016 Share Posted January 25, 2016 function e ( player ) x,y,z = getElementPosition (thePlayer) local marker = createMarker (x,y,z, "cylinder", 2, 77 , 99, 31, 224) if getElementType ( player ) == "player" then local Acc_Name = getAccountName ( getPlayerAccount ( source )) if isObjectInACLGroup ("user."..Acc_Name, aclGetGroup ( "Console" ) ) then setElementHealth ( player, 100 ) setPedArmor ( player, 100 ) setPedSkin ( player, 230 ) else outputChatBox ( "Only The Console", player, 244 , 87, 10, true ) end end end addEventHandler ( "onMarkerHit", marker,e,root) addCommandHandler ("marker",e) غيير مجرب , بالتوفيق , Link to comment
a7zan Posted January 25, 2016 Share Posted January 25, 2016 ^ ممكن تقول ليه حاط getPlayerAccount + getAccountName ? Link to comment
#|_oskar_|# Posted January 25, 2016 Share Posted January 25, 2016 function e ( player,cmd) local x, y, z = getElementPosition (player) -- get the player's position local marker = createMarker (x + 2, y + 2, z, "cylinder", 2.5, 255 ,0,0, 224 ) addEventHandler ( "onMarkerHit",marker,hit) end addCommandHandler ("marker",e) ----- function hit( player ) if getElementType ( player ) == "player" then local acc = getAccountName (getPlayerAccount(player) ) if isObjectInACLGroup ("user."..acc, aclGetGroup ('Admin') ) then setElementHealth ( player, 100 ) setPedArmor ( player, 100 ) setPedSkin ( player, 230 ) outputChatBox ( "تم", player, 244 , 87, 10, true ) else outputChatBox ( "انت لست ادمن", player, 244 , 87, 10, true ) end end end Link to comment
Ahmed Ly Posted January 25, 2016 Author Share Posted January 25, 2016 function e ( player,cmd) local x, y, z = getElementPosition (player) -- get the player's position local marker = createMarker (x + 2, y + 2, z, "cylinder", 2.5, 255 ,0,0, 224 ) addEventHandler ( "onMarkerHit",marker,hit) end addCommandHandler ("marker",e) ----- function hit( player ) if getElementType ( player ) == "player" then local acc = getAccountName (getPlayerAccount(player) ) if isObjectInACLGroup ("user."..acc, aclGetGroup ('Admin') ) then setElementHealth ( player, 100 ) setPedArmor ( player, 100 ) setPedSkin ( player, 230 ) outputChatBox ( "تم", player, 244 , 87, 10, true ) else outputChatBox ( "انت لست ادمن", player, 244 , 87, 10, true ) end end end امنور والله Link to comment
#|_oskar_|# Posted January 25, 2016 Share Posted January 25, 2016 امنور والله حياك الله 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