LondoN eXtream 110 Posted April 21, 2015 Share Posted April 21, 2015 Descriere: Anti Flash Team Download: #include <amxmodx>new szGrenade[32], Lastnew Float:GameTime, szOwnerpublic plugin_init(){ register_event("ScreenFade", "fw_flash", "be", "4=255", "5=255", "6=255", "7>199") register_event("TextMsg", "fw_holeFire", "b", "2Game_radio", "4Fire_in_the_hole") register_event("TextMsg", "fw_Firehole", "b", "2Game_radio", "4Fire_in_the_hole") register_event("99", "fw_postgrenade", "b")}public fw_flash(id){ new Float:szGameTime = get_gametime() szOwner = get_grenade_owner() if(szGameTime != GameTime) { GameTime = szGameTime } if(is_user_connected(szOwner) && szOwner != id && get_user_team(id) == get_user_team(szOwner)) { message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, id) write_short(1) write_short(1) write_short(1) write_byte(0) write_byte(0) write_byte(0) write_byte(255) message_end() }}public fw_postgrenade(){ if(read_datanum() < 2) { return PLUGIN_HANDLED; } if(read_data(1) == 11 && (read_data(2) == 0 || read_data(2) == 1)) { add_grenade_owner(Last) } return PLUGIN_CONTINUE;}public fw_holeFile(){ new szName[32] read_data(3, szName, 31) Last = get_user_index(szName) return PLUGIN_CONTINUE;}public fw_Firehole(){ new Name[32] read_data(3, Name, 31) Last = get_user_index(Name) return PLUGIN_CONTINUE;}add_grenade_owner(szOwner){ for( new i = 0; i < 32; i++) { if(szGrenade == 0) { szGrenade = szOwner return } }}get_grenade_owner(){ new Param = szGrenade[0] for( new i = 0; i < 32; i++) { szGrenade[i-1] = szGrenade } szGrenade[31] = 0 return Param} Link to comment Share on other sites More sharing options...
Recommended Posts