Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. I don't know where you got that from xUltimate, because it has many mistakes on it. addCommandHandler( "setskin", function( player, cmd, skin ) skin = tonumber( skin ) local oldSkin = getElementModel( player ) if oldSkin == skin then outputChatBox( "You already using that skin.", player, 255, 255, 0 ) elseif setElementModel( player, skin ) then outputChatBox( "Skin changed to " .. skin, player, 0, 255, 153 ) else outputChatBox( "Skin " .. skin .. " is invalid.", player, 255, 0, 0 ) end end ) this one works fine. Edit: Oh, i see where you got that code from, mta paradise.
  2. You can register with the "logingui" when you join o_o, but make sure you got the registration enabled! there is a settings.xml and <setting name="@players.allow_registration" value="1"/> check if value is "1"
  3. tell me, how are you using the function "robb"?
  4. Jumper, i would recommend you to start searching before ask something.
  5. what do you mean?
  6. Castillo

    next map

    if you want only to load the map then why you put changeGamemode? i think you should use changeGamemodeMap
  7. [url=https://wiki.multitheftauto.com/wiki/Main_Page]https://wiki.multitheftauto.com/wiki/Main_Page[/url] https://wiki.multitheftauto.com/wiki/Introduction_to_Scripting_the_GUI
  8. if you aren't going to make it public shouldn't be in another section? (maybe i'm wrong)
  9. This will be a public game mode or?
  10. Castillo

    Problem

    This is the MTA forums not a server forums o_o, go contact the server staff.
  11. in mtaserver.conf you can set resources to auto start with server.
  12. type in game /login (it will say syntax error if you don't put it correctly)
  13. Is this even your script? because i seen this on a very old topic o_O
  14. You can change your name in "User control panel"
  15. I don't understand.. the script we fixed was to check when you enter that "policeVehicle".
  16. Castillo

    next map

    if it needs admin rights then add it to acl.
  17. Try something by yourself next time
  18. policeVehicle = createVehicle ( 426, 2418.4436035156, 85.328956604004, 26.292650222778, 0, 0, 90 ) policeSkins = { [286]=true,[288]=true } function enterVehicle ( player, seat, jacked ) if (getElementModel( source ) == getElementModel(policeVehicle) ) and ( not policeSkins[getElementModel( player )] ) then outputChatBox ( "You're not a cop!", player ) cancelEvent() end end addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle )
  19. Just try something
  20. MTA has a built-in /login command, i don't see much point creating a new one
  21. Castillo

    Radar

    Then use this guide: https://wiki.multitheftauto.com/wiki/Resources
  22. local myWindow = guiCreateWindow ( 0, 0, 0.5, 0.4, "Information", true )--create a window which has "Information" in the title bar. guiSetVisible(myWindow,false) local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow ) --create a tab panel which fills the whole window local tabMap = guiCreateTab( "Map Information", tabPanel ) -- create a tab named "Map Information" on 'tabPanel' local tabHelp = guiCreateTab( "Help", tabPanel ) -- create another tab named "Help" on 'tabPanel' -- adds a label (text) to each tab guiCreateLabel(0.02,0.04,0.94,0.2,"This is information about the current map",true,tabMap) guiCreateLabel(0.02,0.04,0.94,0.92,"This is help text.",true,tabHelp) outputChatBox("TEST:",thePlayer) function open_close() if guiGetVisible(myWindow) == false then guiSetVisible(myWindow,true) showCursor(true) else guiSetVisible(myWindow,false) showCursor(false) end end addCommandHandler("cmds",open_close)
  23. try this, function onPlayerCommand(thePlayer,command) if isElement(myWindow) then destroyElement(myWindow) end local myWindow = guiCreateWindow ( 0, 0, 0.5, 0.4, "Information", true )--create a window which has "Information" in the title bar. local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow ) --create a tab panel which fills the whole window local tabMap = guiCreateTab( "Map Information", tabPanel ) -- create a tab named "Map Information" on 'tabPanel' local tabHelp = guiCreateTab( "Help", tabPanel ) -- create another tab named "Help" on 'tabPanel' -- adds a label (text) to each tab guiCreateLabel(0.02,0.04,0.94,0.2,"This is information about the current map",true,tabMap) guiCreateLabel(0.02,0.04,0.94,0.92,"This is help text.",true,tabHelp) outputChatBox("TEST:",thePlayer) end addCommandHandler("cmds",onPlayerCommand)
  24. Castillo

    Radar

    I'm guessing you are using the Default game mode named "play" and "freeroam" include, then you must make "play" a folder and open broph.lua and paste the code Scooby made on it.
  25. post your meta.xml here.
×
×
  • Create New...