Jump to content

little help


orcun99

Recommended Posts

Posted
lvcol = createColCircle (  1796.6412353516,1740.2864990234, 1250 )

  
function player_Wasted ( ammo, attacker, weapon, bodypart )
  outputChatBox("öldün")
end
addEventHandler ( "onPlayerWasted", getRootElement(), player_Wasted )

  
  
  
  function giris( player )
       outputChatBox("You will cant use pvp command in Las Venturas",player)
end 
addEventHandler( "onColShapeHit", lvcol, giris ) 

SERVER SİDE MY CODE  

I need if player oncolshapehit and die then outputchatbox("öldün")

560x95_FFFFFF_FF9900_000000_000000.png

  • Moderators
Posted
function player_Wasted ( ammo, attacker, weapon, bodypart )
	if isElementWithinColShape(source, lvcol) then
		outputChatBox("öldün")
	end
end
addEventHandler ( "onPlayerWasted", getRootElement(), player_Wasted )

https://wiki.multitheftauto.com/wiki/IsElementWithinColShape

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...