Jump to content

R.y.c.k

Members
  • Posts

    80
  • Joined

  • Last visited

Everything posted by R.y.c.k

  1. I wrote it right idk where the error Edit: or ? how to create new group that will work /nextmap ? or panel and maps tab and set nextmap Will you help me?
  2. I know , so i reject some right and start server i press p and I can do everything i get blow as if I had not failed to adapt but open acl and see blow false
  3. Hey all i stop server update acl (blow vehicle false,slap false ) i start server and and can not see any changes I do not know how only do such that when you in a certain ACL napr VIP so you can only function /nextmap name map <acl name="SuperModerator"> <right name="general.ModifyOtherObjects" access="false"></right> <right name="command.start" access="true"></right> <right name="command.stop" access="true"></right> <right name="command.restart" access="true"></right> <right name="command.kick" access="true"></right> <right name="command.ban" access="true"></right> <right name="command.banip" access="true"></right> <right name="command.unbanip" access="true"></right> <right name="command.refresh" access="true"></right> <right name="command.refreshall" access="true"></right> <right name="command.loadmodule" access="true"></right> <right name="command.addaccount" access="true"></right> <right name="command.delaccount" access="true"></right> <right name="command.chgpass" access="true"></right> <right name="function.addAccount" access="true"></right> <right name="function.removeAccount" access="true"></right> <right name="function.setAccountPassword" access="true"></right> <right name="general.adminpanel" access="true"></right> <right name="general.tab_players" access="true"></right> <right name="general.tab_resources" access="false"></right> <right name="general.tab_maps" access="true"></right> <right name="general.tab_server" access="true"></right> <right name="general.tab_bans" access="true"></right> <right name="general.tab_adminchat" access="true"></right> <right name="command.freeze" access="true"></right> <right name="command.mute" access="true"></right> <right name="command.setnick" access="true"></right> <right name="command.shout" access="true"></right> <right name="command.spectate" access="true"></right> <right name="command.slap" access="false"></right> <right name="command.setgroup" access="false"></right> <right name="command.sethealth" access="true"></right> <right name="command.setarmour" access="true"></right> <right name="command.setmoney" access="true"></right> <right name="command.setskin" access="true"></right> <right name="command.setteam" access="true"></right> <right name="command.giveweapon" access="true"></right> <right name="command.setstat" access="true"></right> <right name="command.jetpack" access="true"></right> <right name="command.warp" access="true"></right> <right name="command.setdimension" access="true"></right> <right name="command.setinterior" access="true"></right> <right name="command.createteam" access="true"></right> <right name="command.destroyteam" access="true"></right> <right name="command.givevehicle" access="false"></right> <right name="command.repair" access="true"></right> <right name="command.blowvehicle" access="false"></right> <right name="command.destroyvehicle" access="false"></right> <right name="command.customize" access="true"></right> <right name="command.setcolor" access="true"></right> <right name="command.setpaintjob" access="true"></right> <right name="command.listmessages" access="true"></right> <right name="command.readmessage" access="true"></right> <right name="command.listresources" access="true"></right> <right name="command.stopall" access="false"></right> <right name="command.execute" access="false"></right> <right name="command.setpassword" access="true"></right> <right name="command.setwelcome" access="true"></right> <right name="command.setgame" access="true"></right> <right name="command.setmap" access="true"></right> <right name="command.setweather" access="true"></right> <right name="command.blendweather" access="true"></right> <right name="command.setblurlevel" access="true"></right> <right name="command.setwaveheight" access="true"></right> <right name="command.setskygradient" access="true"></right> <right name="command.setgamespeed" access="true"></right> <right name="command.setgravity" access="true"></right> <right name="command.settime" access="true"></right> <right name="command.unban" access="true"></right> <right name="command.banserial" access="true"></right> <right name="command.unbanserial" access="true"></right> <right name="command.listbans" access="true"></right> </acl>
  4. *Twin Stars* DM server: mtasa://92.240.237.192:22025 Top list ,new DM maps, skill , buy fix/nos panel comming soon , and more ] DD server: mtasa://92.240.237.192:22019 Top players ,good DD maps, panel+buymap,bet,buy lights,car colour , fun buy vehicle andromeda etc. ,and more Small skill in DM server
  5. R.y.c.k

    Time problem

    I dont write "me name " in the this script , I do not steal this script !
  6. R.y.c.k

    Time problem

    One player sent me this script ,Thus I am innocent person,I wanted to give it to our time
  7. R.y.c.k

    Time problem

    Yes, it is don't my script but i liked this infomap and there something I add , This script I change map for the script Thank you miki , also for the previous question about carcolor PS: Rad hram na tvojom servery
  8. R.y.c.k

    Time problem

    Yo .. in infomap I shows the time exp. 12:10 and in our country is 11:10 where I could set ? part script : local name, author, lastTimePlayed, playedCount, modename local startTick local enabled = false local drawTime = 20000 local month = {"January","February","March","April","May","June","Juli","August","September","October","November","December"} local rollSpeed1 = 0 local rollSpeed2 = 0 local rollSpeed3 = 0 local rollSpeed4 = 0 local rollSpeed5 = 0 local rollRectangle = 0 function timestampToDate(stamp) local time = getRealTime(stamp) return string.format("%d %s %02d:%02d",time.monthday,month[time.month+2],time.hour,time.minute) end function handleMapInfo(mapInfo) name = mapInfo.name or "Unknown" author = mapInfo.author or "Unknown" lastTimePlayed = timestampToDate(mapInfo.lastTimePlayed) or "Unknown" playedCount = tostring(mapInfo.playedCount or "Unknown") modename = mapInfo.modename ~= "Destruction derby" and mapInfo.modename or "Destruction derby" startTick = getTickCount() if not enabled then enabled = true addEventHandler ( "onClientRender", getRootElement(),drawMapInfo) rollSpeed1 = 0 rollSpeed2 = 0 rollSpeed3 = 0 rollSpeed4 = 0 rollSpeed5 = 0 rollRectangle = 0 end end addEvent("onClientMapStarting",true) addEventHandler("onClientMapStarting",getRootElement(),handleMapInfo) function drawMapInfo () local time = getTickCount() - startTick --7750 if time >= drawTime + 1000 then enabled = false removeEventHandler ( "onClientRRender", getRootElement(),drawMapInfo) return end
  9. i will have to hand write color ?I want to give new colors to the MTA that it was nicer.
  10. I do not want the color of gta:sa ... i want custom colour exp: 00ffff , 4sdff2 ,186186 etc ..
  11. Hey all. I want to ask whether it is possible create script which that generated all colours !not those which include gta:sa !
  12. Hello I wanted to do something what would prevent theft coundown.png ,I thought streaming images avoid this But not show images Do you know another way to prevent theft? My effort g_RaceStartCountdown = Countdown.create(6, launchRace) g_RaceStartCountdown:useImages('http://kme-clan.g6.cz/test/countdown_%d.png', 474, 204) g_RaceStartCountdown:enableFade(true) g_RaceStartCountdown:addClientHook(3, 'playSound', "three.mp3") g_RaceStartCountdown:addClientHook(2, 'playSound', "two.mp3") g_RaceStartCountdown:addClientHook(1, 'playSound', "one.mp3") g_RaceStartCountdown:addClientHook(0, 'playSound', "go.mp3")
  13. See http://www.ulozisko.sk/obrazky/530082/omfg.jpg
  14. <acl> <group name="OutRPCGroup"> <acl name="OutRPC" /> <object name="resource.examplechat" /> </group> <acl name="OutRPC"> <right name="function.callRemote" access="true" /> </acl> <group name="InRPCGroup"> <acl name="InRPC" /> <object name="user.http_guest" /> </group> <acl name="InRPC"> <right name="general.http" access="true" /> <right name="resource.examplechat" access="true" /> <right name="resource.resourcebrowser" access="false" /> <right name="resource.webstats" access="false" /> <right name="resource.webmap" access="false" /> <right name="resource.webadmin" access="false" /> <right name="resource.scoreboard" access="false" /> <right name="resource.runcode" access="false" /> <right name="resource.resourcemanager" access="false" /> <right name="resource.mapmanager" access="false" /> <right name="resource.admin" access="false" /> <right name="resource.elementbrowser" access="false" /> <right name="resource.easytext" access="false" /> </acl> <group name="Everyone"> <acl name="Default"></acl> <object name="user.*"></object> <object name="resource.*"></object> </group> <group name="Moderator"> <acl name="Moderator"></acl> <object name="resource.mapcycler"></object> <object name="resource.mapmanager"></object> <object name="resource.resourcemanager"></object> <object name="resource.votemanager"></object> </group> <group name="SuperModerator"> <acl name="Moderator"></acl> <acl name="SuperModerator"></acl> </group> <group name="Admin"> <acl name="Moderator"></acl> <acl name="SuperModerator"></acl> <acl name="Admin"></acl> <acl name="RPC"></acl> <object name="resource.admin"></object> <object name="resource.webadmin"></object> <object name="user.jozef"></object> <object name="resource.tspanel"></object> <object name="resource.Mafin14"></object> <object name="user.mafines"></object> <object name="user.Drwho"></object> <object name="user.-TS-#ff4500Lex"></object> </group> <group name="Console"> <acl name="Moderator"></acl> <acl name="SuperModerator"></acl> <acl name="Admin"></acl> <acl name="RPC"></acl> <object name="user.Console"></object> </group> <group name="RPC"> <acl name="RPC"></acl> </group> <group name="MapEditor"> <acl name="Default"></acl> <acl name="MapEditor"></acl> <object name="resource.editor_main"></object> <object name="resource.edf"></object> </group> <group name="raceACLGroup"> <acl name="Default"></acl> <acl name="raceACL"></acl> <object name="resource.race"></object> </group> <acl name="OutRPC"> <right name="function.callRemote" access="true"></right> <right name="general.adminpanel" access="false"></right> <right name="general.tab_players" access="false"></right> <right name="general.tab_resources" access="false"></right> <right name="general.tab_maps" access="false"></right> <right name="general.tab_server" access="false"></right> <right name="general.tab_bans" access="false"></right> <right name="general.tab_adminchat" access="false"></right> <right name="command.kick" access="false"></right> <right name="command.freeze" access="false"></right> <right name="command.mute" access="false"></right> <right name="command.setnick" access="false"></right> <right name="command.shout" access="false"></right> <right name="command.spectate" access="false"></right> <right name="command.slap" access="false"></right> <right name="command.setgroup" access="false"></right> <right name="command.sethealth" access="false"></right> <right name="command.setarmour" access="false"></right> <right name="command.setmoney" access="false"></right> <right name="command.setskin" access="false"></right> <right name="command.setteam" access="false"></right> <right name="command.giveweapon" access="false"></right> <right name="command.setstat" access="false"></right> <right name="command.jetpack" access="false"></right> <right name="command.warp" access="false"></right> <right name="command.setdimension" access="false"></right> <right name="command.setinterior" access="false"></right> <right name="command.givevehicle" access="false"></right> <right name="command.repair" access="false"></right> <right name="command.blow" access="false"></right> <right name="command.destroy" access="false"></right> <right name="command.customize" access="false"></right> <right name="command.setcolor" access="false"></right> <right name="command.setpaintjob" access="false"></right> <right name="command.listmessages" access="false"></right> <right name="command.readmessage" access="false"></right> <right name="command.listresources" access="false"></right> <right name="command.start" access="false"></right> <right name="command.stop" access="false"></right> <right name="command.stopall" access="false"></right> <right name="command.restart" access="false"></right> <right name="command.execute" access="false"></right> <right name="command.setpassword" access="false"></right> <right name="command.setwelcome" access="false"></right> <right name="command.setgame" access="false"></right> <right name="command.setmap" access="false"></right> <right name="command.setweather" access="false"></right> <right name="command.blendweather" access="false"></right> <right name="command.setblurlevel" access="false"></right> <right name="command.setwaveheight" access="false"></right> <right name="command.setskygradient" access="false"></right> <right name="command.setgamespeed" access="false"></right> <right name="command.setgravity" access="false"></right> <right name="command.settime" access="false"></right> <right name="command.ban" access="false"></right> <right name="command.unban" access="false"></right> <right name="command.banip" access="false"></right> <right name="command.unbanip" access="false"></right> <right name="command.banserial" access="false"></right> <right name="command.unbanserial" access="false"></right> <right name="command.listbans" access="false"></right> </acl>
  15. Script dosent work where is problem ? Server.lua function outputChatBoxRemote ( playerName, message, type, serverport ) if serverport ~= getServerPort() then outputChatBox ( "DM" .. playerName .. " MAP " .. serverport .. ": " .. message ) end end function playerChatCallback() end function playerChat ( message, type ) callRemote ( "89.185.244.243:22017", getResourceName(getThisResource()), "outputChatBoxRemote", playerChatCallback, getPlayerName(source), message, type, getServerPort() ) callRemote ( "89.185.244.243:22026", getResourceName(getThisResource()), "outputChatBoxRemote", playerChatCallback, getPlayerName(source), message, type, getServerPort() ) end addEventHandler ( "onPlayerChat", getRootElement(), playerChat ) function playerChat (message, type) if string.sub(message, 1,2) ~= "++" then return end Meta.xml <meta> <script src="server.lua" type="server" /> <export function="outputChatBoxRemote" http="true" /> </meta> Acl.xml
  16. I got it, but I want to ask I want to write the kinds of server only when a chat add + . :example ++Hello DM server < i write to dm server hey all < normal write in dd function outputChatBoxRemote ( playerName, message, type, serverport ) if serverport ~= getServerPort() then outputChatBox ( "DD" .. playerName .. " DM " .. serverport .. ": " .. message ) end end function playerChatCallback() end function playerChat ( message, type ) callRemote ( "25.25.25.25:25555", getResourceName(getThisResource()), "outputChatBoxRemote", playerChatCallback, getPlayerName(source), message, type, getServerPort() ) --example ip+port end addEventHandler ( "onPlayerChat", getRootElement(), playerChat )
  17. hi ,do not know how anyone can do Interchat ? writing between the two servers, do you understand me? , i have mysql databaze (I heard that it is necessary) so I do not know .. Thank you for answers
  18. Hello sou .. know what is wrong? always throwing error , even if I don't have hunter client : .... do you need also server side ? thank .. winnerText = " " winnerText2 = " " timeTimer = 6000 showWinnerText = false function showDDWinnerAndHisText (text) winnerText = text winnerText2 = winnerText:gsub("#%x%x%x%x%x%x","") showWinnerText = true setTimer(function() winnerText = " " winnerText2 = " " showWinnerText = false end, timeTimer, 1) end addEvent("showDDWinnerAndHisText", true) addEventHandler("showDDWinnerAndHisText", getRootElement(), showDDWinnerAndHisText ) font = guiCreateFont("font.ttf", 1) screenWidth, screenHeight = guiGetScreenSize ( ) function drawHunterReached() if showHunterReached then local hud1 = dxDrawText("Hunter reached", 0+2, 0+2, screenWidth+2, screenHeight+2, tocolor ( 0, 0, 0, 255 ), 2, "bankgothic","center","center") local hud1 = dxDrawText("Hunter reached", 0, 0, screenWidth, screenHeight, tocolor (math.random(255),math.random(255),math.random(255),255), 2, "bankgothic","center","center") elseif showWinnerText then dxDrawText(winnerText2, 0+2, 0+2, screenWidth+2, screenHeight/3+2, tocolor ( 0, 0, 0, 255 ), 1.3, "bankgothic","center","center") dxDrawColorText(winnerText, 0, 0, screenWidth, screenHeight/3, tocolor ( 255, 0, 0, 255 ), 1.3, "bankgothic","center","center") end end addEventHandler("onClientRender", getRootElement(), drawHunterReached) setTimer( function() hud1:setColor(tocolor(math.random(255),math.random(255),math.random(255),255)) end,2000,0) function dxDrawColorText(str, ax, ay, bx, by, color, scale, font, alignX, alignY) if alignX then if alignX == "center" then local w = dxGetTextWidth(str:gsub("#%x%x%x%x%x%x",""), scale, font) ax = ax + (bx-ax)/2 - w/2 elseif alignX == "right" then local w = dxGetTextWidth(str:gsub("#%x%x%x%x%x%x",""), scale, font) ax = bx - w end end if alignY then if alignY == "center" then local h = dxGetFontHeight(scale, font) ay = ay + (by-ay)/2 - h/2 elseif alignY == "bottom" then local h = dxGetFontHeight(scale, font) ay = by - h end end local pat = "(.-)#(%x%x%x%x%x%x)" local s, e, cap, col = str:find(pat, 1) local last = 1 while s do if cap == "" and col then color = tocolor(tonumber("0x"..col:sub(1, 2)), tonumber("0x"..col:sub(3, 4)), tonumber("0x"..col:sub(5, 6)), 255) end if s ~= 1 or cap ~= "" then local w = dxGetTextWidth(cap, scale, font) dxDrawText(cap, ax, ay, ax + w, by, color, scale, font) ax = ax + w color = tocolor(tonumber("0x"..col:sub(1, 2)), tonumber("0x"..col:sub(3, 4)), tonumber("0x"..col:sub(5, 6)), 255) end last = e + 1 s, e, cap, col = str:find(pat, last) end if last <= #str then cap = str:sub(last) local w = dxGetTextWidth(cap, scale, font) dxDrawText(cap, ax, ay, ax + w, by, color, scale, font) end end
  19. R.y.c.k

    Play Sound

    do not know where I have an error? When it receives hunter should play a song that everybody should hear. client local player = nil function thePlayerReachedHunter() if (player) then dxDrawText("The player ".. tostring(getPlayerName(player)) .." got police car",155.0,549.0,669.0,591.0,tocolor(255,255,255,255,true),1.0,"default-bold","left","top",false,false,false) end end addEvent("disableGhostMode",true) addEventHandler("disableGhostMode",root, function (thePlayer) player = thePlayer outputChatBox ( "#FFE303The ghostmode will be disabled in 5 seconds ",255,255,255 ,true ) addEventHandler ( "onClientRender", root, thePlayerReachedHunter ) setTimer(function () removeEventHandler ( "onClientRender", root, thePlayerReachedHunter ) end, 5000, 1) setTimer(function () for k,v in ipairs(getElementsByType("vehicle")) do setElementCollidableWith(v, v, true) end end, 5000, 1) end) function sound (ReachedHunter,PlayerReachedHunter) local sound = playSound("turbo.mp3") sounds folder setSoundVolume(sound, 0.5) end addEventHandler("thePlayerReachedHunter", getLocalPlayer(), sound) server function someoneReachedHunter(number, sort, model) if (sort == "vehiclechange" and model == 821) then triggerClientEvent("playSound",getRootElement(),source) end end addEvent("onPlayerPickUpRacePickup",true) addEventHandler("thePlayerReachedHunter",getRootElement(),playSound) addEvent("onPlayerPickUpRacePickup",true) addEventHandler("onPlayerPickUpRacePickup",getRootElement(),someoneReachedHunter)
  20. overwrite any maps? there is something simpler? freeze time or weather ?
  21. Hey all how to create script "freeze weather /time" This will help in DM maps in race.
×
×
  • Create New...