Miliviu

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Miliviu

  • Rank
    I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody.
  1. Thanks, it's perfect, have a good day
  2. Thanks! it worked! But now the message spams every second a player gets hitted by the spray, It's possible to limit the number of messages? Thanks in advantage addEventHandler ( "onPlayerDamage", getRootElement (), function ( attacker, weapon ) if ( weapon == 41 ) then if ( getElementType ( source ) == "player" ) then fadeCamera(source, false) setTimer(function(source) fadeCamera(source, true) end, 5000, 1, source) outputChatBox ( "Has cegado a alguien con un gas pimienta " , attacker, 0, 255, 120 ) outputChatBox ( "Has sido cegado con un gas pimienta por ." , source, 0, 255, 120 ) end end end )
  3. addEventHandler ( "onPlayerDamage", getRootElement (), function ( attacker, weapon ) if ( weapon == 41 ) then if ( getElementType ( source ) == "player" ) then fadeCamera(source, false) setTimer(function() fadeCamera(source, true) end, time, 1) outputChatBox ( "Has cegado a " source, attacker, 0, 255, 120 ) outputChatBox ( "Has sido cegado con un gas pimienta.", source, 0, 255, 120 ) end end end ) Hi! I made a pepper spray that blinds when you get hitted by it, but when i used it i have this errors spray/spray.Lua:7 bad argument @ fadeCamera expected element at argument 1, got nil spray/spray.Lua:9 attempt to concatenate global source a userdata value