Jump to content

JR10

Retired Staff
  • Posts

    2,947
  • Joined

  • Last visited

Everything posted by JR10

  1. JR10

    Help in Logo!

    client: GUIEditor_Label = {} function lol () GUIEditor_Label[1] = guiCreateLabel(0.4063,0.3779,0.1531,0.209,"Welcome to our server ! Server is under construction at the moment , but feel free to play on it , expect more gamemodes from us , more features and much , much more ...",true) guiLabelSetColor(GUIEditor_Label[1],0,255,0) guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",true) guiSetFont(GUIEditor_Label[1],"clear-normal") fadeCamera(false,10.0) setTimer( fadeCamera, 10000,1,true) setTimer ( guiSetVisible, 10000, 1, GUIEditor_Label[1], false) triggerServerEvent("blurFade",getLocalPlayer()) end addEvent("fadeNew",true) addEventHandler("fadeNew",getRootElement(),lol) server: function fade() triggerClientEvent(source , "fadeNew", source) end addEventHandler("onPlayerJoin",getRootElement(),fade) addEvent( "blurFade",true ) addEventHandler("blurFade",getRootElement(),fade) triggerServer/ClientEvent doesn't have an argument for the function, it's already triggered as soon as the event is triggered. It's fading because you added "fadeCamera" in "fade" function, seriously, it's like you are not the one who made it.
  2. JR10

    Function

    outputConsole(getPlayerName(thePlayer).." Logged into "..getAccountName(current_account)) Seriously, not every problem you encounter you post it here, try something yourself first.
  3. JR10

    markers

    addEventHandler("onClientRender", root, function() local px, py, pz = getElementPosition(getLocalPlayer()) local x, y = getScreenFromWorldPosition( px, py, pz ) if not x or not y then return end local camX,camY,camZ = getCameraMatrix() if not isLineOfSightClear ( camX , camY, camZ, px, py, pz, true, false, false, true, false, true, false, getLocalPlayer ( )) then return end dxDrawText("LV", x, y, x, y,tocolor(255,255,255,255),2.0,"default","left","top",false,false,false) end )
  4. JR10

    markers

    Did you just copy the same old code? Take the new one again.
  5. JR10

    markers

    local x, y = getScreenFromWorldPosition(-1921.900, 536.816, 32.340) dxDrawText("LV", -1921.900, 536.816, 32.340,380.0,tocolor(255,255,255,255),2.0,"default","left","top",false,false,false) I don't know how, I didn't notice that.
  6. JR10

    markers

    oh lol addEventHandler("onClientRender", root, function() local px, py, pz = getElementPosition(getLocalPlayer()) local x, y = getScreenFromWorldPosition( px, py, pz ) if not x or not y then return end local camX,camY,camZ = getCameraMatrix() if not isLineOfSightClear ( camX , camY, camZ, px, py, pz, true, false, false, true, false, true, false, getLocalPlayer ( )) then return end dxDrawText("LV", x, y, x, y,tocolor(255,255,255,255),2.0,"default","left","top",false,false,false) end )
  7. JR10

    Host serverFFS -.-

    Well, we asked on serverFFS forum, told us to refresh the page, and we had it upgraded.
  8. JR10

    Register denied

    If you used addCommandHandler on this, then it won't work, because the second argument, is the command. Also add the resource to admin group in ACL.
  9. JR10

    login

    GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(201,213,255,341,"Welcome",false) GUIEditor_Edit[1] = guiCreateEdit(76,58,157,35,"",false,GUIEditor_Window[1]) GUIEditor_Edit[2] = guiCreateEdit(76,96,157,35,"",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(11,65,63,21,"Usuario",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,255)) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(12,101,64,24,"Contrasena",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],255,255,255)) guiLabelSetVerticalAlign(GUIEditor_Label[2],"top") guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(19,180,212,22,"O si eres Nuevo Registrate",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[3],255,150,255)) guiLabelSetVerticalAlign(GUIEditor_Label[3],"top") guiSetFont(GUIEditor_Label[3],"clear-normal") GUIEditor_Label[4] = guiCreateLabel(20,27,212,22,"Bienvenido porfavor Logeate",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[4],255,150,255)) guiLabelSetVerticalAlign(GUIEditor_Label[4],"top") guiSetFont(GUIEditor_Label[4],"clear-normal") GUIEditor_Button[1] = guiCreateButton(133,142,101,31,"Logear",false,GUIEditor_Window[1]) GUIEditor_Edit[3] = guiCreateEdit(74,202,157,35,"",false,GUIEditor_Window[1]) GUIEditor_Edit[4] = guiCreateEdit(74,240,157,35,"",false,GUIEditor_Window[1]) GUIEditor_Label[5] = guiCreateLabel(10,208,63,21,"Usuario",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[5],255,255,255)) guiLabelSetVerticalAlign(GUIEditor_Label[5],"top") guiSetFont(GUIEditor_Label[5],"default-bold-small") GUIEditor_Label[6] = guiCreateLabel(7,245,64,24,"Contrasena",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[6],255,255,255)) guiLabelSetVerticalAlign(GUIEditor_Label[6],"top") guiSetFont(GUIEditor_Label[6],"default-bold-small") GUIEditor_Button[2] = guiCreateButton(133,284,101,31,"Registrarse",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(20,289,100,38,"Jugar Sin registrarse",false,GUIEditor_Window[1]) guiSetVisible(GUIEditor_Window[1],false) addEventHandler("onClientGUIClick",getRootElement(), function () if (source == GUIEditor_Button[3]) then guiSetVisible ( GUIEditor_Window[1], false ) showCursor(false) local localPlayer = getLocalPlayer ( ) function windowHandler( ) local playername = getPlayerName(localPlayer) guiSetText(LoginUsername, "") guiSetText(EditRegisterUsername, "") guiSetText(LoginUsername, playername) guiSetText(EditRegisterUsername, playername) guiSetVisible ( GUIEditor_Window[1], true ) guiSetInputEnabled(true) showCursor ( true ) end function onClickBtn ( button, state ) if (source == GUIEditor_Button[1]) then triggerServerEvent ( "onLogin", getRootElement(), localPlayer, guiGetText(LoginUsername), guiGetText(LoginPassword) ) end end function onClickBtn2 ( button, state ) if (source == GUIEditor_Button[2]) then triggerServerEvent ( "onRegister", getRootElement(), localPlayer, guiGetText(EditRegisterUsername), guiGetText(EditRegisterPassword)) end end function hideLoginWindow() guiSetInputEnabled(false) guiSetVisible ( GUIEditor_Window[1], false ) showCursor ( false ) end addEvent( "hideLoginWindow", true ) addEventHandler( "hideLoginWindow", getRootElement(), hideLoginWindow ) addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), windowHandler ) addEventHandler ( "onClientGUIClick", GUIEditor_Button[1], onClickBtn, false ) addEventHandler ( "onClientGUIClick", GUIEditor_Button[2], onClickBtn2, false )
  10. stole shader_water from the wiki : https://community.multitheftauto.com/index.php?p= ... ls&id=2760 took few resources in one : https://community.multitheftauto.com/index.php?p= ... ls&id=2759
  11. Why are you even posting this? 1. The problem is fixed, 3 days ago. 2. /register isn't hardcoded in MTA, it only works when admin panel is running.
  12. JR10

    Need some help

    Hey, we don't accept requests. You should learn, and make it yourself. https://wiki.multitheftauto.com/wiki/Main_Page
  13. if I'm right, changes the way it's read.
  14. If you have NP ++: Encoding >> Encode in UTF-8 >> Save.
  15. JR10

    Hello

    Sounds music to my ears.
  16. JR10

    Hello

    Welcome. Wiki: https://wiki.multitheftauto.com/wiki/Main_Page
  17. MTA 1.1? Change encoding to UTF-8
  18. JR10

    playSound

    Did you add it to the meta? function playRadio() if radio then stopSound(radio) else radio = playSound("live.m3u") end end bindKey("r","down",playRadio)
  19. JR10

    2 questions

    function spawnHandler(spawn) if(spawn == "grove")then spawnPlayer(source, 2497.2021, -1666.7891, 13.3850) fadeCamera(source, true) setCameraTarget(source, source) elseif(spawn == "downtown")then spawnPlayer(source, 1671.63562, -1325.01025, 17.42757) fadeCamera(source, true) setCameraTarget(source, source) elseif(spawn == "beach")then spawnPlayer(source, 322.89639, -1774.56567, 4.85479) fadeCamera(source, true) setCameraTarget(source, source) elseif(spawn == "airport")then spawnPlayer(source, 1959.23608, -2272.61108, 13.54688) fadeCamera(source, true) setCameraTarget(source, source) end end addEvent("spawnTrigger", true) addEventHandler("spawnTrigger", getRootElement(), spawnHandler)
  20. Just helping, because I still couldn't see it.
  21. JR10

    Radio streaming

    Post the script. Any errors/warnings?
  22. JR10

    2 questions

    1.I'm not sure about that, perhaps wild card "*" can work. 2.You are specifying a variable, where it should be a string. server: function spawnHandler() if(spawn == "grove")then spawnPlayer(source, 2497.2021, -1666.7891, 13.3850) fadeCamera(source, true) setCameraTarget(source, source) elseif(spawn == "downtown")then spawnPlayer(source, 1671.63562, -1325.01025, 17.42757) fadeCamera(source, true) setCameraTarget(source, source) elseif(spawn == "beach")then spawnPlayer(source, 322.89639, -1774.56567, 4.85479) fadeCamera(source, true) setCameraTarget(source, source) elseif(spawn == "airport")then spawnPlayer(source, 1959.23608, -2272.61108, 13.54688) fadeCamera(source, true) setCameraTarget(source, source) end end addEvent("spawnTrigger", true) addEventHandler("spawnTrigger", getRootElement(), spawnHandler)
  23. JR10

    Question

    POP-Up? if you mean fade and move, use onClientRender , to edit the size , alpha and position.
×
×
  • Create New...