onActionCallBack
#6
Yes, use E_PLUGIN_BLOCK_PLACE.

And yes you can get the currently holding item from the player's inventory.

http://mc-server.org/wiki/doku.php?id=api:cinventory
cPlayer:GetInventory():GetEquippedItem()

This gives you a cItem object http://mc-server.org/wiki/doku.php?id=api:citem
Reply
Thanks given by: Taugeshtu


Messages In This Thread
onActionCallBack - by geser - 03-31-2012, 08:57 AM
RE: onActionCallBack - by FakeTruth - 03-31-2012, 09:59 PM
RE: onActionCallBack - by geser - 04-01-2012, 04:37 AM
RE: onActionCallBack - by FakeTruth - 04-01-2012, 05:08 AM
RE: onActionCallBack - by Taugeshtu - 05-31-2012, 08:24 AM
RE: onActionCallBack - by FakeTruth - 05-31-2012, 09:00 AM
RE: onActionCallBack - by Taugeshtu - 05-31-2012, 07:02 PM
RE: onActionCallBack - by FakeTruth - 05-31-2012, 07:21 PM



Users browsing this thread: 1 Guest(s)