Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Castillo

    Error, Help

    These are caused because the script is trying to destroy an element which doesn't exist.
  2. Well, I guess they aren't supported.
  3. Wrong, you must change them in the .map file at the "play" game mode.
  4. It may only work with blip ID '0'.
  5. Castillo

    Help

    https://wiki.multitheftauto.com/wiki/In ... ng_the_GUI It doesn't include the actual account functions, but you can change it.
  6. function onClientPlayerWeaponFireFunc ( weapon, ammo, ammoInClip, x, y, z, hitElement ) if ( weapon == 23 ) then local sound = playSound3D ( "Taser.wav", x, y, z, false ) setSoundVolume ( sound, 1 ) setSoundMaxDistance ( sound, 10 ) setSoundVolume ( sound, 3 ) setSoundMaxDistance ( sound, 100 ) setElementInterior ( sound, 0 ) setElementDimension ( sound, 0 ) end end addEventHandler ( "onClientPlayerWeaponFire", root, onClientPlayerWeaponFireFunc )
  7. Castillo

    Help

    You must trigger a server side event, then use the account functions, there's a tutorial on how to create a login system on the wiki.
  8. Castillo

    TeamPanel

    triggerClientEvent("onTeamAdmin", getRootElement(),source) Change that line to: triggerClientEvent ( source, "onTeamAdmin", source )
  9. Castillo

    Ayuda!!!

    "race" type="map" name="[DD]OneShotOneKill" author="|TOP|Neo" version="1.0.0"> "One-Shot-One-Kill.map" dimension="0"> Para la proxima, usa esta herramienta online que sirve para verificar si un XML tiene errores y donde estan. http://www.w3schools.com/xml/xml_validator.asp
  10. You must make that part by editing freeroam.
  11. If I recall correctly, I've once helped with the same thing, search the forums.
  12. MTA includes a resource called "deathpickups", just start it.
  13. You want the weapon to have infinite clip ammo for the admins?
  14. Castillo

    Help!

    Tried downloading it again?
  15. Yeah, but that doesn't has anything to do with the error he posted. @GamerDeMTA: The problem was that you were trying to attach an event handler to a non-existent function.
  16. addEventHandler ( "onElementModelChange", root, function ( oldModel, newModel ) local account = getPlayerAccount ( source ) local accountName = getAccountName ( account ) if ( newModel == 1 and not isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Admin" ) ) ) then outputChatBox ( "This skin is restricted to the Admin group.", source, 0, 255, 0 ) setElementData ( source, oldModel ) end end ) That'll set the skin back to what he had if he's not in the Admin group and the skin he's trying to use is 1.
  17. Client side script errors won't appear on the server console ( black window ), they'll only appear in the in-game debugscript.
×
×
  • Create New...