Quote:
Originally Posted by hlstriker
You will want to use "m_iClassStatus".
GetClassSlot
PHP Code:
GetClassSlot(iClient) { return (GetEntProp(iClient, Prop_Send, "m_iClassStatus") & 0x0000000F); }
SetClassForClient
PHP Code:
SetClassForClient(iClient, iSlot) { SetEntProp(iClient, Prop_Send, "m_iClassStatus", iSlot & 0x0000000F); }
|
Unfortunately, it still doesn't change my class, but now there are no errors.
I also tested the GetClassSlot and that seems to work fine.