Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Castillo

    GUI help

    if ( getPlayerTeam(player, getTeamName) == team or team == "SWAT") then That line doesn't make any sense. Re-read again the syntax of each function.
  2. Well, the first argument of "onElementModelChange" is the old model, is not a player element. Get the vehicle driver with: getVehicleController
  3. Try: "onPlayerWinDD", has no arguments as far as I know.
  4. Castillo

    Crear eventos

    Con la funcion: triggerEvent
  5. Castillo

    GUI help

    Post what you did.
  6. You are using three different events for one single function, and all these events have different arguments. onMapStarting: It has no player argument as source. onElementModelChange: 'source' is the element that got his model changed. So you would need to use: onVehicleEnter onElementModelChange and use 'source' as vehicle element. Also, onMapStarting is not required because when you spawn, 'onVehicleEnter' will be triggered.
  7. You can change their nametag text with: setPlayerNametagText It won't change the display name on chat though.
  8. Castillo

    register

    You could use the italian section: viewforum.php?f=134 That error appears because the script can't add the account, which must be because the resource wasn't added to the acl group "Admin".
  9. You are not binding the key to a function, you are trying to bind it to an element which won't work. bindKey ( "F2", "down", function ( ) if ( not NitroWindow ) then Gui ( ) end guiSetVisible ( NitroWindow, true ) showCursor ( true ) guiSetInputEnabled ( true ) addEventHandler ( "onClientGUIClick", CloseWindowButton, close, false ) addEventHandler ( "onClientGUIClick", SetDefaultButton, default, false ) addEventHandler ( "onClientGUIClick", SaveChangesButton, accept, false ) guiScrollBarSetScrollPosition ( GreenScrollBar, GC ) guiScrollBarSetScrollPosition ( BlueScrollBar, BC ) end )
  10. I really don't get much of what you said, you are talking about a public resource?
  11. There isn't any as far as I know.
  12. The same way you created the first one...?
  13. Is not what I meant, I mean debug the code, piece by piece.
  14. Are you sure that the script is set to server side on meta.xml?
  15. Try adding: addEvent ( "onPlayerFinish", true )
  16. Castillo

    [help]Lua

    "luac" means is a compiled script, and you won't get help on how to decompile it here.
  17. Just set his/her interior to 0?
  18. Castillo

    help

    I still don't get what do you mean.
  19. Castillo

    help

    You are saying that if a player selects one of these "mod packs", everyone on YOUR screen will have these weapons?
  20. As far as I know, is not used for anything, some scripters use it because they use it on other programming languages.
  21. You can see but you can't. The topic name says it all SFX (sound effects). @krischkros, I like the sounds personally. I like Windsor's best. Bullet's sound is a bit too quiet and sounds like if it was inside a box. Oh, my bad, I didn't read that part carefully, didn't had sound on either. P.S: The sound effects are nice.
×
×
  • Create New...