Hello peeps, I want to make an plugin which stops users/players for moving (For obvious reasons). And this is code Im using, It compiles but doesn't work as expected.
Code:
public LockPlayer(id)
{
engfunc(EngFunc_SetClientMaxspeed, id, 0.0)
set_pev(id, pev_maxspeed, 0.0);
}
Thanks in advance

.
Edit: I searched for "cs_maxspeed_api" (as idea of CrazY.) and included it on plugin. But the compiler returns an error "fatal error 100: cannot read from file: "cs_maxspeed_api_const" but I added
Code:
#include <cs_maxspeed_api>
#include <cs_maxspeed_api_const>
#include <cs_maxspeed_api_stocks>
and still doesn't works.