Jump to content

Question


xeon17

Recommended Posts

I got +1 question , is there a function like isElementwithPickup something like is ElementwithinMarker , i created before a script busniess with markers , i seen on 1 server it work with pickups. but how

There's no function like this, but you can just simply create a marker (or col shape) around the pickup.

Link to comment
House = createPickup (2087.9260253906, 1448.8768310547, 9.8203125, 4, 1273 ) 
  
addEventHandler("onPlayerPickupHit", House, 
function (thePlayer) 
outputChatBox ( "#00FFFF [PROP] Para comprar a propriedade digita #00FF00 /prop1  (10000$)", thePlayer, 255, 255, 255, true) 
  
  
function Buy ( thePlayer ) 
local money = getPlayerMoney(thePlayer) 
if (money >= 10000) then 
takePlayerMoney(thePlayer, 10000) 
outputChatBox ( "#00FFFF [PROP] Voce comprou a propridade", thePlayer, 255, 255, 255, true) 
else 
outputChatBox ( "#00FFFF [PROP] Voce não possui dinheiro suficiente para comprar a propriedade", thePlayer, 255, 255, 255, true) 
end 
else 
outputChatBox("#00FFFF [PROP] Você não esta em uma propriedade", thePlayer, 255, 255, 255, true) 
 end 
end 
addCommandHandler("prop1", buyProp) 

is the onPlayerPickupHit correct ?

Link to comment

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