Raised This Month: $ Target: $400
 0% 

Useful Stock(S) [Any Game]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
psychonic

BAFFLED
Join Date: May 2008
Old 12-10-2010 , 17:40   Re: Useful Stock(S) [Any Game]
Reply With Quote #8

Quote:
Originally Posted by Mecha the Slag View Post
IsValidClient() is a must. I'm surprised it's not a part of the default stocks.

PHP Code:
stock bool:IsValidClient(iClient) {
    if (
iClient <= 0) return false;
    if (
iClient MaxClients) return false;
    if (!
IsClientConnected(iClient)) return false;
    return 
IsClientInGame(iClient);

The last two are redundant. IsClientInGame implies connected and will just return false if not.
psychonic 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 18:40.


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