14.09.2015, 08:12
I dunno what is happening but when i use an "damage indicator" (who shows a gun above your head) script on OnPlayerDamage, all the self damage (like Rocket launcher, falls, fire) don't work, and when i use this script in OnPlayerDamageDone the self damage are all bugged (like fall gives -100 damage but i'm no dying, or Rocket Launcher doing 0 damage or fire inflict damage but i'm not dying etc...)
This is the code i'm using:
This is the code i'm using:
Code:
KillTimer(Player[issuerid][P_OBJ_TIMER]); if(Player[issuerid][P_ARMAPLAYER] != 0) DestroyObject(Player[issuerid][P_ARMAPLAYER]); Player[issuerid][P_ARMAPLAYER] = CreateObject(weaponObj[weapon], 0, 0, 0, 0, 0, 0); AttachObjectToPlayer(Player[issuerid][P_ARMAPLAYER], issuerid, 0, 0, 1.35, 0, 0, 0); Player[issuerid][P_OBJ_TIMER][0] = SetTimerEx("HideWeaponObject", 1000, false, "i", issuerid); Player[issuerid][P_OBJ_TIMER][1] = 1;