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)
}
__________________