Raised This Month: $ Target: $400
 0% 

Quickest way to get what class a client is


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
KaidemonLP
Member
Join Date: Jul 2016
Old 04-06-2018 , 11:42   Re: Quickest way to get what class a client is
Reply With Quote #3

Quote:
Originally Posted by nosoop View Post
Be sure to name your game.

This sounds like TF2, which has TF2_GetPlayerClass. You'd want something like:

Code:
#include <tf2_stocks> // in global scope, obviously

// in your function:
if (TF2_GetPlayerClass(client) == TFClass_DemoMan) {
    /* ... */
}
Otherwise, you'll want to check the properties available on the player entity. sm_dump_netprops and sm_dump_datamaps are your friends there.
Yeah thats the thing im looking for, thanks
KaidemonLP 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 21:22.


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