View Single Post
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 08-09-2014 , 03:34   Re: First Blood Reward v1.5 (Bot Support)
Reply With Quote #16

New update!
Quote:
v1.5 - [ADDED] Cvar to enable or disable the health, armor and money rewards.
Quote:
Originally Posted by Kia View Post
Code:
if(bFirstBlood || victim == attacker || !is_user_connected(attacker))


I would check first if the user is connected / alive before checking if he is also the victim, sounds more logically to me.

Code:
ShowSyncHudMsg(0, g_SyncHud, "%s drew a firstblood^nand recieved %d money as a reward.", szName, iReward)


You do not need a SyncHud for a HUD Message that gets only shown once. Just use show_hudmessage.
Thank you. I will update the code. ;)

However, may you tell more about this?
Quote:
Originally Posted by Kia View Post
Code:
get_user_name(attacker, szName, 31)


Please get used to use charsmax or sizeof - 1 instead of writing the number.

Last edited by zmd94; 08-09-2014 at 03:46.
zmd94 is offline