#BrosS Posted February 27, 2017 Share Posted February 27, 2017 2 hours ago, DmAr511 said: تفضل -- function createTeamsOnStart () createTeam ( "Staff", 255, 255, 245 ) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), createTeamsOnStart ) addEventHandler ( "onClientPlayerDamage",root, function () if getElementData(source,"invincible") then cancelEvent() setElementHealth ( source, 200 ) end end) --serverside function da() end addEvent("onmta", true) addEventHandler("onmta", getRootElement(), da) function ad() end addEvent("offmta", true) addEventHandler("offmta", getRootElement(), ad) --client vuelo = false function mta() if (vuelo == false) then vuelo = false local vehicle = getPedOccupiedVehicle(localPlayer) local team = getPlayerTeam(localPlayer) if ( isElement(vehicle) ) and (isVehicleOnGround( vehicle )) and ( getTeamName(team) ) and ( getTeamName(team) == "Staff" ) then setWorldSpecialPropertyEnabled("aircars", true) triggerServerEvent("onmta", getLocalPlayer()) else vuelo = false setWorldSpecialPropertyEnabled("aircars", false) triggerServerEvent("offmta", getLocalPlayer()) end end end addCommandHandler("fly", mta) --أذ مظبط استخدم كود كونان وش التخبيص ده الله يهديك 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