Raised This Month: $ Target: $400
 0% 

Help with set_task()


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bad HAL 9000
Senior Member
Join Date: Mar 2004
Location: Minnesota, USA
Old 07-06-2004 , 15:54  
Reply With Quote #4

I think it does, I cant remember if I added that or it was default lol.

Well, it would look SOMTHING like this

untested, I think it will work, maybe not. Also, dont use client_connect
use client_putinserver Well, you dont have to but it is called later on so there is a chance you can see your own welcome message
Code:
/* AMX Mod script. * * (c) 2003, Bad HAL 9000 * This file is provided as is (no warranties). */ #include <amxmodx> new dyAuthID[32], dyUserIP[32], dyUserName[32] public plugin_init(){     register_plugin("HAX","1.0","Bad HAL 9000") } public client_putinserver(id) {         get_user_authid(id, dyAuthID, 31)     get_user_ip(id, dyUserIP, 31, 1)     get_user_name(id, dyUserName, 31)     if(get_user_flags(id)&ADMIN_ADMIN){     set_task(15.0, "display_red", 110)     }else{         server_cmd("amx_tsay yellow %s has joined the server", dyUserName)     } } public display_red() {     server_cmd("amx_tsay red [ADMIN]%s has joined the server", dyUserName)     set_task(1.0, "display_green", 111)     remove_task(110) } public display_green() {     server_cmd("amx_tsay green [ADMIN]%s has joined the server", dyUserName)     set_task(1.0, "display_blue", 112)     remove_task(111) } public display_blue() {     server_cmd("amx_tsay blue [ADMIN]%s has joined the server", dyUserName)     remove_task(112) }
__________________
Bad HAL 9000 is offline
Send a message via ICQ to Bad HAL 9000 Send a message via AIM to Bad HAL 9000 Send a message via MSN to Bad HAL 9000 Send a message via Yahoo to Bad HAL 9000
 



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 14:52.


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