Raised This Month: $ Target: $400
 0% 

Useful Stock(S) [Any Game]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
naris
AlliedModders Donor
Join Date: Dec 2006
Old 12-10-2010 , 19:24   Re: Useful Stock(S) [Any Game]
Reply With Quote #1

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);

I use this
PHP Code:
#define IsValidClient(%1) (%1 > 0 && %1 <= MaxClients && IsClientInGame(%1)) 
naris 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 18:40.


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