Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP] Extra Item: Dragon Cannon (11/2/2012 | Author: Dias)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 04-11-2012 , 17:10   Re: [ZP] Extra Item: Dragon Cannon (11/2/2012 | Author: Dias)
Reply With Quote #1

What's the point to check:
PHP Code:
if(!is_user_alive(id) || !is_user_connected(id)) 
together?

Just use 1 native "is_user_alive(index)" is enough. It already check client is connected.

In touch forward you already check entity is valid, so why need to recheck again?

Use bit is faster than calling the same natives.

I would not recommended to use this plugin on HLDS. Code are horrible, your idea is good but you need to learn to optimize your code first.
__________________
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
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 23:57.


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