Raised This Month: $ Target: $400
 0% 

[Help]Freeze dontwork


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bloody806
Member
Join Date: Jun 2012
Location: Czech Republic
Old 03-09-2013 , 21:36   [Help]Freeze dontwork
Reply With Quote #1

Hi i need help with this plugin. Plugin you freeze until the end of deduction, but dont work freeze Please help.

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#include <fun>
#include <fakemeta>
#include <engine>

new timer
new boolcountdownon

public plugin_init()
{
    
register_plugin("Naskok","1.0","Risontek")
    
register_logevent("odpocet"2"1=Round_Start")
}

public 
odpocet(id)
{
    if(!
countdownon
    { 
        
timer 5
        countdownon 
true 
        countdown_start
(id
        if(
get_user_team(id) == 1)
        {
            
set_pev(idpev_flagspev(idpev_flags) | FL_FROZEN)
        }
    }
}
public 
countdown_start(id)
{
    if(
timer >= 0
    {
        if(
timer == 0
        {
            
countdownon false 
            
if(get_user_team(id) == 1)
            {
                
set_pev(idpev_flagspev(idpev_flags) & ~FL_FROZEN)
            }
            return 
PLUGIN_HANDLED
        
}
        
set_hudmessage(02550, -1.00.3001.01.0
        
show_hudmessage(0"Anti-Furien have a head start: %i"timer
        
timer-- 
        
set_task(1.0"countdown_start")
    }
    return 
PLUGIN_CONTINUE 

__________________
bloody806 is offline
Send a message via Skype™ to bloody806
Podarok
BANNED
Join Date: Jan 2011
Location: Narnia
Old 03-10-2013 , 10:30   Re: [Help]Freeze dontwork
Reply With Quote #2

Instead of freeze try putting
Code:
set_user_maxspeed(id, 1.0);
And there is a team check by the way, so only TEAM_T freeze i guess
Podarok is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 03-10-2013 , 11:15   Re: [Help]Freeze dontwork
Reply With Quote #3

Round_Start - global event

public odpocet(id) --> public odpocet( )

use get_maxplayers()
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Reply


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 21:50.


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