Jump to content

JR10

Retired Staff
  • Posts

    2,947
  • Joined

  • Last visited

Everything posted by JR10

  1. There is a built in command "help".
  2. addCommandHandler ( string commandName, function handlerFunction, [bool restricted = false, bool caseSensitive = true] ) The first argument (the string) is the command. second one is the function. function showhelp(thePlayer) outputChatBox("/pm, send a personal message",thePlayer,255,0,0) outputChatBox("/stations,set radio steams",thePlayer,255,0,0) outputChatBox("/rules,a explanation of the rules and the punishments",thePlayer,255,0,0) outputChatBox("/report report someone who breaks the rules ",thePlayer,255,0,0) outputChatBox("/lock, lock your vehicle for others",thePlayer,255,0,0) end addCommandHandler("help",showhelp) The command is /help now.
  3. What is this? function showhelp(thePlayer) outputChatBox("/pm, send a personal message",thePlayer,255,0,0) outputChatBox("/stations,set radio steams",thePlayer,255,0,0) outputChatBox("/rules,a explanation of the rules and the punishments",thePlayer,255,0,0) outputChatBox("/report report someone who breaks the rules ",thePlayer,255,0,0) outputChatBox("/lock, lock your vehicle for others",thePlayer,255,0,0) end addCommandHandler("showhelp",showhelp) No need for semi colons btw.
  4. addEventHandler("onPlayerLogin", root, function() bindKey(source,"F7","down",getPlayerStats) end )
  5. Search on the community, you will find all the public resources. Haven't found any? Then there is no public DD game mode, learn and make it yourself: wiki.multitheftauto.com/wiki/Main_Page
  6. And other crap resources. Like another spawnpoint in some resource.
  7. JR10

    NEED HELP

    Well, if you want that, you will have to pay someone to script it for you. And you may use the Community, to download public resources.
  8. JR10

    NEED HELP

    Start learning, MTA WIKI And don't use caps.
  9. Just get his serial, and check on onPlayerConnect. If there is one slot available, and his serial isn't the same as the VIP one, kick him. You would increase checking how many slots available, according to how many VIP players you got.
  10. JR10

    Help in Logo!

    guiSetVisible setTimer ??
  11. car mod: https://community.multitheftauto.com/index.php?p= ... ls&id=2802 stolen: https://community.multitheftauto.com/index.php?p= ... ls&id=2799 EDIT: Another car mod: https://community.multitheftauto.com/index.php?p= ... ls&id=2808
  12. Because there is no script for showing admins on /admins or /admin.
  13. JR10

    Help in Logo!

    Freezes your PC? function fade() fadeCamera(true,10.0) triggerClientEvent(source , "fadeNew", source) end addEventHandler("onPlayerJoin",getRootElement(),fade) addEvent( "blurFade",true ) addEventHandler("blurFade",getRootElement(),fade) All I did, was specifying triggerFor in triggerClientEvent.
  14. JR10

    Help in Logo!

    OMG, dude, what's wrong with you, do you take my code? Or just ignore it function fade() triggerClientEvent(source , "fadeNew", source) end addEventHandler("onPlayerJoin",getRootElement(),fade) addEvent( "blurFade",true ) addEventHandler("blurFade",getRootElement(),fade)
  15. 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) setTimer(function() triggerServerEvent("blurFade",getLocalPlayer()) end, 10000, 1 ) end addEvent("fadeNew",true) addEventHandler("fadeNew",getRootElement(),lol)
  16. JR10

    Help in Logo!

    You didn't take the server side.
  17. if you want, admin levels script, you won't find that. Use "admin" resource. Else, if you just want to add groups. Open up acl.xml and add <group name="Owner" /> And save it, the server must be closed.
  18. He means, the game mode in the server browser.
  19. JR10

    Map Converter

    http://www.convertffs.com/
  20. JR10

    markers

    Didn't? what do you mean? It gets the player's position, and draws a text.
  21. JR10

    markers

    addEventHandler("onClientRender", root, function() local px, py, pz = getElementPosition(getLocalPlayer()) local x, y = getScreenFromWorldPosition( px, py, pz + 1.2 , 0.06 ) 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) end ) Add debug messages.
  22. JR10

    markers

    What happens exactly.
×
×
  • Create New...