FevaDoL Posted July 19, 2014 Share Posted July 19, 2014 آلسلآم عليككم,, المهم عـندي مشكله فـي آلتصويت حق آلريدو ,, (أن اللآعب يقدر يصوت أكثر من مرههء ) وآلشيء ألثآني ,, ألوآننء ألنصوص .. وهذآ الكود.. addCommandHandler("redo", function(source) 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 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
AboShanab Posted July 21, 2014 Share Posted July 21, 2014 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
SaRy,#DanGer Posted July 26, 2014 Share Posted July 26, 2014 (edited) حلاها لك أبو شنب بس مشكله اكواد النصوص ع قولتكك تقدر تغيرها r g b مثال : outputChatBox("[REDO]: Die Map wird bereits wiederholt!", root,255,0,255) هذى الكود حق اللون ,255,0,255 تقدر تطلع الالوان من الموقع اكتب بالبحث rgb Color Edited July 26, 2014 by Guest Link to comment
SaRy,#DanGer Posted July 26, 2014 Share Posted July 26, 2014 اصلن الكود كله خطا لول هههههه يارجال ماقريت الكود اصلا بس خبري ابو شنب فهيم قلت اكيد حلاها 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