Raised This Month: $ Target: $400
 0% 

AWP Models [XP System Support]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 02-01-2017 , 13:59   Re: AWP Models
Reply With Quote #4

If you think that it can be how its right now, just do what your mind says.

Yea, the code will be so much long, but just use your knowledge with enumerates and arrays, you know so much things with these formats. You can minimize so much lines with this.

Here's my changes:

1. In ColorChat():

You can cache the value of iPlayers[i] with an interger.
You need not start the iCount with 1
is_user_connected() is not needed

Here:

PHP Code:
message_begin(MSG_ONE_UNRELIABLEg_iSayText_iPlayers[i]) 
You can do .player = Player or your interger's name. Just for skip this '_,'. Just a small thing.

And you're using the g_iSayText just one time, you can cache only if you use a native more than one time. Just add get_user_msgid("SayText").
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 02-01-2017 at 14:28.
EFFx is offline
 



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 06:07.


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