SA-MP Forums Archive
[HELP]SetPlayerAttachedObject - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]SetPlayerAttachedObject (/showthread.php?tid=208034)



[HELP]SetPlayerAttachedObject - <Weponz> - 07.01.2011

What is the idex of a object? How do you the index of a certain object?

Link: https://sampwiki.blast.hk/wiki/SetPlayerAttachedObject

Thanks In Advanced!


Re: [HELP]SetPlayerAttachedObject - Toreno - 07.01.2011

A player can contain only five objects.
Which mean, you can configure which index object is on a player,
exmple:

You can write index between 1 - 5.
And use it in RemovePlayerAttachedObject so you won't REMOVE the whole objects.

pawn Код:
SetPlayerAttachedObject(playerid, 1, 1609, 2);
RemovePlayerAttachedObject(playerid,3);
The remove will remove object the in INDEX 3 only.

pawn Код:
SetPlayerAttachedObject(playerid, 1, 1609, 2);
RemovePlayerAttachedObject(playerid,1);
The remove will remove object the in INDEX 1 only.