Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP] Extra Item: Concussion Grenade 1.4(Last Update 10.03.2010)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 12-26-2009 , 04:49   Re: [ZP] Extra Item: Concussion Grenade
Reply With Quote #1

Quote:
Very nice extra item! ... + karma

Quote:
Nice. add to server
Quote:
Here is a good plugin, put on the server +karma
Thank you!
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 12-26-2009 , 05:55   Re: [ZP] Extra Item: Concussion Grenade
Reply With Quote #2

Things you should change:
  • No need to loop for players at new round, just use arrayset.
  • You should really look up what arrayset does. You are setting the whole array to false everytime, not just one entry.
  • In deathmsg, there is no need to check if you're going to set it. Probably the same in other spots as well.
Code:
// this will set every entry to "true" arrayset( g_hasConc, true, 33 )   // this will set one entry ONLY g_hasConc[ id ] = true
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
Reply



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 15:21.


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