xeon17 Posted January 27, 2014 Share Posted January 27, 2014 I have a question is there a function onPickuphit ? like onMarkerhit or a event handler. Link to comment
iPrestege Posted January 27, 2014 Share Posted January 27, 2014 I have a question is there a function onPickuphit ? like onMarkerhit or a event handler. onPickupHit Link to comment
Karuzo Posted January 27, 2014 Share Posted January 27, 2014 Just one click ... https://wiki.multitheftauto.com/wiki/OnPlayerPickupHit Link to comment
xeon17 Posted January 27, 2014 Author Share Posted January 27, 2014 Thank you guys going to crate a nice script Link to comment
xeon17 Posted January 27, 2014 Author Share Posted January 27, 2014 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 Link to comment
xXMADEXx Posted January 27, 2014 Share Posted January 27, 2014 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
Karuzo Posted January 27, 2014 Share Posted January 27, 2014 Ye as xXMADEXx said, You could just create a marker and set its alpha to 0. Link to comment
xeon17 Posted January 27, 2014 Author Share Posted January 27, 2014 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
TAPL Posted January 27, 2014 Share Posted January 27, 2014 https://wiki.multitheftauto.com/wiki/OnPlayerPickupHit The source of this event is the player that hit the pickup. Link to comment
xeon17 Posted January 27, 2014 Author Share Posted January 27, 2014 https://wiki.multitheftauto.com/wiki/OnPlayerPickupHitThe source of this event is the player that hit the pickup. always i make a mistake with source or player hahahha thanks TAPL Link to comment
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