• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

:: Can you help in this? :: If a item is on floor the player can't use it :: THanks!

Nubaza

LUA Scripter
Joined
Jun 5, 2011
Messages
337
Solutions
1
Reaction score
23
Location
Chile
Okay, hello otLand!
I don't know a function if a item is on the floor the player can't use it.

But.. if the item is in backpack of the player, the player can use it, undestood?

Very thanks!
 
usually if the player used item in the ground with another item the player pick it up automaticly
i dont know what you mean

- - - Updated - - -

usually if the player used item in the ground with another item the player pick it up automaticly
i dont know what you mean
 
Okay look, this is for a bike system.
I have used this line:
LUA:
 if not isInArray(item.uid, getPlayerSlotItem(cid, CONST_SLOT_BACKPACK).itemid) then
 doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "This bike is on floor, you must put it in backpack.")
 return true
 end
Because only slot_backpack is used to put objects on my server.

But the line don't work, can help this?!
 
Back
Top