Jump to content

عندي مشكلة بمقر


Recommended Posts

عندي مشكلة بمقر ما يقتل شرطي حرامي مايروح للسجن يروح للمقر

local marker1 = createMarker( 1263.2087402344, 736.55596923828, 13.671875 , "cylinder", 1.3, 48, 255, 0, 255) 
local marker1v2 = createMarker( 1269.3950195313, 736.55596923828, 13.671875 , "cylinder", 1.3, 48, 255, 0, 255) 
local marker2 = createMarker( 1212.3438720703, 718.86822509766, 12.671875 , "cylinder", 3, 48, 255, 0, 255 ) 
local marker2v1 = createMarker( 1307.9173583984, 763.56182861328, 15.22812461853,"cylinder", 2, 48, 255, 0, 255 ) 
local marker2v2 = createMarker( 1307.9173583984, 791.89099121094, 15.22812461853,"cylinder", 2, 48, 255, 0, 255 ) 
local marker3 = createMarker( 1263.3000488281,805.70001220703,15.60000038147, "cylinder",10, 0, 0, 0, 0 ) 
gate = createObject (980,1263.3000488281,805.70001220703,15.60000038147,0,0,0) 
  
local groupName = 'G-T' 
  
function GateGroup1(Player) 
if getElementData(Player, "Group") == groupName then 
outputChatBox ("Welcome You to base "..groupName.." *",Player,48, 255, 0) 
moveObject (gate,1000,1263.3000488281,805.70001220703,20.60000038147) 
else 
outputChatBox ("* "..groupName.." انت لست في جروب",Player,48, 255, 0) 
end 
end 
addEventHandler( "onMarkerHit", marker3, GateGroup1 ) 
  
function GateGroup2(Player) 
if getElementData(Player, "Group") == groupName then 
moveObject (gate,1000,1263.3000488281,805.70001220703,15.60000038147) 
end 
end 
addEventHandler( "onMarkerLeave", marker3, GateGroup2 ) 
  
  
function Group( Player ) 
if getElementData(Player, "Group") == groupName then 
setPedSkin ( Player , 294 ) 
setElementHealth( Player, 200 ) 
setPedArmor ( Player, 100 ) 
else 
outputChatBox ("* "..groupName.." انت لست في جروب",Player,48, 255, 0) 
end 
end 
addEventHandler( "onMarkerHit", marker1, Group ) 
addEventHandler( "onMarkerHit", marker1v2, Group ) 
  
function fixCar( vehicleValue ) 
if getElementData(vehicleValue, "Group") == groupName then  
if isPedInVehicle (vehicleValue) then 
outputChatBox ("لقد تم تصليح السيارة",vehicleValue,48, 255, 0) 
vehicles = getElementsByType ( "vehicle" ) 
for vehicleKey, vehicleValue in ipairs(vehicles) do 
    fixVehicle ( vehicleValue ) 
end 
else 
outputChatBox ("يجب عليك ان تركب السيارة",vehicleValue,48, 255, 0) 
end 
else 
outputChatBox ("* "..groupName.." انت لست في جروب",vehicleValue,48, 255, 0) 
end 
end 
addEventHandler( "onMarkerHit", marker2, fixCar ) 
  
function fixCar( vehicleValue ) 
if getElementData(vehicleValue, "Group") == groupName then  
if isPedInVehicle (vehicleValue) then 
outputChatBox ("لقد تم تصليح الطائرة",vehicleValue,48, 255, 0) 
vehicles = getElementsByType ( "vehicle" ) 
for vehicleKey, vehicleValue in ipairs(vehicles) do 
    fixVehicle ( vehicleValue ) 
end 
else 
outputChatBox ("يجب عليك ان تركب الطائرة",vehicleValue,48, 255, 0) 
end 
else 
outputChatBox ("* "..groupName.." انت لست في جروب",vehicleValue,48, 255, 0) 
end 
end 
addEventHandler( "onMarkerHit", marker2v1, fixCar ) 
addEventHandler( "onMarkerHit", marker2v2, fixCar ) 
  
function spawn() 
if getPlayerTeam and  getTeamName ( getPlayerTeam ( source ) ) == 'No Team' then 
if getElementData(source, "Group") == groupName then  
outputChatBox ("Welcome You to base "..groupName.." * ",source,48,255,0) 
setElementPosition( source, 2365.2624511719,-1132.9306640625,1050.875 ) 
setPedSkin ( source , 294 ) 
setElementInterior ( source, 8 ) 
setElementDimension ( source, 43  ) 
setElementHealth( source, 100 ) 
setPedArmor ( source, 100 ) 
end 
end 
end 
addEventHandler( "onPlayerSpawn", getRootElement(), spawn ) 
  
G1 = createMarker (1266.1448974609,735.60241699219,15.618443489075, "arrow",1.5, 48, 255, 0,0 ) 
function G4 (source) 
    if getElementData(source, "Group") == groupName then 
        if not isPedInVehicle(source) then 
            setElementInterior ( source, 8 ) 
            setElementDimension ( source, 43  ) 
            setElementPosition ( source, 2365.2624511719,-1132.9306640625,1050.875) 
            setElementRotation(source,-0,0,3.7172462940216) 
        end 
    else 
        outputChatBox( "#ffff00.:[ This is Home For #ffffff "..groupName.." #ffff00 Group]:.", source, 48, 255, 0, true ) 
    end 
end 
addEventHandler ( "onMarkerHit", G1, G4) 
  
G2 = createMarker (2365.2666015625,-1135.5804443359,1051.8825683594, "arrow", 1.5, 48, 255, 0,0 ) 
setElementInterior ( G2, 8 ) 
setElementDimension ( G2, 43  ) 
  
function G3 (source) 
    if getElementData(source, "Group") == groupName then 
        if not isPedInVehicle(source) then 
            setElementInterior ( source, 0 ) 
            setElementDimension ( source, 0  ) 
            setElementPosition ( source,1267.3452148438,739.66674804688,14.618443489075) 
            setElementRotation(source,-0,0,177.30551147461) 
        end 
    end 
end 
addEventHandler ( "onMarkerHit", G2, G3) 
  
  

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...