Raised This Month: $ Target: $400
 0% 

Help me add show_hudmessage to this please.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Battousai-sama
Veteran Member
Join Date: Jul 2007
Old 12-15-2007 , 18:24   Help me add show_hudmessage to this please.
Reply With Quote #1

can anybody help me change this print chat to show_hudmessage ?
with color.

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


public plugin_init()
{
    
register_plugin("Restarting Round","1.0","Weed")
    
register_concmd("amx_restround","admin_restround",ADMIN_RESERVATION,"<restart times> <delay>")
}

public 
drestart(param[]) 
    
set_cvar_string("sv_restartround",param)

public 
admin_restround(idlevelcid) { 
    if (!
cmd_access(idlevelcid3))
        return 
PLUGIN_HANDLED
    
new sdelay[4], stimes[4]
    
read_argv(1,stimes,3)
    
read_argv(2,sdelay,3)
    new 
delay str_to_num(sdelay)
    new 
times str_to_num(stimes)
    for(new 
times;0;--a)
        
set_taskfloat(delay a) + 1.0 "drestart"0sdelay4)
{
        
console_print(id,"Restarting round %d times. Each restart will be in delay of %d seconds.",times,delay)
        
client_print(0,print_chat,"Restarting round %d times. Each restart will be in delay of %d seconds.",times,delay)
    }
    return 
PLUGIN_HANDLED

__________________

Last edited by Battousai-sama; 12-15-2007 at 20:37.
Battousai-sama is offline
Send a message via MSN to Battousai-sama
 



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 11:01.


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