Jump to content

Miliviu

Members
  • Posts

    3
  • Joined

  • Last visited

Miliviu's Achievements

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody.

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody. (2/54)

0

Reputation

  1. 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 )
  2. 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
×
×
  • Create New...