View Single Post
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 10-12-2011 , 15:39   Re: Weapon-Specific Spawn Protection
Reply With Quote #5

Quote:
Originally Posted by ConnorMcLeod View Post
- If you let TakeDamage enabled all the time, then remove the task system it is useless, use gametime instead.
- You can't detect hegrenade with your code
- If you also want to prevent blood from appearing, you have to hook TraceAttack

It could be usefull to have a specific time for each weapon, even if i don't really see the utility of this plugin ;)
Changed to TraceAttack + used get_gametime. I also added he grenade support. Not sure what you meant by the last comment though. Could you please clarify? Thanks.

Quote:
Originally Posted by xPaw View Post
- You never check if iFile is not zero.
- You don't need to read file after you just created it.
Done.

Quote:
Originally Posted by ConnorMcLeod View Post
Also, compare attacker index with get_maxplayers value instead of MAX_PLAYERS.
Done.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345