Raised This Month: $ Target: $400
 0% 

round time = 0:00 kill all player


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
biscuit628
Senior Member
Join Date: Jun 2007
Location: 香港HongKong
Old 07-24-2009 , 07:33   round time = 0:00 kill all player
Reply With Quote #1

PHP Code:
#include <amxmodx>
 
new RoundTime;
 
public 
plugin_init()
{
        
register_plugin("Round Control""1.0""Biscuit");
 
        
register_logevent("RoundStart"2"1=Round_Start");
    
register_logevent("RoundStart"3"2=Planted_The_Bomb")
 
        
RoundTime get_cvar_pointer("mp_roundtime");
}
 
public 
RoundStart()
{
    if(
get_cvar_num("amx_respawn") != 1)
    {
            
remove_task(123);
        
set_task(get_pcvar_float(RoundTime), "KillPlayer"123);
    }
}
 
 
public 
KillPlayer()
{
    static 
g_iNum,g_iPlayers[32],msg[100]
    
get_players(g_iPlayersg_iNum"ach");
    for(new 
id id g_iNum id++)
    {
        
user_kill(id,1)
    }
    
format(msg,99,"^x04[Round Control]Round End,All player must be die")
    
client_color(0,1,msg)
}  

public 
client_color(playeridcoloridmsg[])
{
    
message_begin((playerid== 0) ? MSG_ALL MSG_ONE,get_user_msgid("SayText"),_,playerid
    
write_byte(colorid)
    
write_string(msg)
    
message_end()

my code is not work..
__________________
My Plugins

C4man with fun

Sniper Skill bonus
-------------------------
Sorry for my poor English!
biscuit628 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 18:25.


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