#Azooz07 Posted May 31, 2016 Share Posted May 31, 2016 السلام عليكم يا شباب مين يعرف وين القي هذا الكلام في ملفات الريس و في اي سطر Map ..... Started "http://www.up-00.com/" Link to comment
Me[Z]oO Posted May 31, 2016 Share Posted May 31, 2016 ابحث عن حدث onMapLoad وارسل الكود حقه Link to comment
#Azooz07 Posted May 31, 2016 Author Share Posted May 31, 2016 ابحث عن حدث onMapLoad وارسل الكود حقه حصلته بس ما يقبل التلوين ليه ؟؟ السطر 59 addEventHandler("onResourceStart", rootElement, function (startedResource) --Is this resource a gamemode? if isGamemode(startedResource) then --Check no gamemode is running already if getRunningGamemode() then return end if triggerEvent("onGamemodeStart", getResourceRootElement(startedResource), startedResource) then currentGamemode = startedResource --Setup our announcements local gamemodeName = getResourceInfo(currentGamemode, "name") or getResourceName(currentGamemode) if get("ASE") then setGameType(gamemodeName) end if get("messages") then local name = getInstigatorName ( " by " ) or "" outputMapManager("[RooM]: Gamemode '"..gamemodeName.."' started" .. name .. "." ) end --We need to wait a while to see if any maps were started. If not, lets try and start a random one setTimer( function() if not getRunningGamemodeMap() then --Lets check if there are any maps for this gamemode local maps = getMapsCompatibleWithGamemode(getRunningGamemode()) --If we have any, we'll start a random one if #maps > 0 then changeGamemodeMap (maps[math.random(1,#maps)]) end end end, 50, 1 ) else currentGamemode = nil end elseif isMap(startedResource) then --If its a map --Make sure there is a gamemode running if not getRunningGamemode() then return end --Is there a map running already? if getRunningGamemodeMap() then return end --Is it compatible with our gamemode? if isGamemodeCompatibleWithMap ( getRunningGamemode(), startedResource ) then --Lets link the map with the gamemode if ( triggerEvent("onGamemodeMapStart", getResourceRootElement(startedResource), startedResource) ) then currentGamemodeMap = startedResource --Setup our announcements local gamemodeMapName = getResourceInfo(currentGamemodeMap, "name") or getResourceName(currentGamemodeMap) applyMapSettings( currentGamemodeMap ) if get("ASE") then setMapName(gamemodeMapName) end if get("messages") then local name = getInstigatorName ( " by " ) or "" outputChatBox("#ffffff[Room] '"..gamemodeMapName.."' started" .. name .. ".") end else currentGamemodeMap = nil end end end end ) Link to comment
Me[Z]oO Posted May 31, 2016 Share Posted May 31, 2016 (edited) outputChatBox("#ffffff[Room] "..gamemodeMapName.." started ".. name ..".",root,255,0,0,true) Edited May 31, 2016 by Guest Link to comment
#Azooz07 Posted May 31, 2016 Author Share Posted May 31, 2016 outputChatBox("#ffffff[Room] '"..gamemodeMapName.."' started" .. name .. ".",true) لانك مو مسوي ترو اقصد نفس الوضع - Link to comment
Me[Z]oO Posted May 31, 2016 Share Posted May 31, 2016 عدلته فوق شكرا لك العفو حياك الله 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