Jump to content

طلب مود ذذ


DrHacTor

Recommended Posts

السلامم عليكمم ورحمةة الله وبركاتهةة

كيفكمم ؟

آن شاء الله بخخير

اليومم ابي منكمم مود وقد شفته برومات كثيرهة

وهو مود الـ vr

او : voteredo

وذا المود معروف ,

يجيك كذا

[server]:. Redo ......... [1/2]

وهو يجيك نص الاعبين مثلا فيه 8 لاعبين بالروم يصير كذا

[server]:. Redo ........... [1/4]

اتمنى فهموتني الي هو النصص ضض

ويلآلآ السلامم عليكم

Link to comment

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

اول شي القسم غلط

وبعدين المود اتوقع يبي له تعديل من القيم مود نفسه

الطريقة الافضل هي

كل ماحد يكتب voteredo

يزداد الداتا او يستخدم التيبل

ويتحقق اذا وصل 4 خلاص ماعد يقدر ويسوي ريدو

لكن الطريقة معقدة ويبي لها تتحق اذا الماب شغال ولا مكرر وكذا

Link to comment
وعليكم السلام

اول شي القسم غلط

وبعدين المود اتوقع يبي له تعديل من القيم مود نفسه

الطريقة الافضل هي

كل ماحد يكتب voteredo

يزداد الداتا او يستخدم التيبل

ويتحقق اذا وصل 4 خلاص ماعد يقدر ويسوي ريدو

لكن الطريقة معقدة ويبي لها تتحق اذا الماب شغال ولا مكرر وكذا

يب السالفةة مطولهةة

,

وين القسمم الصحح اججل ؟ :|

لول لو تلاحظ روح كم صفحةة اكثرهمم طالبين مودات :| شمعنى انا غلط ؟ ضض

Link to comment
    addEvent("onMapStarting", true) 
    addEventHandler("onMapStarting", root, function ( ) 
         for k,v in ipairs ( getElementsByType ( "player" ) ) do 
              setElementData ( v, "voteRedo", false ) 
         end 
    end) 
      
    addCommandHandler("redo", function(source) 
        if getElementData ( source, "voteRedo" ) == true then return end 
        if not i then i = 0 end 
        if i >= 4 then 
            outputChatBox("[REDO]: Die Map wird bereits wiederholt!", root,0,125,0) 
        else 
            i = i + 1 
            setElementData ( source, "voteRedo", true ) 
        end 
        if i == 3 then 
            outputChatBox("[REDO]: "..getPlayerName(source).." vote for redo! ["..i.."/3]",root,0,125,0) 
            outputChatBox("[REDO]: Map will be restarted!",root,0,125,0) 
            g_ForcedNextMap = currentMap 
            setTimer(function() i = 0 end, 150*1000,1) 
        elseif i <= 2 then 
            outputChatBox("[REDO]: "..getPlayerName(source).." vote for redo! ["..i.."/3]",root,0,125,0) 
        end 
    end) 

Link to comment
    addEvent("onMapStarting", true) 
    addEventHandler("onMapStarting", root, function ( ) 
         for k,v in ipairs ( getElementsByType ( "player" ) ) do 
              setElementData ( v, "voteRedo", false ) 
         end 
    end) 
      
    addCommandHandler("redo", function(source) 
        if getElementData ( source, "voteRedo" ) == true then return end 
        if not i then i = 0 end 
        if i >= 4 then 
            outputChatBox("[REDO]: Die Map wird bereits wiederholt!", root,0,125,0) 
        else 
            i = i + 1 
            setElementData ( source, "voteRedo", true ) 
        end 
        if i == 3 then 
            outputChatBox("[REDO]: "..getPlayerName(source).." vote for redo! ["..i.."/3]",root,0,125,0) 
            outputChatBox("[REDO]: Map will be restarted!",root,0,125,0) 
            g_ForcedNextMap = currentMap 
            setTimer(function() i = 0 end, 150*1000,1) 
        elseif i <= 2 then 
            outputChatBox("[REDO]: "..getPlayerName(source).." vote for redo! ["..i.."/3]",root,0,125,0) 
        end 
    end) 

ححلو بس آنآ آبيه عـ عدد الآعبين مثلا فيه 8 لاعبين يصير 4 ريدوات

ضض

يعني # نص الاعبين

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