Otóż poszukuje pluginu dzięki któremu zabijamy od razu po ataku z noża PPM. Z góry dzięki za pomoc
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
Natychmiastowe zabicie z noża (PPM) !!NIE CoDMoD!!
Started By
PudzianNS
, 28.04.2011 09:17
1 reply to this topic
#1
Posted 28.04.2011 09:17
#2
Posted 02.05.2011 13:11
sprawdz
#include <amxmodx> #include <fakemeta> #include <hamsandwich> new gMaxClients; #define IsPlayer(%1) ( 1 <= %1 <= gMaxClients ) #define HasKnife(%1) ( IsPlayer( %1 ) && get_user_weapon( %1 ) == CSW_KNIFE ) #define DMG_KNIFE ( DMG_NEVERGIB | DMG_BULLET ) public plugin_init() { register_plugin( "Knife Damage", "1.0.0", "DarkGL" ); RegisterHam( Ham_TakeDamage, "player", "Event_PlayerTakeDamage" ); gMaxClients = get_maxplayers(); } public Event_PlayerTakeDamage ( Victim, Inflictor, Attacker, Float:Damage, Damagebits ) { if(HasKnife( Attacker ) && ( Damagebits & DMG_KNIFE ) && Damage > 50.0 && IsPlayer(Victim)){ SetHamParamFloat(4,float(get_user_health(Victim)+1)) } }
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users