Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Castillo

    A Problem

    What is the problem?
  2. local teams = { [ "Staff" ] = true, [ "Staff2" ] = true } if ( getPlayerTeam ( hitElement ) and teams [ getTeamName ( getPlayerTeam ( hitElement ) ) ] ) then
  3. Create a table with the teams, then check if the team of the player is in the table.
  4. if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(hitElement)),aclGetGroup("Admin")) then Change that to: if ( getPlayerTeam ( hitElement ) and getTeamName ( getPlayerTeam ( hitElement ) ) == "Staff" ) then
  5. Castillo

    Save system

    Well, the script only saves the weapons when you die, and gives them back when you respawn.
  6. Castillo

    Save system

    You can use this simple script I made long ago to save weapons: http://www.mediafire.com/download/lqq6g ... nsaver.zip
  7. I don't see why that error appears, the server side seems to be just fine.
  8. Castillo

    Question

    You can change your GUI theme in the MTA settings, but keep in mind that only you'll see it.
  9. Castillo

    Question

    The design is the same, just that he used another GUI theme.
  10. Any error on the debugscript? is the server side script added to the meta.xml?
  11. Well, you can get the object from the map itself using getElementByID. Example: local myObject = getElementByID ( "myObjectID" ) moveObject ( myObject, 2000, 0, 0, 0 )
  12. You can use this event for when you select something from the combo box: https://wiki.multitheftauto.com/wiki/On ... oxAccepted Also, guiComboBoxGetSelected requires a combo box element to get the selected item, like this: function hpFunc ( ) local item = guiComboBoxGetSelected ( _cmbbx ) local text = guiComboBoxGetItemText ( _cmbbx, item ) if ( text == "Regeneration" ) then guiSetVisible ( regHP, true ) end end
  13. Well, if you made that script, you would know what that function does.
  14. Yes, you must use guiGridListGetSelectedItem and guiGridListGetItemText, then to trigger a server side event to create the vehicle, you must use triggerServerEvent.
  15. Castillo

    Question

    No, that's not what he's looking for. @EufraT: That admin panel is the one made by Lil_Toady, and it comes with the default resources when you install MTA.
  16. Try changing 'localhost' to 127.0.0.1.
  17. but if cliente.lua is compiled has no way of knowing what the event It does, they execute the script and the debug script will output that it triggered X event and is not added server side.
  18. That's not a really secure way to do it, since they can also add the server side event to do whatever it has to do.
  19. There's missing parts, such as the function "fadeVisible".
  20. Where's the rest of the script?
  21. I don't understand what do you mean, please explain yourself.
×
×
  • Create New...