Raised This Month: $51 Target: $400
 12% 

Solved [DOD:s]How do I know a player's class in DOD:s ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mewbie222
Senior Member
Join Date: May 2018
Old 07-06-2019 , 09:09   [DOD:s]How do I know a player's class in DOD:s ?
Reply With Quote #1

How do I know a player's class in DOD:s (Day of defeat Source) ?
Found this event https://wiki.alliedmods.net/Day_of_D...er_changeclass there you can learn when you change class . And it is possible to know which class the player in the game ?
P.s.Sorry for bad English....

Last edited by mewbie222; 08-19-2019 at 13:17. Reason: solved
mewbie222 is offline
andi67
Veteran Member
Join Date: Mar 2007
Location: Somewhere near you!!!
Old 07-07-2019 , 05:15   Re: [DOD:s]How do I know a player's class in DOD:s ?
Reply With Quote #2

You can play with this to get the class.....
Quote:
new class = GetEntProp(client, Prop_Send, "m_iPlayerClass")
//0 = Rifleman
//1 = Assault
//2 = Support
//3 = Sniper
//4 = MG
//5 = Rocket
__________________
Waiting for HL3,Day of Defeat3 ,but will it ever come? So I'm gonna play COD WW2.>>>>SM_SKINCHOOSER<<<<
>>You need Models for DODS/CSS/CSGO , than click here!!!<<
andi67 is offline
mewbie222
Senior Member
Join Date: May 2018
Old 07-07-2019 , 06:39   Re: [DOD:s]How do I know a player's class in DOD:s ?
Reply With Quote #3

Quote:
Originally Posted by andi67 View Post
You can play with this to get the class.....
Strangely searched here with the word "class" - Dump of all network properties for "dod" , and did not find ..
Thanks !!!!

Last edited by mewbie222; 07-07-2019 at 07:03. Reason: Solved
mewbie222 is offline
mewbie222
Senior Member
Join Date: May 2018
Old 08-19-2019 , 05:44   Re: [DOD:s]How do I know a player's class in DOD:s ?
Reply With Quote #4

And how to use sourcemod to forcibly change the class of the player ? Saw in DOD hooks - but that's not an option, and DOD hooks without the can do this ?

p.s. In order not to produce topics , I decided to add a question here , because it is a little related to this topic..
Solved : SetEntProp(client, Prop_Send, "m_iPlayerClass", x)

Last edited by mewbie222; 08-19-2019 at 13:17. Reason: solved
mewbie222 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 07:59.


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