View Single Post
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 03-04-2017 , 20:39   Re: Round End Events
Reply With Quote #14

Released the version 1.1:

ºAdded new events:
. Protected the bomb planted from enemies.
. Given damage to many enemies.
. Did so many damage with HE Grenade.
. Won the round with less than 1 second.
. Killed an/so many player/s with HE grenade.
. Killed an/so many player/s in the air.
. Killed an/so many enemy/ies with a grenade after dying.
. Jumped so many times in that round.
. Killed an/so many enemy/ies with low HP.
. Survived the most time.
. Defused the bomb with much terrorists alives.

ºCode edited
. Added more values to some events, like:
* Before, we had only 'an enemy', or '%d enemies' in different events, now, I've added '%d enemy/ies' message in these events. Then all these now have a capacibility to catch one or more than one kills. Like KnifeKills constant-string that had before.
. Added more weapons than before, I've missed so many of them.
. Added gLastDroppedWeapon, gLastBroughtWeapon and g_iItemNum for check if the weapon that the player has dropped/bought is not the same that he already has dropped/bought before for the ev_DonatedWeapons and ev_ItemsBought event.
. Transfered the g_LastAnnounce from event_TWin() and event_CTWin to Round_End() function.
. Removed the boolean isForCheckChance at checkChance() stock. That boolean wasn't making sense.
. Added a new stock: GetPlayers(), this stock I've made because I had so much get_players() in the plugin, I know it doesn't matter but It's more easier to manipulate for me and for others peoples I hope. And that stock made the plugin lose so much lines, what's good as well.
. Edited the ev_UserKills, now you can see a percent instead of User's kills.
. Added arAloneKills to PlayerData because the ev_Clutch event.
. Removed the Ham_Killed. Using DeathMsg instead.
. Reseting the arConsecutiveRounds after sv_restart and Game Commecing, then removed the -1 at showEvents().
. Transfered the get_user_weapon(iVictim) & CSW_KNIFE) to Ham_TakeDamage.
. Removed IsUserValidConnected, using is_user_connected() instead.


And some optimizations on the code.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 03-05-2017 at 13:13.
EFFx is offline