Raised This Month: $ Target: $400
 0% 

When I execute this script it crashes my server


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Lawnmoverman
Member
Join Date: Jan 2017
Old 02-05-2017 , 08:47   When I execute this script it crashes my server
Reply With Quote #1

When I execute noz_warmup on server it crashes!
Any help would be appreciated!

PHP Code:
#include <amxmodx>
#include <amxmisc>

new iCount =        0

public plugin_init() 
{
    
register_plugin("Knifes Warmup","1.0","Lawnmoverman")
    
register_concmd("noz_warmup","noz_warmup",ADMIN_IMMUNITY,"noz_warmup - starts knifes only warmup")
}

// Colour Chat
client_printc(index, const text[], any:...)
{
    new 
szMsg[128];
    
vformat(szMsgsizeof(szMsg) - 1text3);
    
    
replace_all(szMsgsizeof(szMsg) - 1"!g""^x04");
    
replace_all(szMsgsizeof(szMsg) - 1"!n""^x01");
    
replace_all(szMsgsizeof(szMsg) - 1"!t""^x03");
    
    
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _index);
    
write_byte(index);
    
write_string(szMsg);
    
message_end();
}

public 
noz_warmup(id
{

    new const 
Float:fTime[] = { 1.015.045.060.071.075.078.084.0 }
    for ( new 
i++ )
    
set_task(fTime[i], "WarmUP"id)

    return 
PLUGIN_HANDLED
}

public 
WarmUP(id
{    
    switch(
iCount)
    {
        case 
0
        {
        
client_printc(0"!t[Warmup] !gKnifes only!")
        
server_cmd("amx_csay yellow ^"[WarmupKnifes only!^"")
        
server_cmd("amx_knifesonly 1")
        
client_cmd(0"spk ^"Hello, and have the nice day^"")
        }
        case 
1
        {
        
client_printc(0"!t[Warmup] !g60 seconds remaining!")
        } 
        case 
2:
        {
        
client_printc(0"!t[Warmup] !g30 seconds remaining!")
        }
        case 
3:
        {
        
client_printc(0"!t[Warmup] !g15 seconds remaining!")
        }
        case 
4:
        {
        
client_printc(0"!t[Warmup] !gLive after 3 restarts!")
        }
        case 
5:
        {
        
server_cmd("amx_rr ^"3^" ^"1^"")
        }
        case 
6:
        {
        
server_cmd("amx_knifesonly 0")
        }
        case 
7:
        {
        
client_printc(0"!t[Warmup] !gLive! GL & HF!")
        
server_cmd("amx_csay yellow ^"[WarmupLiveGL HF!^"")
        
client_cmd(0"spk ^"Going lifekill and eliminate all ass^"")
        }
    }
    
iCount++

Lawnmoverman is offline
 



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 20:45.


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