Jump to content

x[طلب] x فآنشنات


Recommended Posts

local WarMission = createMarker(2727.24390,-1826.40039,11.84375, "cylinder", 2, 255, 150, 250, 150) 
  
addEventHandler("onResourceStart", resourceRoot, 
function() 
    outputChatBox("تم بددآ المهم اذهب الى المآركه  لـدخول الى المهمه", root, 50, 30, 255) 
    outputChatBox("تم تغشيل المهمه", root, 0, 150, 255) 
        setTimer(checkForWinner, 1000, 1, true) 
    end, 10*60*1000, 1) 
  
local war = { 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
} 
  
  
  
  
function War(player) 
    if getElementType(player) == "player" and not isPedInVehicle(player) then 
            if source == WarMission then 
             if player == 32 then return outputChatBox ( 'العدد مكتمل لايمكنك دخول المهمه', player ) end 
                local x, y, z = unpack(war[math.random(#war)]) 
                setElementPosition(player, x, y, z) 
                setPlayerSkin (player, 2) 
                setElementDimension ( player, 6 ) 
                toggleControl ( player, "fire", false ) -----------  هنا مايقدر يطلق او شيء الى بعد ماتبدا المهم الى هي بعد 2 دقيقه  
                setElementFrozen(player, true) 
                setTimer(setElementFrozen(player,false),50000,1) 
            end  
        end     
    end 
    addEventHandler( "onMarkerHit", WarMission, War ) 
                
    
  
  
  
  
  
buttons = { 
    ['F1'] = true, 
    ['F2'] = true, 
    ['F3'] = true, 
    ['F4'] = true, 
    ['F5'] = true, 
    ['F6'] = true, 
    ['F7'] = true, 
    ['F8'] = true, 
    ['F9'] = true, 
    ['F10'] = true, 
    ['F11'] = true, 
    ['F12'] = true, 
  
} 
      
    addEventHandler( 'onClientKey', root, 
    function (button , prees) 
        if prees and getElementDimension(localPlayer) == 6 then 
            if buttons[button] then 
                     outputChatBox("غير مصرح لك بفتح اللوحة الان ", source, 255, 0, 0,true) 
                cancelEvent() 
            end 
        end 
    end 
 ) 

Link to comment
  • Replies 64
  • Created
  • Last Reply

Top Posters In This Topic

local WarMission = createMarker(2727.24390,-1826.40039,11.84375, "cylinder", 2, 255, 150, 250, 150) 
  
addEventHandler("onResourceStart", resourceRoot, 
function() 
    outputChatBox("تم بددآ المهم اذهب الى المآركه  لـدخول الى المهمه", root, 50, 30, 255) 
    outputChatBox("تم تغشيل المهمه", root, 0, 150, 255) 
        setTimer(outputChatBox, 1000, 1, true) 
    end, 10*60*1000, 1) 
  
local war = { 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
} 
  
  
  
  
function War(player) 
    if getElementType(player) == "player" and not isPedInVehicle(player) then 
            if source == WarMission then 
             if player == 32 then return outputChatBox ( 'العدد مكتمل لايمكنك دخول المهمه', player ) end 
                local x, y, z = unpack(war[math.random(#war)]) 
                setElementPosition(player, x, y, z) 
                setPlayerSkin (player, 2) 
                setElementDimension ( player, 6 ) 
                toggleControl ( player, "fire", false ) -----------  هنا مايقدر يطلق او شيء الى بعد ماتبدا المهم الى هي بعد 2 دقيقه  
                setElementFrozen(player, true) 
                setTimer(setElementFrozen(player,false),50000,1) 
            end  
        end     
    end 
    addEventHandler( "onMarkerHit", WarMission, War ) 
                
    
  
  
  
  
  
buttons = { 
    ['F1'] = true, 
    ['F2'] = true, 
    ['F3'] = true, 
    ['F4'] = true, 
    ['F5'] = true, 
    ['F6'] = true, 
    ['F7'] = true, 
    ['F8'] = true, 
    ['F9'] = true, 
    ['F10'] = true, 
    ['F11'] = true, 
    ['F12'] = true, 
  
} 
      
    addEventHandler( 'onClientKey', root, 
    function (button , prees) 
        if prees and getElementDimension(localPlayer) == 6 then 
            if buttons[button] then 
                     outputChatBox("غير مصرح لك بفتح اللوحة الان ", source, 255, 0, 0,true) 
                cancelEvent() 
            end 
        end 
    end 
 ) 

مازبط الحمايه يبله تآيمر و الفريز مايجي

  
local WarMission = createMarker(2727.24390,-1826.40039,11.84375, "cylinder", 2, 255, 150, 250, 150) 
  
addEventHandler("onResourceStart", resourceRoot, 
function() 
    outputChatBox("تم بددآ المهم اذهب الى المآركه  لـدخول الى المهمه", root, 50, 30, 255) 
    outputChatBox("تم تغشيل المهمه", root, 0, 150, 255) 
        setTimer(checkForWinner, 1000, 1, true) 
    end, 10*60*1000, 1) 
  
local war = { 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
} 
  
  
  
  
function War(player) 
    if getElementType(player) == "player" and not isPedInVehicle(player) then 
            if source == WarMission then 
             if player == 32 then return outputChatBox ( 'العدد مكتمل لايمكنك دخول المهمه', player ) end 
                local x, y, z = unpack(war[math.random(#war)]) 
                setElementPosition(player, x, y, z) 
                setPlayerSkin (player, 2) 
                setElementDimension ( player, 6 )            
                toggleControl ( player, "fire", false ) 
                toggleControl (toggleControl( player,false ),50000,1) 
                setElementFrozen(player, true) 
                setTimer(setElementFrozen(player,false),50000,1) 
            end 
        end     
    end 
    addEventHandler( "onMarkerHit", WarMission, War ) 
     
     
  

Edited by Guest
Link to comment
^ هو يقصد ان انت مو حاط كود checkForWinner
  
  
local WarMission = createMarker(2727.24390,-1826.40039,11.84375, "cylinder", 2, 255, 150, 250, 150) 
  
addEventHandler("onResourceStart", resourceRoot, 
function() 
    outputChatBox("تم بددآ المهم اذهب الى المآركه  لـدخول الى المهمه", root, 50, 30, 255) 
    outputChatBox("تم تغشيل المهمه", root, 0, 150, 255) 
        setTimer(outputChatBox, 1000, 1, true) 
    end, 10*60*1000, 1) 
  
local war = { 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
} 
  
  
  
  
function War(player) 
    if getElementType(player) == "player" and not isPedInVehicle(player) then 
            if source == WarMission then 
             if player == 32 then return outputChatBox ( 'العدد مكتمل لايمكنك دخول المهمه', player ) end 
                local x, y, z = unpack(war[math.random(#war)]) 
                setElementPosition(player, x, y, z) 
                setPlayerSkin (player, 2) 
                setElementDimension ( player, 6 )           
                toggleControl ( player, "fire", false ) 
                toggleControl (toggleControl( player,false ),50000,1) 
                setElementFrozen(player, true) 
                setTimer(setElementFrozen(player,false),50000,1) 
            end 
        end     
    end 
    addEventHandler( "onMarkerHit", WarMission, War ) 
    
  
  

Link to comment
  
  
local WarMission = createMarker(2727.24390,-1826.40039,11.84375, "cylinder", 2, 255, 150, 250, 150) 
  
addEventHandler("onResourceStart", resourceRoot, 
function() 
    outputChatBox("تم بددآ المهم اذهب الى المآركه  لـدخول الى المهمه", root, 50, 30, 255) 
    outputChatBox("تم تغشيل المهمه", root, 0, 150, 255) 
        setTimer(outputChatBox, 1000, 1, true) 
    end, 10*60*1000, 1) 
  
local war = { 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
} 
  
  
  
  
function War(player) 
    if getElementType(player) == "player" and not isPedInVehicle(player) then 
            if source == WarMission then 
             if player == 32 then return outputChatBox ( 'العدد مكتمل لايمكنك دخول المهمه', player ) end 
                local x, y, z = unpack(war[math.random(#war)]) 
                setElementPosition(player, x, y, z) 
                setPlayerSkin (player, 2) 
                setElementDimension ( player, 6 )           
                toggleControl ( player, "fire", false ) 
                toggleControl (toggleControl( player,false ),50000,1) 
                setElementFrozen(player, true) 
                setTimer(setElementFrozen(player,false),50000,1) 
            end 
        end     
    end 
    addEventHandler( "onMarkerHit", WarMission, War ) 
    
  
  

طيب الاحداثيات كلها نفس الشي !؟

Link to comment
  
  
local WarMission = createMarker(2727.24390,-1826.40039,11.84375, "cylinder", 2, 255, 150, 250, 150) 
  
addEventHandler("onResourceStart", resourceRoot, 
function() 
    outputChatBox("تم بددآ المهم اذهب الى المآركه  لـدخول الى المهمه", root, 50, 30, 255) 
    outputChatBox("تم تغشيل المهمه", root, 0, 150, 255) 
        setTimer(outputChatBox, 1000, 1, true) 
    end, 10*60*1000, 1) 
  
local war = { 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
} 
  
  
  
  
function War(player) 
    if getElementType(player) == "player" and not isPedInVehicle(player) then 
            if source == WarMission then 
             if player == 32 then return outputChatBox ( 'العدد مكتمل لايمكنك دخول المهمه', player ) end 
                local x, y, z = unpack(war[math.random(#war)]) 
                setElementPosition(player, x, y, z) 
                setPlayerSkin (player, 2) 
                setElementDimension ( player, 6 )           
                toggleControl ( player, "fire", false ) 
                toggleControl (toggleControl( player,false ),50000,1) 
                setElementFrozen(player, true) 
                setTimer(setElementFrozen(player,false),50000,1) 
            end 
        end     
    end 
    addEventHandler( "onMarkerHit", WarMission, War ) 
    
  
  

طيب الاحداثيات كلها نفس الشي !؟

يب انا مخلي كذا تجربه بعدين بغيره اول شيء نزبط المود الاحدثيات سهله

ردو جمآعه :mrgreen:

Link to comment
ردو يجمآعه :?
  
local WarMission = createMarker(2727.24390,-1826.40039,11.84375, "cylinder", 2, 255, 150, 250, 150) 
  
  
function layer () 
    outputChatBox("تم بددآ المهم اذهب الى المآركه  لـدخول الى المهمه", root, 50, 30, 255) 
    outputChatBox("تم تغشيل المهمه", root, 0, 150, 255) 
    end 
addEventHandler ( "onPlayerJoin", getRootElement(), layer ) 
  
local war = { 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
} 
  
  
  
  
function War(player) 
    if getElementType(player) == "player" and not isPedInVehicle(player) then 
            if source == WarMission then 
             if player == 32 then return outputChatBox ( 'العدد مكتمل لايمكنك دخول المهمه', player ) end 
                local x, y, z = unpack(war[math.random(#war)]) 
                setElementPosition(player, x, y, z) 
                setPlayerSkin (player, 2) 
                setElementDimension ( player, 6 ) 
                giveWeapon ( player, 4, 1, true ) 
                giveWeapon ( player, 27, 999999, true ) 
                giveWeapon ( player, 31, 999999, true ) 
                giveWeapon ( player, 30, 999999, true ) 
                giveWeapon ( player, 16, 2, true ) 
                giveWeapon ( player, 25, 999999, true )              
                toggleControl ( player, "fire", false ) 
                setElementFrozen(player, true) 
                 
            end 
        end     
    end 
    addEventHandler( "onMarkerHit", WarMission, War ) 
     
     
    setTimer ( 
function (player) 
addEventHandler( "onMarkerHit", WarMission, War ) 
    toggleControl ( player, "fire", true ) 
    setElementFrozen(player, false) 
end, 1*60000, 0 ) 
  
  
    سويت كذا لكن بعدد ما ادخل المهمه بي 1 دقيقه ماينفتح لا الفريز ولا  السلاح ض2 
  
حتى الكلام مايجي بي الشات حق المهم ق بدا المهمه الي بي السطور الاول 
  
  

Link to comment
ردو يجمآعه :?
  
local WarMission = createMarker(2727.24390,-1826.40039,11.84375, "cylinder", 2, 255, 150, 250, 150) 
  
  
function layer () 
    outputChatBox("تم بددآ المهم اذهب الى المآركه  لـدخول الى المهمه", root, 50, 30, 255) 
    outputChatBox("تم تغشيل المهمه", root, 0, 150, 255) 
    end 
addEventHandler ( "onPlayerJoin", getRootElement(), layer ) 
  
local war = { 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
    {2485.00000,-1667.00000,13.34375}, 
} 
  
  
  
  
function War(player) 
    if getElementType(player) == "player" and not isPedInVehicle(player) then 
            if source == WarMission then 
             if player == 32 then return outputChatBox ( 'العدد مكتمل لايمكنك دخول المهمه', player ) end 
                local x, y, z = unpack(war[math.random(#war)]) 
                setElementPosition(player, x, y, z) 
                setPlayerSkin (player, 2) 
                setElementDimension ( player, 6 ) 
                giveWeapon ( player, 4, 1, true ) 
                giveWeapon ( player, 27, 999999, true ) 
                giveWeapon ( player, 31, 999999, true ) 
                giveWeapon ( player, 30, 999999, true ) 
                giveWeapon ( player, 16, 2, true ) 
                giveWeapon ( player, 25, 999999, true )              
                toggleControl ( player, "fire", false ) 
                setElementFrozen(player, true) 
                 
            end 
        end     
    end 
    addEventHandler( "onMarkerHit", WarMission, War ) 
     
     
    setTimer ( 
function (player) 
addEventHandler( "onMarkerHit", WarMission, War ) 
    toggleControl ( player, "fire", true ) 
    setElementFrozen(player, false) 
end, 1*60000, 0 ) 
  
  
    سويت كذا لكن بعدد ما ادخل المهمه بي 1 دقيقه ماينفتح لا الفريز ولا  السلاح ض2 
  
حتى الكلام مايجي بي الشات حق المهم ق بدا المهمه الي بي السطور الاول 
  
  

يجمآعه الحل تكفون ض1 :mrgreen::|

Link to comment

لم تتم التجربه = لو في اخطاء بالديبق ياريت تطرحها لنا

addEventHandler ( "onPlayerJoin",root,function() 
outputChatBox("تم بددآ المهم اذهب الى المآركه  لـدخول الى المهمه",source, 50, 30, 255) 
outputChatBox("تم تغشيل المهمه",source, 0, 150, 255) 
end) 
--------create Marker  
local WarMission = createMarker(2727.24390,-1826.40039,11.84375, "cylinder", 2, 255, 150, 250, 150) 
--------Taple 
local war = { 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375},} 
-------- Event Marker 
addEventHandler( "onMarkerHit", WarMission,function (player) 
if getElementType(player) == "player" and not isPedInVehicle(player) then 
if player == 32 then return outputChatBox ( 'العدد مكتمل لايمكنك دخول المهمه', player ) end 
local x, y, z = unpack(war[math.random(#war)]) 
setElementPosition(player, x, y, z) 
setElementModel (player, 2) 
setElementDimension ( player, 6 ) 
giveWeapon ( player, 4, 1, true ) 
giveWeapon ( player, 27, 999999, true ) 
giveWeapon ( player, 31, 999999, true ) 
giveWeapon ( player, 30, 999999, true ) 
giveWeapon ( player, 16, 2, true ) 
giveWeapon ( player, 25, 999999, true )             
toggleControl ( player, "fire", false ) 
setElementFrozen(player, true) 
setTimer (function (player) 
if isElement(player) then 
toggleControl ( player, "fire", true ) 
setElementFrozen(player, false) 
end 
end,1*60000, 0 ) 
end 
end) 
Link to comment
لم تتم التجربه = لو في اخطاء بالديبق ياريت تطرحها لنا

addEventHandler ( "onPlayerJoin",root,function() 
outputChatBox("تم بددآ المهم اذهب الى المآركه  لـدخول الى المهمه",source, 50, 30, 255) 
outputChatBox("تم تغشيل المهمه",source, 0, 150, 255) 
end) 
--------create Marker  
local WarMission = createMarker(2727.24390,-1826.40039,11.84375, "cylinder", 2, 255, 150, 250, 150) 
--------Taple 
local war = { 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375}, 
{2485.00000,-1667.00000,13.34375},} 
-------- Event Marker 
addEventHandler( "onMarkerHit", WarMission,function (player) 
if getElementType(player) == "player" and not isPedInVehicle(player) then 
if player == 32 then return outputChatBox ( 'العدد مكتمل لايمكنك دخول المهمه', player ) end 
local x, y, z = unpack(war[math.random(#war)]) 
setElementPosition(player, x, y, z) 
setElementModel (player, 2) 
setElementDimension ( player, 6 ) 
giveWeapon ( player, 4, 1, true ) 
giveWeapon ( player, 27, 999999, true ) 
giveWeapon ( player, 31, 999999, true ) 
giveWeapon ( player, 30, 999999, true ) 
giveWeapon ( player, 16, 2, true ) 
giveWeapon ( player, 25, 999999, true )             
toggleControl ( player, "fire", false ) 
setElementFrozen(player, true) 
setTimer (function (player) 
if isElement(player) then 
toggleControl ( player, "fire", true ) 
setElementFrozen(player, false) 
end 
end,1*60000, 0 ) 
end 
end) 

مآفيه اخطا

لكن القريز ماينفك

و السلاح مايطلق

بعد 1 دقيقه

المفروض انها تنفكلكن ما انفكت لا الفريز ولا عدم الطلق

وال دي بوق مايظهر فيه شيء

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