Raised This Month: $ Target: $400
 0% 

[Help]Freeze dontwork


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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