Jump to content

Reflex#

Members
  • Posts

    230
  • Joined

  • Last visited

Everything posted by Reflex#

  1. Reflex#

    GUI

    You need change x,y of this guiWindow
  2. Reflex#

    GUI

    Ye he say true function changeVisibility ( ) -- we check if the gui element is visible guiSetVisible (myWindow, not guiGetVisible ( myWindow ) ) end --Create a gui window called 'myWindow' myWindow = guiCreateWindow ( 0.3, 0.3, 0.5, 0.60, "GUI window title", true ) --Set a timer to change the window's visibility every 2 seconds, infinite times setTimer ( changeVisibility, 2000, 0 ) https://wiki.multitheftauto.com/wiki/GuiSetVisible here can find more
  3. Reflex#

    BB mode

    Whaaat? Now there's copyright for a 5-line code? What's to say he didn't write that himself? Rlly i try to do it..only 1 line Kenix add
  4. In 2 code i dont add root in the end and all work..but try this 2 scripts blazy
  5. g_Root = getRootElement() addEventHandler('onPlayerJoin',g_Root, function () outputChatBox('#ffffff ' .. getPlayerName(source) .. '#ffffff has joined the game!', getRootElement(), 255, 255, 255, true) end )
  6. Reflex#

    BB mode

    addEventHandler ( 'onGamemodeMapStart', root, function ( uMapStart ) setGameType ( getResourceInfo( uMapStart, 'name' ) ) end ) This is script. I have it too,and i create it
  7. Reflex#

    Words

    Yes from my server
  8. Reflex#

    Words

    But what line Solid? I search-search but cant find
  9. Reflex#

    Words

    Look on this picture. look on words in left down corner: Fps: Next map: Map: I wanna change color to orange.. what lua file i need and what line? race_server or client? Help!
  10. i can help you but not for free RU: могу помочь, но не бесплатно Write me in skype( Reflex(Миша) ),you have it RU:Напиши мне в скайп Reflex(Миша),у тебя он есть
  11. Yes but i say that my friends have free scripter
  12. Hey guys I'm Reflex I have my server RHD. It not so popular..but have not much good scripts.. I'm learning scripting but it not so easy.. so i need scripter for my server very much..all my friends what i know have server and personal scripter..i need it too..better if he will be russian. Thx all
  13. Reflex#

    Lights

    Thx work But how without levels? I try but dont work..
  14. Reflex#

    Lights

    thx all good..but i wanna it without stupid levels..
  15. Reflex#

    Lights

    ohhh..no one help me
  16. Reflex#

    Lights

    I see but i wanna do this for all cars,and 2nd: How i can do this without command /lights 1 or 2? Only start script..and it work?
  17. Reflex#

    Lights

    p_lights = {} p_timer = {} p_lvar = {} p_pvar = {} p_lvar2 = {} p_lvar3 = {} p_lvar4 = {} function toggleLights(thePlayer, cmd, level) local level = tonumber(level) if not(level) then outputChatBox("#FF0000 Please select a level![1-2]", thePlayer, 255, 255, 255, true) return end if(level < 1) or (level > 2) then outputChatBox("#FF0000 Please select a level between 1-2!", thePlayer, 255, 255, 255, true) return end local veh = getPedOccupiedVehicle(thePlayer) local id = getElementModel(veh) if (id==411) then if(level == 1) then if(p_lights[veh] == 0) or(p_lights[veh] == nil) then p_pvar[veh] = 1 p_lights[veh] = 1 outputChatBox("#FFFFFFYour Police-lights has been #00FF00enabled.", thePlayer, 0, 200, 100, true) setVehicleOverrideLights ( veh, 2 ) p_timer[veh] = setTimer( function() if(p_lvar[veh] == 0) or (p_lvar[veh] == nil) then p_lvar[veh] = 1 setVehicleLightState ( veh, 1, 0) setVehicleLightState ( veh, 2, 0) setVehicleLightState ( veh, 0, 1) setVehicleLightState ( veh, 3, 1) setVehicleHeadLightColor(veh, 0, 0, 255) else setVehicleLightState ( veh, 3, 0) setVehicleLightState ( veh, 0, 0) setVehicleLightState ( veh, 1, 1) setVehicleLightState ( veh, 2, 1) setVehicleHeadLightColor(veh, 255, 255, 0) p_lvar[veh] = 0 end end, 500, 0) else p_lights[veh] = 0 killTimer(p_timer[veh]) setVehicleLightState ( veh, 0, 0) setVehicleLightState ( veh, 1, 0) setVehicleLightState ( veh, 2, 0) setVehicleLightState ( veh, 3, 0) setVehicleHeadLightColor(veh, 255, 255, 255) setVehicleOverrideLights ( veh, 1 ) end elseif(level == 2) then if(p_lights[veh] == 0) or(p_lights[veh] == nil) then p_lights[veh] = 1 setVehicleOverrideLights ( veh, 2 ) p_timer[veh] = setTimer( function() if(p_lvar3[veh] == 4) then setTimer(function() p_lvar3[veh] = 0 end, 1000, 1) setTimer( function() if(p_lvar4[veh] == 1)then p_lvar4[veh] = 0 -- 0 = vorne links 1 = vorne rechts 2 = hinten links 3 = hinten rechts setVehicleLightState ( veh, 1, 0) setVehicleLightState ( veh, 2, 0) setVehicleLightState ( veh, 0, 1) setVehicleLightState ( veh, 3, 1) setVehicleHeadLightColor(veh, 77, 77, 255) else setVehicleLightState ( veh, 3, 0) setVehicleLightState ( veh, 0, 0) setVehicleLightState ( veh, 1, 1) setVehicleLightState ( veh, 2, 1) setVehicleHeadLightColor(veh, 255, 77, 77) p_lvar4[veh] = 1 end end, 50, 5) return end if(p_lvar2[veh] == 0) or (p_lvar2[veh] == nil) then p_lvar2[veh] = 1 -- 0 = vorne links 1 = vorne rechts 2 = hinten links 3 = hinten rechts setVehicleLightState ( veh, 1, 0) setVehicleLightState ( veh, 2, 0) setVehicleLightState ( veh, 0, 1) setVehicleLightState ( veh, 3, 1) setVehicleHeadLightColor(veh, 0, 0, 255) else setVehicleLightState ( veh, 3, 0) setVehicleLightState ( veh, 0, 0) setVehicleLightState ( veh, 1, 1) setVehicleLightState ( veh, 2, 1) setVehicleHeadLightColor(veh, 255, 0, 0) p_lvar2[veh] = 0 end if(p_lvar3[veh] == nil) then p_lvar3[veh] = 0 end p_lvar3[veh] = (p_lvar3[veh]+1) end, 500, 0) else p_lights[veh] = 0 killTimer(p_timer[veh]) setVehicleLightState ( veh, 0, 0) setVehicleLightState ( veh, 1, 0) setVehicleLightState ( veh, 2, 0) setVehicleLightState ( veh, 3, 0) setVehicleHeadLightColor(veh, 255, 255, 255) setVehicleOverrideLights ( veh, 1 ) end end end end addCommandHandler("lights", toggleLights) addEventHandler ( "onVehicleExplode", getRootElement(), function() if(p_lights[source] == 1) then killTimer(p_timer[source]) end end ) addEventHandler ( "onVehicleRespawn", getRootElement(), function() if(p_lights[source] == 1) then killTimer(p_timer[source]) end end ) addEventHandler("onElementDestroy", getRootElement(), function () if getElementType(source) == "vehicle" then if(p_lights[source] == 1) then killTimer(p_timer[source]) end end end) This is lights script what i find,It was only for cop cars..i do this only for infernus,ok. But how i can do it for all types of cars?
  18. Reflex#

    login resource

    add in acl.xml file,or in Resources>Manage ACL>Groups:Admin>add object. And add name: resource.(here name of your login script),like..resource.login. And restart resource.
  19. It's hard but..i can try..i must EDIT:I dont have so much money,and i dont want to spend my money on games
  20. I must change client side?
  21. I have standart hunter top times..but if player have color in his nick..i want that color show in toptimes..how to do this?
×
×
  • Create New...