Swap Defuser
2 Attachment(s)
Description
This is a very simple plugin. If a CT have defuser kit and dies, the kit will be gived to another CT who don't have one. CVARs
Requirements
Installation
|
Re: Swap Defuser
PHP Code:
PHP Code:
I would have made like that : (with Ham_Killed hooked as post) PHP Code:
|
Re: Swap Defuser
Quote:
Quote:
Quote:
Is there something wrong with my code , or you just prefer yours? |
Re: Swap Defuser
Quote:
Your code is fine as is for what you want to accomplish. |
Re: Swap Defuser
I don't understand this line :
PHP Code:
Also, you should cache players[i] in a var. Quote:
|
Re: Swap Defuser
Quote:
The defusal check is backwards, since he should only keep CT players who don't have one. Also, Code:
Code:
|
Re: Swap Defuser
My fault. Fixed.
|
Re: Swap Defuser
Quote:
PHP Code:
PHP Code:
This is just personal opinion. Your code looks like it works fine. But that would be more efficient. Other than that...well done, man. |
Re: Swap Defuser
Unapproved, do not post plugins just for the sake of posting. You could add more things, like give defuse only when no ct have defuse kit(controlable by cvar), maybe give to one that have a requiered ration(considering dead/kills -> from entire map or only current round), etc.
If you add more things PM me and I will check it again. |
All times are GMT -4. The time now is 04:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.