AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to make the player have a different mp_freezeitme. (https://forums.alliedmods.net/showthread.php?t=173983)

xmantou 12-13-2011 16:14

How to make the player have a different mp_freezeitme.
 
My server mp_freezetime set to 5 seconds, I want to have admin_kick privilege can have a faster mp_freezetime.

How to do it?

Thanks!

Nyuszy 12-14-2011 09:10

Re: How to make the player have a different mp_freezeitme.
 
try set_user_maxspeed(id) for admins after x seconds

Devil259 12-14-2011 09:19

Re: How to make the player have a different mp_freezeitme.
 
Use this :

Code:
Freeze( id ) {     if( is_user_alive(id) )     {         new iFlags = pev(id, pev_flags)         if( ~iFlags & FL_FROZEN )         {             set_pev(id, pev_flags, iFlags | FL_FROZEN)         }     } } UnFreeze( id ) {     if( is_user_alive(id) )     {         new iFlags = pev(id, pev_flags)         if( iFlags & FL_FROZEN )         {             set_pev(id, pev_flags, iFlags & ~FL_FROZEN)         }     } }


All times are GMT -4. The time now is 11:54.

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