Quote:
Originally Posted by ot_207
PHP Code:
pev(id, pev_button, button) if (button & IN_JUMP)
it is used this way ->
PHP Code:
button = pev(id, pev_button) if (button & IN_JUMP)
|
I thought that there is no significant difference between the two code-part. I will try this tomorrow.
Quote:
Originally Posted by ot_207
PHP Code:
pev(id, pev_button, Buttons) pev(id, pev_angles, Angles) set_pev(Slave, pev_button, Buttons) set_pev(Slave, pev_angles, Angles)
For this you should correct the button ones with what I have said above.
And for angles it is correct. Angles must be a float vector.
PHP Code:
new buttons, Float:angles[3] buttons = pev(id, pev_button) pev(id, pev_angles, angles) set_pev(Slave, pev_button, buttons) set_pev(Slave, pev_angles, angles)
|
I attached my (not updated since the first post) plugin's source code.
I will try this tomorrow also. Some comments about the plugin: I used id 1 and id 2 for simplicity and fast-debug. I will use iuser2 and "if user is an admin" and other things. Also the "move" thing is works. And I think I will try it to move to the server_frame and hope for no netchan errors and other.