SA-MP Forums Archive
[help]SetPlayerAttachedObject Problem - 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 Problem (/showthread.php?tid=266380)



[help]SetPlayerAttachedObject Problem - yuri29971102 - 04.07.2011

I want to attach two fire on the hand
but fire only show one


here is code
Код:
if(strcmp(cmd, "/deathfire", true) == 0)
{
      if(GetPVarInt(playerid, "UseDeathFire")==0)
      {
            SetPlayerAttachedObject( playerid, SLOT5, 19270, 5, 0.118957, 0.048861, -0.017178, 67.190078, 288.352386, 0.000000, 0.000000, 0.000000, 1.000000 ); // MapMarkerFire1 - diefireL1
            SetPlayerAttachedObject( playerid, SLOT4, 19270, 6, 0.118957, 0.037811, 0.022248, 93.706535, 288.517608, 0.000000, 0.000000, 0.000000, 1.000000 ); // MapMarkerFire1 - diefireR2
            SetPVarInt(playerid, "UseDeathFire",1);
            return 1;
      }
      if(GetPVarInt(playerid, "UseDeathFire")==1)
      {
            RemovePlayerAttachedObject(playerid, SLOT5);
            RemovePlayerAttachedObject(playerid, SLOT4);
            SetPVarInt(playerid, "UseDeathFire",0);
            return 1;
      }
}
how can i fix it?