Raised This Month: $ Target: $400
 0% 

Block player moving


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ryokin
Senior Member
Join Date: Jan 2010
Old 01-06-2011 , 04:14   Block player moving
Reply With Quote #1

how to block player moving (include jump) but sill can set his velocity ?
need help
__________________
NH4CL + NaOH -> NH3 + H2O + NaCL
Ryokin is offline
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 01-06-2011 , 04:20   Re: Block player moving
Reply With Quote #2

Quote:
Originally Posted by Ryokin View Post
how to block player moving (include jump) but sill can set his velocity ?
need help
set_pev( index, pev_maxspeed, -1.0 ) to disable moving, you'll have to check if the user is jumping in prethink in order to block the jumping.

Edit: set_pev is a fakemeta function, so you MUST include fakemeta.
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
Old 01-06-2011, 05:26
lazarev
This message has been deleted by lazarev.
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 01-06-2011 , 15:17   Re: Block player moving
Reply With Quote #3

Quote:
Originally Posted by GXLZPGX View Post
you'll have to check if the user is jumping in prethink in order to block the jumping.
You disappoint me, grasshopper.

PreThink is definitely not the way to go. FM_CmdStart is a healthy alternative.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-06-2011 , 15:23   Re: Block player moving
Reply With Quote #4

Not -1.0 but 1.0. But it won't block jumping.
__________________
Arkshine is offline
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 01-06-2011 , 16:13   Re: Block player moving
Reply With Quote #5

Quote:
Originally Posted by wrecked_ View Post
You disappoint me, grasshopper.

PreThink is definitely not the way to go. FM_CmdStart is a healthy alternative.
I'm sorry master..

Quote:
Originally Posted by Arkshine View Post
Not -1.0 but 1.0. But it won't block jumping.
I learned to set it to -1.0 from Wrecked. Because even if 1.0 seems like it blocks movement, you're still somewhat moving, just at a VERY slow pace.
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.

Last edited by GXLZPGX; 01-06-2011 at 16:20.
GXLZPGX is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-06-2011 , 16:37   Re: Block player moving
Reply With Quote #6

1.0 is used at freeze time by CS, you don't move and it looks more neat, meaning without shaking. But anyway it's useless because once you switch weapon, the speed will be reseted. You have to either forbid the weapon switch or hooking ResetMaxSpeed.
__________________
Arkshine is offline
gladius
Veteran Member
Join Date: Jul 2008
Location: Santiago, Chile
Old 01-06-2011 , 16:52   Re: Block player moving
Reply With Quote #7

maybe FL_FROZEN ?
__________________
Proyects
Kreedz Chile Mod [100%] (Fixing some details).

gladius is offline
Send a message via MSN to gladius Send a message via Skype™ to gladius
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-06-2011 , 16:58   Re: Block player moving
Reply With Quote #8

Yes, you can use that instead, though If I remember it still won't block the jump.
__________________
Arkshine is offline
lazarev
Veteran Member
Join Date: Sep 2008
Old 01-06-2011 , 17:26   Re: Block player moving
Reply With Quote #9

Quote:
Originally Posted by gladius View Post
maybe FL_FROZEN ?
It blocks everything, even velocity
lazarev is offline
Ryokin
Senior Member
Join Date: Jan 2010
Old 01-07-2011 , 05:39   Re: Block player moving
Reply With Quote #10

so what should i use now ? . Ham_Player_Jump doesn't work very well
__________________
NH4CL + NaOH -> NH3 + H2O + NaCL
Ryokin is offline
Reply



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 02:09.


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