Raised This Month: $ Target: $400
 0% 

[INC] Client MethodMap


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 04-29-2018 , 00:27   Re: [INC] Client MethodMap
Reply With Quote #2

I'm gonna start using this. Thanks!

Side note:

I noticed that in your .inc file, there is an IsValidClient stock and that you have both IsClientConnected and IsClientInGame. You only really need to use IsClientInGame since it already implies that IsClientConnected is true. Using both is redundant.

Change:
PHP Code:
stock bool IsValidClient(int client)
{
    return 
client && client <= MaxClients && IsClientConnected(client) && IsClientInGame(client);

To this:
PHP Code:
stock bool IsValidClient(int client)
{
    return 
client && client <= MaxClients && IsClientInGame(client);

__________________
Psyk0tik 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 22:41.


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