If attached object slot is not used?
#1

~~~SOLVED~~~
Reply
#2

https://sampwiki.blast.hk/wiki/IsPlayerA...ObjectSlotUsed

It couldn't be more obvious, really. You only needed to click the link at the bottom of this page.
Reply
#3

edit: Nothing, but i think he asked how to check if it is NOT used?
Reply
#4

Quote:
Originally Posted by airplanesimen
Посмотреть сообщение
edit: Nothing, but i think he asked how to check if it is NOT used?
Vince already said that, use the IsPlayerAttachedObjectSlotUsed

Quote:
Originally Posted by Vince
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/IsPlayerA...ObjectSlotUsed

It couldn't be more obvious, really. You only needed to click the link at the bottom of this page.
on wiki its said "Returns 1 if there is an object attached in the specified slot, 0 if not"

so it can be checked by using:
pawn Код:
if(IsPlayerAttachedObjectSlotUsed(playerid, slot) == 0) // check if slot is not used (return 0)
or
pawn Код:
if(!IsPlayerAttachedObjectSlotUsed(playerid, slot)) // check if slot is not used (return 0)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)