Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Castillo

    z button

    Enabled the voice at the: "mtaserver.conf" and start the resource called: "voice".
  2. Have you tried reconnecting? if the 'id' element data was set successfully, then it should show it on scoreboard as well.
  3. Because you must use the openPicker function like this: openPicker ( "Car color", "#FFFFFF", "Car color changer" )
  4. That has many problems. You could instead the resource: "slothbot", which let's you create bots that can fire to a specified team. Link: https://community.multitheftauto.com/ind ... ils&id=672
  5. I don't understand your question, please explain yourself further.
  6. setElementFrozen It won't disable controls, just freeze him.
  7. No existe, pero crearon una: https://wiki.multitheftauto.com/wiki/Math.round
  8. function test ( ) outputChatBox ( "Test" ) end function test2 ( ) outputChatBox ( "Test2" ) end functions = { test, test2 } functions [ math.random ( #functions ) ] ( )
  9. https://community.multitheftauto.com/ind ... ils&id=672 That resource supports teams as far as I know.
  10. Castillo

    Help

    Use: setElementHealth setPedArmor
  11. Castillo

    Help

    You want us to make two commands to give health and armour?
  12. 'source' is defined nowhere @ updateHambre function. Also, "hambre" variable is global, the same for everyone. I think you should make the script client side.
  13. You can use this resource: https://community.multitheftauto.com/ind ... ils&id=960 Wiki for it: https://wiki.multitheftauto.com/wiki/Res ... ustomblips
  14. My resource works with MTA default account system.
  15. for i, v in ipairs(getElementsByType("player")) do That is not required, rest seems to be fine.
  16. getPlayerLevel is a server side function, you should use getElementData instead. maxstamina = 10 addEventHandler ( "onClientPlayerSpawn", getLocalPlayer(), function ( ) local level = tonumber ( getElementData ( localPlayer, "level" ) or 0 ) maxstamina = ( level * 10 ) setTimer ( checkKey, 700, 0 ) setTimer ( updateStamina, 1000, 0 ) end ) stamina = maxstamina function checkKey ( ) if ( getControlState ( "sprint" ) ) and ( stamina ~= 0 ) then stamina = ( stamina - 1 ) end if ( stamina == 0 ) then setControlState( "sprint", false ) end end function updateStamina ( ) if ( stamina ~= maxstamina and getControlState ( "sprint" ) == false ) then stamina = ( stamina + 1 ) end end Instead of all the 'if' checks for level, I'd this: maxstamina = ( level * 10 ) Will do the same, but simplified.
  17. Castillo

    Musica

    Dejemos el off-topic.
  18. https://community.multitheftauto.com/ind ... ls&id=2963 That's "admin tag" resource, it'll show the tag of your "admin level".
  19. I doubt you'll find free scripters here, most are busy with their own projects, and to work for another, they'll ask money.
×
×
  • Create New...