#include <amxmodx> #include <amxmisc> #include <hamsandwich> #define PLUGIN "SVIP 2x DMG AK" #define WERSJA "1.0" #define AUTOR "wonsz" #define FLAGA_VIPA "" //// w cudzyslow wstaw jaka flage ma svip np. ADMIN_LEVEL_H public plugin_init() { register_plugin( PLUGIN, WERSJA, AUTOR ) RegisterHam(Ham_TakeDamage, "player", "TakeDamage") } public TakeDamage( this, idinflictor, idattacker, Float:damage, damagebits ) { if( !is_user_connected( idattacker ) || !is_user_connected( this ) ) return HAM_IGNORED if( !is_user_alive( idattacker ) || !is_user_alive( this ) ) return HAM_IGNORED if( !has_flag( idattacker, FLAGA_VIPA ) ) return HAM_IGNORED if( get_user_weapon(idattacker) == CSW_AK47 ) { damage *= 2 } SetHamParamFloat( 4, damage ) return HAM_IGNORED }
Dodaj tam wyżej flage svipa, skompiluj i wrzuć na serwer.