View Single Post
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