Raised This Month: $100 Target: $400
 25% 

Anti Infection Armor [BIOHAZARD]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Exolent[jNr] (178)
Emilioneri
Senior Member
Join Date: Feb 2009
Location: Georgia, Tbilisi
Old 04-27-2009 , 11:15   Anti Infection Armor [BIOHAZARD]
Reply With Quote #1

Description:
This plugin will allow players to buy Anti Infection Armor. when someone types /antiinfect he recieves armor and can not be infected while his armor is gone

Commands:
say /antiinfect

Cvars:
amx_infectarmor (cost of armor. default: 2500)

Translations:
Attached Files
File Type: sma Get Plugin or Get Source (anti_infect_armor.sma - 2673 views - 1.4 KB)
File Type: txt anti_infect_armor.txt (3.0 KB, 1324 views)

Last edited by Emilioneri; 06-21-2009 at 15:28. Reason: Update, added ML
Emilioneri is offline
Send a message via Skype™ to Emilioneri
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 04-27-2009 , 11:22   Re: Anti Infection Armor [BIOHAZARD]
Reply With Quote #2

Well...

I think its a good idea...

But i suppose you need to post it in Biohazard topic... Its just a sub-plugin
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
Emilioneri
Senior Member
Join Date: Feb 2009
Location: Georgia, Tbilisi
Old 04-27-2009 , 11:24   Re: Anti Infection Armor [BIOHAZARD]
Reply With Quote #3

Biohazard topic where is that? tell me a link
__________________
Emilioneri is offline
Send a message via Skype™ to Emilioneri
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 04-27-2009 , 11:30   Re: Anti Infection Armor [BIOHAZARD]
Reply With Quote #4

http://forums.alliedmods.net/showthr...68523&page=321
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
5c0r-|3i0
Veteran Member
Join Date: Nov 2008
Location: Việt Nam
Old 04-27-2009 , 12:02   Re: Anti Infection Armor [BIOHAZARD]
Reply With Quote #5

Good !! Now we more people want to make Biohazard sub-plugins . I'd appreciate.
I'm also a Biohazard sub-plugins creator too ^^!

But...I look at your code and :

1) U need to include <biohazard> so only when Biohazard is on,this plugins will works, otherwise...it won't.

2)Need optimization......

3)cs_***_user_money is useless in here...Cuz Biohazard uses another money system...You should look at biohazard.sma .
4)Did U check that Zombies can't buy anti infection armor ??


Quote:
if (!is_user_alive(id))
should be
Quote:
if (!is_user_alive(id) || is_user_zombie(id) )
5) This only for Biohazard 2.xx or 1.93 ??? Some servers still use Bh 1.93..

6) Look at here to make your plugins better .
That's all I know....Sorry

Last edited by 5c0r-|3i0; 04-27-2009 at 12:15. Reason: Thanks Darkgod for noticin' me..
5c0r-|3i0 is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 04-27-2009 , 12:04   Re: Anti Infection Armor [BIOHAZARD]
Reply With Quote #6

Quote:
Originally Posted by 5c0r-|3i0 View Post
2)Need optimization...Don't use Fun modules...You should use fakemeta
http://forums.alliedmods.net/showthread.php?t=88792

Quote:
Most people say that FakeMeta is the best module arround but it is not the most efficient! The module uses a lot of cpu becouse of the big database of function that it provides. To this question this is the answer: every module has good things to offer, we must use the special functions provided by every module.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 04-27-2009 , 12:42   Re: Anti Infection Armor [BIOHAZARD]
Reply With Quote #7

Event_Round_Start doesnt pass any index, you need to loop thought all players.

You don't have enaugh
__________________
xPaw is offline
Emilioneri
Senior Member
Join Date: Feb 2009
Location: Georgia, Tbilisi
Old 04-27-2009 , 13:05   Re: Anti Infection Armor [BIOHAZARD]
Reply With Quote #8

Updated

Quote:
Originally Posted by 5c0r-|3i0 View Post
I'm also a Biohazard sub-plugins creator too ^^!
If so, take look at this
__________________
Emilioneri is offline
Send a message via Skype™ to Emilioneri
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 04-27-2009 , 13:22   Re: Anti Infection Armor [BIOHAZARD]
Reply With Quote #9

I said you need to loop though all players... you cant just use '0' as id.

enaugh -> enough
__________________
xPaw is offline
Emilioneri
Senior Member
Join Date: Feb 2009
Location: Georgia, Tbilisi
Old 04-27-2009 , 13:41   Re: Anti Infection Armor [BIOHAZARD]
Reply With Quote #10

Quote:
Originally Posted by xPaw View Post
I said you need to loop though all players...
How? I don't understand
__________________
Emilioneri is offline
Send a message via Skype™ to Emilioneri
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:28.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode