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