Quote:
Originally Posted by eyal282
[...]
|
I had to do it that way since:
PHP Code:
int iButtons = GetClientButtons(client);
// Block the forward key here
SetEntProp(client, Prop_Data, "m_nButtons", iButtons & ~IN_FORWARD);
SetEntProp(client, Prop_Data, "m_nButtons", iButtons | IN_BACK);
// This is equivalent to (iButtons & IN_FORWARD | IN_BACK) which doesn't make any sense as it will just immobilize the player in place.
// Also, it might not be possible and the compiler will just throw an error.