orcun99 Posted February 25, 2018 Posted February 25, 2018 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")
Moderators IIYAMA Posted February 25, 2018 Moderators Posted February 25, 2018 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 Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now