DoDx - dod_set_user_class Sets to En Team Skin
When I call dod_set_user_class(player, 1) in one of my plugins, it changes the skin of the player to the Enemy skin and they get the enemies weapons. Eg, I use this to flip a person from the sniper role to the Kar role. Well they become a Rifleman with a Garand! Fun, but not what supose to happen!
Cheers! |
all classes have their own number, so the numbers don't start
from 1 again for every team. so 1 should be the allies rifleman class, that's correct! use dod_get_user_class to get the number of the classes :wink: |
It is not a bug :P
You can create DoD Spy plugin ! :D |
Quote:
|
Heheheh...ok...is there an enum that goes with that Sid? Or should I just guess?
Cheers! |
lazy guy :P
say /showclass and your current class's ID is displayed! :wink: get a piece of paper and a pencil :wink: |
Not lazy, the thing about it is that I fixed it by just setting the users team to be spectators then sent him back to his team with a random class. Easy fix for now!
Cheers! |
Code:
/* CLASS ID |
Ok Excellent. Thank you kindly. BTW...I'm almost done the site for the DoD Plugins Team to use and work out of. You still interested...I'm sure you said you were, but cant remember at the moment.
Cheers! |
Ok Sid can you get this put into the official dodconst.inc? I know its yours so thats why Im asking:
Code:
I'll be using it in my stuff...but It wont be publishable untill its in their! Cheers! |
| All times are GMT -4. The time now is 17:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.