Raised This Month: $ Target: $400
 0% 

Freeze players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mlk27
Veteran Member
Join Date: May 2008
Old 12-08-2008 , 01:07   Freeze players
Reply With Quote #1

How do we freeze all players (except the ourself), making them unmoveable and disable their weapons temporarily? after 30 seconds, everything's back to normal
Mlk27 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 12-08-2008 , 11:17   Re: Freeze players
Reply With Quote #2

Code:
// How to freeze: set_pev(id, pev_flags, (pev(id, pev_flags) | FL_FROZEN)); // How to unfreeze: set_pev(id, pev_flags, (pev(id, pev_flags) & ~FL_FROZEN));
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-08-2008 , 12:20   Re: Freeze players
Reply With Quote #3

Well, this will freeze them even if they are in the air.
You could use set_user_maxspeed(id, 0.001) to freeze them, and also hook FM_CmdStart to prevent them from using weapons.

But FL_FROZEN method is radical and efficient.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
L//
Senior Member
Join Date: Aug 2008
Location: Not found
Old 12-08-2008 , 15:02   Re: Freeze players
Reply With Quote #4

try also with:

PHP Code:
set_pev(idpev_velocityFloat:{0.0,0.0,0.0})     // stop motion
set_pev(idpev_maxspeed1.0)                     // prevent from moving 
L// is offline
Send a message via MSN to L//
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 18:26.


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