I think master131 posted how to do it some weeks ago, search on modding help section.
I think master131 posted how to do it some weeks ago, search on modding help section.
Here it is from master131:
Place this under Callback_PlayerDamage_internal function in damage.gscCode:if(distance(eAttacker.origin, victim.origin) <= 200 && eAttacker playerADS() == 0 && sWeapon == "cheytac_fmj_xmags_mp") { iDamage = 0; eAttacker iPrintlnBold("^1Don't Close Range No Scope!"); }
JustAndy (07-17-2011)
I'm sorry to bump this 3w old thread, but I tried this code, and it doesn't work. I mean On my screen shows "Don't Close Range No Scope!" but enemy is still getting killed. I also tried adding black screenlike here but after blackness enemy dies Any way to fix this?
Donate:
BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9
Handy Tools/Hacks:
Extreme Injector v3.7.3
A powerful and advanced injector in a simple GUI.
Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!
Minion Since: 13th January 2011
Moderator Since: 6th May 2011
Global Moderator Since: 29th April 2012
Super User/Unknown Since: 23rd July 2013
'Game Hacking' Team Since: 30th July 2013
--My Art--
[Roxas - Pixel Art, WIP]
[Natsu - Drawn]
[Natsu - Coloured]
All drawings are coloured using Photoshop.
--Gifts--
[Kyle]
gregorysl (08-10-2011)
Still doesn't work.
______________
EDIT:
I found solution!
Anti Noscope"
It was all because of the second "if"Code:Callback_PlayerDamage_internal( eInflictor, eAttacker, victim, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, psOffsetTime ) { if(sMeansOfDeath == "MOD_MELEE" && !IsSubStr( sweapon, "riotshield" )) { iDamage = 0.0; eAttacker iPrintlnBold("^2Knife ^3Doesn't ^2Work!!!"); } else if(eAttacker playerADS() == 0 && isSubStr(sWeapon, "barrett")){ iDamage = 0; eAttacker iPrintlnBold("^2No Scope ^3Doesn't ^2Work!!!"); } else { iDamage = 9999; }
if(eAttacker playerADS() == 0 && isSubStr(sWeapon, "barrett"))
Small change and it works like a charm
Last edited by gregorysl; 08-10-2011 at 05:59 AM.