Raised This Month: $ Target: $400
 0% 

[ZP] Extra Item: Freeze Ability & Immunity v1.0


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 06-05-2011 , 10:00   Re: [ZP] Extra Item: Freeze Ability & Immunity v1.0
Reply With Quote #1

Quote:
Originally Posted by bibu View Post
- Use fm_cmdstart instead of prethink.
- message "You can't freeze survivor" -> "You can't freeze as a survivor." Also for the rest.
- "Impossible, this player has immunity from freeze ability" -> "Target has freeze ability!"
- "You are now immune frome freeze abilities" -> "You are immune to freeze abilities."
- fm_set_rendering -> Use fun's set_user_rendering instead.
- Remove "[ZP]" from the cvars.
- Caching cvars on new round and using bitsums for variables would also optimize the code.
Why need to use many module? fakemeta is enough. moreeeeee module make moreeeee contact.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 06-05-2011 , 13:38   Re: [ZP] Extra Item: Freeze Ability & Immunity v1.0
Reply With Quote #2

Quote:
Originally Posted by yokomo View Post
Why need to use many module? fakemeta is enough. moreeeeee module make moreeeee contact.
You should read some topics in the Code Snippets / Tutorials section. Using more modules doesn't mean it will use more CPU. And it's for sure better to use those natives which are the best provided by the modules.

EDIT:

Just for info, if you're checking the variable, you can also do this:

PHP Code:
if(g_has_frost[player])

// or:

if(!g_has_frost[player]) 
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.

Last edited by bibu; 06-05-2011 at 13:44.
bibu is offline
A.Madjid
Junior Member
Join Date: Apr 2011
Old 06-06-2011 , 05:40   Re: [ZP] Extra Item: Freeze Ability & Immunity v1.0
Reply With Quote #3

Quote:
Originally Posted by bibu View Post
Just for info, if you're checking the variable, you can also do this:

PHP Code:
if(g_has_frost[player])

// or:

if(!g_has_frost[player]) 
sure thnx
A.Madjid is offline
Send a message via Skype™ to A.Madjid
Dolph_Ziggler
BANNED
Join Date: Jun 2011
Old 06-06-2011 , 11:19   Re: [ZP] Extra Item: Freeze Ability & Immunity v1.0
Reply With Quote #4

Quote:
Originally Posted by bibu View Post
You should read some topics in the Code Snippets / Tutorials section. Using more modules doesn't mean it will use more CPU. And it's for sure better to use those natives which are the best provided by the modules.

EDIT:

Just for info, if you're checking the variable, you can also do this:

PHP Code:
if(g_has_frost[player])

// or:

if(!g_has_frost[player]) 
what the differance between g_has_frost and !g_has_frost
Dolph_Ziggler is offline
Send a message via MSN to Dolph_Ziggler
bibu
Veteran Member
Join Date: Sep 2010
Old 06-06-2011 , 11:38   Re: [ZP] Extra Item: Freeze Ability & Immunity v1.0
Reply With Quote #5

Quote:
Originally Posted by Dolph_Ziggler View Post
what the differance between g_has_frost and !g_has_frost
True is normal variable, and if false, "!" infront of the variable.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu 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 16:22.


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