Jump to content

JR10

Retired Staff
  • Posts

    2,947
  • Joined

  • Last visited

Everything posted by JR10

  1. addEventHandler ( "onClientRender" , localPlayer , function ( ) local pX , pY , pZ = getElementPosition ( localPlayer ) local pname = getPlayerName ( localPlayer ) if pname:find ( "#%x%x%x%x%x%x" ) then local hexColor = pname:match ( "#%x%x%x%x%x%x" ) pname = pname:gsub ( "#%x%x%x%x%x%x" , "" ) local r , g , b = getColorFromString ( hexColor ) local x , y = getScreenFromWorldPosition ( x , y , z + 1.2 , 0.06 ) dxDrawText ( pname , x , y , x , y , tocolor ( r , g , b , 255 ) ) else local r , g , b = getPlayerNametagColor ( localPlayer ) local x , y = getScreenFromWorldPosition ( x , y , z + 1.2 , 0.06 ) dxDrawText ( pname , x , y , x , y , tocolor ( r , g , b , 255 ) ) end end) function getColorFromString(hex) hex = hex:gsub("#","") return tonumber("0x"..hex:sub(1,2)), tonumber("0x"..hex:sub(3,4)), tonumber("0x"..hex:sub(5,6)) end This is not tested.
  2. JR10

    Help in Logo!

    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",source) end addEvent("fadeNew",true) addEventHandler("fadeNew",getRootElement(),lol) addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),lol) GUIEditor_Button = {} GUIEditor_Window = {} GUIEditor_Memo = {} function loled() GUIEditor_Window[1] = guiCreateWindow(0.2805,0.2139,0.4172,0.5713,"Rules ",true) guiSetAlpha(GUIEditor_Window[1],0.80000001192093) GUIEditor_Memo[1] = guiCreateMemo(16,38,501,490," Here is a list of our rules, respect them.\n\n\n1. Do NOT use any kinds of hacks and cheats. \n\n2. Do NOT argue with staff, our is last word.\n\n3. Respect other players , especially members.\n\n4. Dont fight with others.\n\n5. Dont use any outgame modified handlings ( use handling editor for that, more info on F9 ) \n\n6. Never ask for membership, we will ask you .\n\n7. Dont bother staff .\n\n8. Have a bit of experience .\n\n9. If something is not understand to you , just read help on F9 .\n\n10. Dont spam vehicles , dont RAM others.\n\n\nAbove all , have fun !\n\n\n\n\nNote: Every rule break can result as kick / ban or permaban.",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(211,547,128,29,"Accept !",false,GUIEditor_Window[1]) addEventHandler("onClientGUIClick",GUIEditor_Button[1],showNamePanel) setTimer ( guiSetEnabled, 10000, 2, GUIEditor_Window[1], true) triggerServerEvent("rulesOnJoin",source) showCursor(true) end addEvent("blabla",true) addEventHandler("blabla",getRootElement(), loled) function showNamePanel () local playerName = getPlayerName ( getLocalPlayer() ) if guiGetVisible (GUIEditor_Window[1]) then guiSetVisible (GUIEditor_Window[1], false) showCursor (false) else guiSetVisible (GUIEditor_Window[1], true) showCursor (true) triggerServerEvent("namePanelServer",source) end end addEvent("namePanel",true) addEventHandler("namePanel",getRootElement(),showNamePanel) Read the WIKI, triggerServerEvent is not like triggerClientEvent.
  3. JR10

    Help in Logo!

    triggerServerEvent(source,"namePanelServer",source) That's wrong. triggerServerEvent("namePanelServer",source)
  4. JR10

    Help!

    The functions uses a player element, you are not specifying a player. function all() for index , player in ipairs ( getElementsByType ( "player" ) ) do control(player) check(player) end end
  5. JR10

    guiCreateFont Help

    Use /debugscript 3. And post the errors.
  6. addEventHandler ( "onPlayerChat" , root , function ( message , type ) if hasObjectPermissionTo ( source , "function.banPlayer" ) then cancelEvent ( ) outputChatBox ( "#ff0000admin " .. getPlayerName ( source ) .. " : " .. message, getRootElement() ) end end) And yeah, this is not a request forum, I just had time, next time try something yourself.
  7. JR10

    Help in Logo!

    GUIEditor_Button = {} GUIEditor_Window = {} GUIEditor_Memo = {} function loled() GUIEditor_Window[1] = guiCreateWindow(0.2805,0.2139,0.4172,0.5713,"Rules ",true) guiSetAlpha(GUIEditor_Window[1],0.80000001192093) GUIEditor_Memo[1] = guiCreateMemo(16,38,501,490," Here is a list of our rules, respect them.\n\n\n1. Do NOT use any kinds of hacks and cheats. \n\n2. Do NOT argue with staff, our is last word.\n\n3. Respect other players , especially members.\n\n4. Dont fight with others.\n\n5. Dont use any outgame modified handlings ( use handling editor for that, more info on F9 ) \n\n6. Never ask for membership, we will ask you .\n\n7. Dont bother staff .\n\n8. Have a bit of experience .\n\n9. If something is not understand to you , just read help on F9 .\n\n10. Dont spam vehicles , dont RAM others.\n\n\nAbove all , have fun !\n\n\n\n\nNote: Every rule break can result as kick / ban or permaban.",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(211,547,128,29,"Accept !",false,GUIEditor_Window[1]) addEventHandler("onClientGUIClick",GUIEditor_Button[1],showNamePanel) setTimer ( guiSetEnabled, 10000, 2, GUIEditor_Window[1], true) triggerServerEvent(source,"rulesOnJoin",source) showCursor(true) end addEvent("blabla",true) addEventHandler("blabla",getRootElement(), loled) function showNamePanel () local playerName = getPlayerName ( getLocalPlayer() ) if guiGetVisible (GUIEditor_Window[1]) then guiSetVisible (GUIEditor_Window[1], false) showCursor (false) else guiSetVisible (GUIEditor_Window[1], true) showCursor (true) triggerServerEvent(source,"namePanelServer",source) end end addEvent("namePanel",true) addEventHandler("namePanel",getRootElement(),showNamePanel)
  8. He uploaded it again: https://community.multitheftauto.com/index.php?p= ... ls&id=2830
  9. addCommandHandler("neverblow", function(player, cmd) if not isPedInVehicle ( player ) then return end local veh = getPedOccupiedVehicle(player) if not veh then return end setVehicleDamageProof ( veh, true ) end)
  10. Ehmm, it's easy, with edf, it can be done.
  11. 1. You mean the original objects? I'm not sure, but isn't that impossible? 2. Agree on that, would be useful, and someone could make it easily.
  12. JR10

    blip on the map

    OK, I added example.
  13. JR10

    blip on the map

    Why not, your English isn't really bad, and the wiki is friendly, you got examples, the functions and what they do, and arguments.
  14. JR10

    blip on the map

    createBlip ( -667.90002441406 , 2309.3999023438 , 135.19999694824 , 37 ) Use the wiki.
  15. setGlitchEnabled ( "quickreload", get("aad.quickreload") ) setGlitchEnabled ( "fastmove", get("aad.fastmove") ) setGlitchEnabled ( "fastfire", get("aad.fastfire") ) Try something yourself first.
  16. Buffalo did, check the link above your link. Thanks Buffalo.
  17. JR10

    Help any one !

    The code you got, should do that, "quickreload", if I'm correct.
  18. Unlikely to get a scripter, for just admin rights.
  19. JR10

    Help any one !

    The ) at the end of file. Also WTH is setPedWeaponSlot ( thePlayer, math.random ( 2, 200) ) function givePlayerWeapons ( thePlayer, commandName ) giveWeapon ( thePlayer, 2, 200 ) end addCommandHandler ( "giveweapons", givePlayerWeapons ) function resourceStart () setGlitchEnabled ( "quickreload", true ) setGlitchEnabled ( "fastmove", true ) setGlitchEnabled ( "fastfire", true ) setGlitchEnabled ( "crouchbug", true ) end addEventHandler ( "onResourceStart", getResourceRootElement ( ), resourceStart )
  20. E-mail, that's not correct at all. That won't work.
×
×
  • Create New...