Raised This Month: $ Target: $400
 0% 

Color change in every 3 sec


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
vl@d
Senior Member
Join Date: Dec 2006
Location: Romania
Old 06-16-2007 , 04:59   Re: Color change in every 3 sec
Reply With Quote #4

damn not working. (
the color is not changing.
Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"



public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_cvar("color_change", "1");
    register_concmd("color","color_change",ADMIN_ALL,"color change")
}

public color_change(id){
    
    set_task(0.0,"color1")
    set_task(3.0,"color2")

    return PLUGIN_HANDLED
}

public color1(id) {
    set_user_info(id,"con_color","255 24 30")
}

public color2(id){
    set_user_info(id,"con_color","240 240 240")
}
__________________


I hate Spammers....
vl@d 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 10:41.


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