Jump to content

x[مساعدة بسييطة]x


Doffy

Recommended Posts

ابي اي احد مو كونسول يجي عند الكول شيب هذا يرجعه لورا سواء اكان راكب سيارة او واقف

سيرفر
 

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

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