Raised This Month: $ Target: $400
 0% 

Solved Lock players.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
thEsp
BANNED
Join Date: Aug 2017
Old 01-03-2019 , 13:31   Lock players.
Reply With Quote #1

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.

Last edited by thEsp; 01-04-2019 at 05:18. Reason: Solved
thEsp is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode