Doffy Posted January 25, 2017 Share Posted January 25, 2017 ابي اي احد مو كونسول يجي عند الكول شيب هذا يرجعه لورا سواء اكان راكب سيارة او واقف سيرفر c = createColCuboid (284.39297,1789.14819,1,90,100,255) s = createRadarArea (284.39297,1789.14819,90,100,255,255,255, 255) setElementData (s,"zombieProof",true) addEventHandler ("onColShapeHit",c, function (s) if getElementType (s) == "ped" and getElementData(s,"zombie") then killPed(s) elseif getElementType (s) == "player" then toggleControl (s,"fire",false) end end) addEventHandler ("onColShapeLeave",c, function (s) if getElementType (s) == "ped" and getElementData(s,"zombie") then killPed(s) elseif getElementType (s) == "player" then toggleControl(s,"fire",true) end end) Link to comment
' A F . Posted January 25, 2017 Share Posted January 25, 2017 getPlayerAccount isGuestAccount getAccountName isObjectInACLGroup setElementPosition Link to comment
Doffy Posted January 25, 2017 Author Share Posted January 25, 2017 43 minutes ago, Default said: getPlayerAccount isGuestAccount getAccountName isObjectInACLGroup setElementPosition طيب ولو جا يبي يحاول يدخل بسيارة ؟؟ Link to comment
Doffy Posted January 25, 2017 Author Share Posted January 25, 2017 6 hours ago, Default said: getVehicleController معرفت اسويه اخوية هذي محاولتي c = createColCuboid (284.39297,1789.14819,1,90,100,255) s = createRadarArea (284.39297,1789.14819,90,100,255,255,255, 255) setElementData (s,"zombieProof",true) addEventHandler ("onColShapeHit",c, function (s) if getElementType (s) == "ped" and getElementData(s,"zombie") then killPed(s) elseif getElementType (s) == "player" then if isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( s ) ), aclGetGroup ( "Console" ) ) then toggleControl (s,"fire",false) elseif setElementPosition ( s,268.46097,1821.98267,17.64063 ) end end end) addEventHandler ("onColShapeLeave",c, function (s) if getElementType (s) == "ped" and getElementData(s,"zombie") then killPed(s) elseif getElementType (s) == "player" then toggleControl(s,"fire",true) end end) 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