Advertisement
infiSTAR23

Suicide (no eventhandler)

Apr 1st, 2014
508
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.62 KB | None | 0 0
  1. private ["_Secondary"];
  2. canAbort = true;
  3. _Secondary = currentWeapon player;
  4. if ((_Secondary in ["glock17_EP1","M9","M9SD","Makarov","MakarovSD","revolver_EP1","revolver_gold_EP1","UZI_EP1","UZI_SD_EP1","Sa61_EP1","Colt1911"]) && (player ammo _Secondary > 0)) then
  5. {
  6.     cutText [format["Fuck this cruel world"], "PLAIN DOWN"];
  7.     canAbort = false;
  8.     player playmove "ActsPercMstpSnonWpstDnon_suicide1B";
  9.     sleep 8.0;
  10.     player fire _Secondary;
  11.     if (alive player) then { player SetDamage 1.1;};
  12. }
  13. else
  14. {
  15.     cutText [format["You need at least one round of ammo to kill yourself. Can't even kill yourself properly."], "PLAIN DOWN"];
  16. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement