Jump to content

مســاعدة :(


Recommended Posts

االسلام عليكم

يا شباب مدري اذا هاذ الكود صح ولا لا ياليت تشوفوه

local groupName = '[saW]' 
tawa = createMarker(86.5,1341.8000488281,1087.3000488281,"cylinder",1,0,255,0,255) 
health = createMarker(1517.3000488281,567.40002441406,180.60000610352,"cylinder",2,0,0,0,0) 
aaa = createMarker(1520.5,592.20001220703,180.60000610352,"cylinder",2,0,0,0,0) 
setElementInterior ( tawa, 9 ) 
setElementDimension ( tawa, 5725  ) 
  
addEventHandler("onMarkerHit",tawa, 
function (thePlayer) 
    if getPlayerTeam( thePlayer ) and getTeamName( getPlayerTeam( thePlayer ) ) == 'No Team' and getElementData ( thePlayer , "Group" ) == groupName then 
setElementInterior (thePlayer,0) 
setElementDimension ( thePlayer, 0) 
setElementPosition( thePlayer, 1515,581,183 ) 
end 
end 
) 
addEventHandler("onMarkerHit",health, 
function (thePlayer) 
        if getElementData( thePlayer, 'Group' ) == groupName and getPlayerTeam( thePlayer ) and getTeamName( getPlayerTeam( thePlayer ) ) == 'No Team' then 
            if isPedInVehicle( thePlayer ) then return end 
            setElementHealth( thePlayer, 100 ) 
            setPedArmor( thePlayer, 100 ) 
end 
end 
) 
addEventHandler("onMarkerHit",aaa, 
function (thePlayer) 
        if getElementData( thePlayer, 'Group' ) == groupName and getPlayerTeam( thePlayer ) and getTeamName( getPlayerTeam( thePlayer ) ) == 'No Team' and not isPedInVehicle( thePlayer ) then 
            setElementPosition( thePlayer, 84.890701293945, 1324.9881591797, 1083.859375 ) 
            setElementInterior ( thePlayer, 9 ) 
            setElementDimension ( thePlayer, 5725  ) 
            end 
            end 
            ) 

Link to comment
local groupName = '[saW]' 
local tawa = createMarker(86.5,1341.8000488281,1087.3000488281,"cylinder",1,0,255,0,255) 
local health = createMarker(1517.3000488281,567.40002441406,180.60000610352,"cylinder",2,0,0,0,0) 
local aaa = createMarker(1520.5,592.20001220703,180.60000610352,"cylinder",2,0,0,0,0) 
setElementInterior ( tawa, 9 ) 
setElementDimension ( tawa, 5725  ) 
  
addEventHandler("onMarkerHit",root, 
function ( thePlayer ) 
    if getElementType ( thePlayer ) == 'player' and getPlayerTeam ( thePlayer ) and getTeamName ( getPlayerTeam ( thePlayer ) ) == 'No Team' and getElementData ( thePlayer,'Group' ) == groupName then 
    if ( source == tawa ) then 
        setElementInterior ( thePlayer,0 ) 
        setElementDimension ( thePlayer, 0 ) 
        setElementPosition( thePlayer, 1515,581,183 ) 
    elseif ( source == health ) then 
        if isPedInVehicle( thePlayer ) then return end 
        setElementHealth( thePlayer, 100 ) 
        setPedArmor( thePlayer, 100 ) 
    elseif ( source == aaa ) then 
        setElementPosition( thePlayer, 84.890701293945, 1324.9881591797, 1083.859375 ) 
        setElementInterior ( thePlayer, 9 ) 
        setElementDimension ( thePlayer, 5725  ) 
        end 
    end 
end 
) 

كذا مختصر ومرتب :wink: !

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