Raised This Month: $ Target: $400
 0% 

Freezing Problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 06-27-2012 , 12:18   Freezing Problem
Reply With Quote #1

Hi everyone,

I'm trying to freeze all cts and reset the freeze after the countdown is over... But it doesn't freeze the players when the countdown is running. It only freezes them when the countdown stops...

PHP Code:
public Cmdround(id)
{
    if (
task_exists(TASKID))
        
remove_task(TASKID)
    
    
set_hudmessage(25500, -1.00.000.114.00.11.01)
    
show_hudmessage(0"[HideNseeK]")
    
    
Timer 10
    set_task
(1.0"Cmdcountdown"TASKID__"a"Timer)
    
    new 
players[32], count
    get_players
(playerscount"ae""CT")
    
    for(new 
icounti++) {
        
set_user_maxspeed(players[i], 0.1)
        
set_task(11.0"RemoveFreeze"players[i])
    }
    
set_task(2.0"StripWeapons"players[0])

PHP Code:
public RemoveFreeze(id) {
    if(
is_user_alive(id)) {
        
set_user_maxspeed(id, -1.0)
    }

__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
 


Thread Tools
Display Modes

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 06:07.


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