SetPlayerAttachedObject (help) - 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: SetPlayerAttachedObject (help) (
/showthread.php?tid=230669)
SetPlayerAttachedObject (help) -
Amine_Mejrhirrou - 24.02.2011
hi all ! this is tha first time that i'm gonna use
SetPlayerAttachedObject fuction
this is my code ! & my screan shot
why the flame is not on the player ! it's about 2 m of him
Quote:
if(team[playerid] == 2)
{
SetPlayerAttachedObject(playerid,1 ,18694, 17);
}
|
Re: SetPlayerAttachedObject (help) -
maramizo - 24.02.2011
Do you have
pawn Код:
#define SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9) SetPlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1,%2,%3,%4,%5,%6,%7,%8,%9)
#define StopPlayerHoldingObject(%1) RemovePlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
#define IsPlayerHoldingObject(%1) IsPlayerAttachedObjectSlotUsed(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
At the top?
Change your code to this
pawn Код:
if(team[playerid] == 2)
{
SetPlayerAttachedObject(playerid,1 ,18694, 17, 2);
}
The fire will stick to his head.
Re : SetPlayerAttachedObject (help) -
Amine_Mejrhirrou - 24.02.2011
not work'n
it's tha same thing
Re : SetPlayerAttachedObject (help) -
Amine_Mejrhirrou - 24.02.2011
resolved
i use
Attached Object Editor FS to correct than fail