SHARE
TWEET

Untitled

a guest Jun 17th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ublic (playerid, issuerid, Float: amount, weaponid, bodypart)
  2. {
  3.     //Anti-Interiorflucht by GangstaSunny
  4.     //KillTimer(AntiIF[playerid]);
  5.     //KillTimer(AntiIF[issuerid]);
  6.     //SetPVarInt(playerid,"AntiIntFlucht",1);
  7.     //SetPVarInt(issuerid,"AntiIntFlucht",1);
  8.     //AntiIF[playerid] = SetTimerEx("AntiIntFluchtFunction",5000,0,"i",playerid);
  9.     //AntiIF[issuerid] = SetTimerEx("AntiIntFluchtFunction",5000,0,"i",issuerid);
  10.  
  11.     //Anti-SDM by GangstaSunny
  12.     SetPVarInt(playerid,"AttackNotwehr",issuerid);
  13.     if(GetPlayerScore(issuerid) < 2 && GetPVarInt(issuerid,"AttackNotwehr") != playerid)
  14.     {
  15.         TogglePlayerControllable(issuerid,false);
  16.         TogglePlayerControllable(issuerid,true);
  17.         SDMTimer[issuerid] = SetTimerEx("AntiSDMFunction",15000,0,"i",issuerid);
  18.         SendClientMessage(issuerid,COLOR_SORRY,"* Achtung, unterlasse das DM als Neuling oder du wirst gebannt.");
  19.     }
  20.     if(SpielerInfo[issuerid][icpHitsound] == 1)
  21.     {
  22.         PlayerPlaySound(issuerid,17802,0.0,0.0,0.0);
  23.     }
  24.     if(bodypart == 9 && GetPlayerWeapon(issuerid) == 34)
  25.     {
  26.         if(GetDistanceBetweenPlayers(playerid,issuerid) <= 70)
  27.         {
  28.             SetPlayerHealth(playerid,0.0);
  29.             GameTextForPlayer(issuerid,"~r~KOPFSCHUSS",3000,4);
  30.         }
  31.         else if(GetDistanceBetweenPlayers(playerid,issuerid) > 70)
  32.         {
  33.             new rand = random(5);
  34.             if(rand == 1)
  35.             {
  36.                 SetPlayerHealth(playerid,0.0);
  37.                 GameTextForPlayer(issuerid,"~r~KOPFSCHUSS",3000,4);
  38.             }
  39.         }
  40.     }
  41.     return 1;
  42. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top