[help]SetPlayerAttachedObject Problem
#1

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?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)