Jump to content

TwiX!

Members
  • Posts

    905
  • Joined

  • Last visited

Everything posted by TwiX!

  1. you can't edit my very old stolen panel (panel_client.lua) because its complited, you edit it by part from puma user panel, so ask him
  2. i can help you but not for free RU: могу помочь, но не бесплатно
  3. TwiX!

    help

    i can translate --EDIT: send pm to me, done(translate)
  4. лидер WTF//Admin скайп его не помню
  5. Я тебе даже скажу больше, эти услуги можно найти от 500 до 1000 рублей на русских форумах. (Чёрт я спалился, да?) Ищешь достойную цель? Вперёд, Пентагон тебя уже ждёт. Мне кажется неуместно понтоваться на счёт материального положения на форуме игры, большую часть аудитории которой состовляют лица не достигшие даже 18. И дело немного не в этом: да хоть 50 рублей за слот, но только я знаю цену виртуальной игре, которая никак не поможет тебе в жизни ( кроме как убьёт твоё свободное время). А если вы планируете зарабатывать на сервере, то для этого очень надо постараться, а чтоб этим ещё и жить, и получать немалые деньги, то вы должны быть мастером уговаривать школьников тратить деньги на админки. А лично я делал сервер для себя, ни делал сайт, ни раскручивал сервер, тупо накачал много ресурсов... А народ сам попёр... И деньги я с этого делать не собираюсь, как минимум не умею... А как максимум не считаю это правильным... P.S. Мой сервер уже 2 раза набивался битком, причём онлайн раньше был 10-20 человек онлайн постоянно... а теперь чтот упал... Лето же уже скоро... нормальный дос стоит от 50 долларов в час, во 2 зачем уговаривать школьников что-то покупать? они сами могут спросить, в 3 можно самому делать скрипты кому то. в 4 проводить всякие конкурсы, в 4 зачем же из своего кармана? найти спонсора, например знаешь луа, взял помог ему, там сделал дизайн для сайта, много вариантов, это только будет развивать твои навыки, а не тупо сидеть и платить за свой сервер, или ходить рекламить на другие мне от куда знать? у него и спроси
  6. Qwerty~, ну поддось мой сервер если хочешь. Заодно узнаем работает ли анти-ддос защита. В чём проблема-то? А если доказать не можешь, то зачем писать посты от балды? если мне нужно будет, я любой сервер положу, нужны лишь только деньги или связи, если ты не знаешь,не делай выводы, во 2 багов и дыр там много, для нормальных хакеров, спокойно взломает твой сервак, но это никому не надо, 3-4 человека это очень дешево, даже за 5 рублей слот, подходит для школоты людей, живущие за счёт родителей
  7. button = guiCreateButton (..., text = " ", ...) guiCreateStaticImage( ..., "imagename.png", false ) guiSetAlpha ( button , 0)
  8. гавно твой pawn.su дыры в защите, лаги нету защиты от ддоса
  9. или сделать гуи с альфой 0, тоесть получится обычный красивый dx текст
  10. you can find colored label code, and use it, guiSetText will not work, btw you can use destroyElement() , and make label again
  11. TwiX!

    random vehicles

    only markers(script) or checkpoints
  12. Что "UP" то? В одиночной игре проверить нельзя? он хочет чтобы сделали за него
  13. любой платный иностранный хост, от 60 евро и выше
  14. Ты купил дом, в нём на полу ДЫРКА, когда ты пойдёшь, ты явно провалишься в неё Тоесть тебе нужно (нанять рабочих или заделать её самому) [Тоесть найти другую текстуру, она так же может быть не доделана] ..
  15. TwiX!

    xml

    ... ON THIS CODE: server: local lastTimePlayed local month = {"January","February","March","April","May","June","Juli","August","September","October","November","December"} function timestampToDate(stamp) local time = getRealTime(stamp) return string.format("%d %s %02d:%02d",time.monthday,month[time.month+1],time.hour,time.minute) end addEvent("onMapStarting",true) addEventHandler ( 'onMapStarting', root, function ( mapInfo ) local resource = exports.mapmanager:getRunningGamemodeMap() local mapname = getResourceInfo ( resource, "name" ) local author = getResourceInfo(exports.mapmanager:getRunningGamemodeMap(),"author") local lastTimePlayed = timestampToDate(mapInfo.lastTimePlayed) local xml = xmlLoadFile("data/ratings.xml") if ( xml ) then local index = findIndexByName ( resource ) if ( index ) then local map = xmlFindChild ( xml, "map", index ) local rating = xmlNodeGetAttribute ( map, "rating" ) local ratedBy = xmlNodeGetAttribute ( map, "ratedBy" ) local played = xmlNodeGetAttribute ( map, "played" ) triggerClientEvent(source,"INFO",getRootElement(),mapname,author,rating,ratedBy,played,lastTimePlayed) else outputChatBox ( "Map not found in our ratings list.", getRootElement(), 255, 0, 0, true ) end else outputChatBox ( "Unable to load map ratings XML file.", getRootElement(), 255, 0, 0, true ) end end ) function findIndexByName ( resource ) local ratingsFile = xmlLoadFile("data/ratings.xml") if ( ratingsFile ) then for index, map in ipairs ( xmlNodeGetChildren ( ratingsFile ) ) do local name = xmlNodeGetAttribute ( map, "id" ) if ( name == resource ) then return index -1 end end xmlUnloadFile(ratingsFile) end end i want check resource name on here: function findIndexByName ( resource ) local ratingsFile = xmlLoadFile("data/ratings.xml") if ( ratingsFile ) then for index, map in ipairs ( xmlNodeGetChildren ( ratingsFile ) ) do local name = xmlNodeGetAttribute ( map, "id" ) if ( name == resource ) then return index -1 end end xmlUnloadFile(ratingsFile) end end your code checks the map name. idk why this code isnt running. its output "Map not found in our ratings list." You do not understand what you're doing Pls learn the LUA viewtopic.php?f=148&t=40809 No one will be make completely for you the script
  16. TwiX!

    Looking 4

    '=' you give the name of the argument '==' compare (As in mathematics) local me = getLocalPlayer() local name = getPlayerName(source) if (me == name) then outputChatBox ('work') end '~=' approximately equal, ie, the system will not be equated as example 2+2.1 = 4.1 so if (2+2.1) == 4 its will wrong else (2+2.1) ~= 4 will working
  17. TwiX!

    Looking 4

    what its? if (name ~= ":O") then --code here end or if (name == ":O") then --code here end
  18. TwiX!

    xml

    of course.. but he don't know lua, and make all at random or use part of admin panel for get name of folder
  19. TwiX!

    xml

    idk why, btw he need name of folder.. so ok server local lastTimePlayed local month = {"January","February","March","April","May","June","Juli","August","September","October","November","December"} function timestampToDate(stamp) local time = getRealTime(stamp) return string.format("%d %s %02d:%02d",time.monthday,month[time.month+1],time.hour,time.minute) end addEvent("onMapStarting",true) addEventHandler ( 'onMapStarting', root, function ( mapInfo ) local resource = exports.mapmanager:getRunningGamemodeMap() local mapname = getResourceInfo ( resource, "name" ) local author = getResourceInfo(exports.mapmanager:getRunningGamemodeMap(),"author") local lastTimePlayed = timestampToDate(mapInfo.lastTimePlayed) local xml = xmlLoadFile("data/ratings.xml") if ( xml ) then local index = findIndexByName ( mapname ) if ( index ) then local map = xmlFindChild ( xml, "map", index ) local rating = xmlNodeGetAttribute ( map, "rating" ) local ratedBy = xmlNodeGetAttribute ( map, "ratedBy" ) local played = xmlNodeGetAttribute ( map, "played" ) triggerClientEvent(source,"INFO",getRootElement(),mapname,author,rating,ratedBy,played,lastTimePlayed) else outputChatBox ( "Map not found in our ratings list.", getRootElement(), 255, 0, 0, true ) end else outputChatBox ( "Unable to load map ratings XML file.", getRootElement(), 255, 0, 0, true ) end end ) function findIndexByName ( mapName ) local ratingsFile = xmlLoadFile("data/ratings.xml") if ( ratingsFile ) then for index, map in ipairs ( xmlNodeGetChildren ( ratingsFile ) ) do local name = xmlNodeGetAttribute ( map, "id" ) if ( name == mapName ) then return index -1 end end xmlUnloadFile(ratingsFile) end end client local screenWidth, screenHeight = guiGetScreenSize() local endPosition = screenHeight-140 local moveback = false function getDrawText(mapname,author,rating,ratedBy,played,lastTimePlayed) addEventHandler ( "onClientRender", getRootElement(), drawMapInfo) if mapname then textM = "Map: "..mapname else textM = "Unknown" end if author then textA = "Author: "..author else textA = "Unknown" end if rating then textR = "Rate: " ..rating.. "/10 (by " ..ratedBy.. " players)" else textR = "Not rated yet" end if played then textP = "Times played: "..played.." times" else textP = "Never played before" end if lastTimePlayed then textPL = "Last Time Played\n"..lastTimePlayed else textPL = "Unknown" end end addEvent( "INFO", true ) addEventHandler( "INFO", getRootElement(), getDrawText ) function drawMapInfo () if position == endPosition then if tickCount == 0 then moveback = true end tickCount = tickCount-1 movePosition = 0 end if position >= screenHeight+91 then removeEventHandler("onClientRender",getRootElement(),drawMapInfo) end if moveback then movePosition = -2.5 alpha = alpha - 10 end alpha = alpha + 5 if alpha > 255 then alpha = 255 elseif alpha < 0 then alpha = 0 end local heighResize = dxGetFontHeight(1.15, "default-bold") local widthRezise1 = dxGetTextWidth("Map - "..name,1.15,"default-bold") local widthRezise2 = dxGetTextWidth("Lasttime played - "..lastTimePlayed,1.15,"default-bold") local widthRezise3 = dxGetTextWidth("By - "..author,1.15,"default-bold") if widthRezise1 > widthRezise2 and widthRezise1 > widthRezise3 then widthRezise = widthRezise1 elseif widthRezise2 > widthRezise1 and widthRezise2 > widthRezise3 then widthRezise = widthRezise2 elseif widthRezise3 > widthRezise1 and widthRezise3 > widthRezise2 then widthRezise = widthRezise3 end dxDrawText ( textR,screenWidth/2-150,screenHeight/2+275,684.0,647.0,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText ( textP,screenWidth/2-150,screenHeight/2+250,636.0,675.0,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawImage(screenWidth/2-200,screenHeight/2+185,420.0,176.0, "images/info_bgr.png",0,0,0,tocolor(200,200,200,alpha)) dxDrawText ( textM,screenWidth/2-150,screenHeight/2+200,636.0,675.0,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText ( textA,screenWidth/2-150,screenHeight/2+225.0,636.0,619.0,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText ( textPL,screenWidth/2-150,screenHeight/2+300,684.0,647.0,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) dxDrawText ( "Mode: Destruction Derby",screenWidth/2-150,screenHeight/2+325,506.0,699.0,tocolor(255,255,255,255),1.5,"default-bold","left","top",false,false,false) position = position - movePosition end
  20. and what i can do? if its not all code
  21. learn here pls.. https://forum.multitheftauto.com/viewtopic.php?f=148&t=41066 /debugscript 3 We are not psychics
×
×
  • Create New...