Jump to content

pickup , colshapehit , onplayerwasted


orcun99

Recommended Posts

Posted (edited)

server side:

   lvcol = createColCircle (  1796.6412353516,1740.2864990234, 1250 ) --LAS VENTURAS COOLSAPEHİT
 
 

function playerJustGotDied(ammo, attacker, weapon, bodypart)
outputChatBox("öldün")
 x, y, z = getElementPosition ( source ) 
  local money = createPickup ( x, y, z, 3, 1212 )
  
end
addEventHandler("onPlayerWasted", getRootElement(), playerJustGotDied);

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

if the player dies in lasventuras, I want the money pickup out where he died.

but if the player not in  dies in lasventuras then there is no pickup out when he died

Edited by orcun99

560x95_FFFFFF_FF9900_000000_000000.png

Posted
function playerJustGotDied()
	local x, y, z = getElementPosition ( source)
	if (getZoneName (x, y, z, true) == "Las Venturas") then
		local money = createPickup(x, y, z, 3, 1212)
		outputChatBox("öldün")
	end
end
addEventHandler("onPlayerWasted", getRootElement(), playerJustGotDied);

I did not test

  • Thanks 1

? DID I HELP YOU? 

Tsd6e1t.png

________________________________________________________________________

ム MY STEAM

76561198321211115.png

________________________________________________________________________

? MY SITE

cGejgxz.png

www.tommy.br.com

Posted
13 hours ago, Tommy. said:

function playerJustGotDied()
	local x, y, z = getElementPosition ( source)
	if (getZoneName (x, y, z, true) == "Las Venturas") then
		local money = createPickup(x, y, z, 3, 1212)
		outputChatBox("öldün")
	end
end
addEventHandler("onPlayerWasted", getRootElement(), playerJustGotDied);

I did not test

works thank u but one more think I need if player onpickup then giveplayer money +1000

560x95_FFFFFF_FF9900_000000_000000.png

Posted (edited)

Add this

function pickupUse ( player )
 if getElementModel(source) == 1212 then
		givePlayerMoney ( player, 10000 )
	end
end
addEventHandler ( "onPickupUse", resourceRoot, pickupUse )

 

Edited by CodyJ(L)

Wolf Inc Discord

Youtube channel
Github

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...