Raised This Month: $ Target: $400
 0% 

[INC] Client MethodMap


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ThatKidWhoGames
Veteran Member
Join Date: Jun 2013
Location: IsValidClient()
Old 04-30-2018 , 06:26   Re: [INC] Client MethodMap
Reply With Quote #5

Quote:
Originally Posted by Ragenewb View Post
Very nice!
Don't forget you can have a setter for your 'Team' property to change teams as well, like so:
PHP Code:
    property int Team 
        public 
get() { 
            return 
GetClientTeam(this.index); 
        } 
        public 
set(int team) {
            
ChangeClientTeam(this.indexteam);
        }
    } 
I was actually considering doing that, but I guess it was an oversight. I'll update the include once I can. I'll probably end up doing this for client's health, armor, etc. (along with adding (potentially) a few other useful stocks for managing clients). Thanks for the feedback btw!

EDIT: File updated!

Last edited by ThatKidWhoGames; 04-30-2018 at 06:46.
ThatKidWhoGames 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