If attached object slot is not used? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: If attached object slot is not used? (
/showthread.php?tid=415678)
If attached object slot is not used? -
SilverKiller - 14.02.2013
~~~SOLVED~~~
Re: If attached object slot is not used? -
Vince - 14.02.2013
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.
Re: If attached object slot is not used? -
denNorske - 14.02.2013
edit: Nothing, but i think he asked how to check if it is NOT used?
Re: If attached object slot is not used? -
RoboN1X - 14.02.2013
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
|
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)