Can u add also a msg when he/she leaves the server ?
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cromchat>
new PLUGIN[] = "Welcome Msg"
new VERSION[] = "2.0"
new AUTHOR[] = "YusoChan-"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
CC_SetPrefix("&x01[&x04ADMIN&x01]");
}
public client_putinserver(id)
{
set_task(3.0,"administrator",id)
}
public administrator(id)
{
if(get_user_flags(id) & ADMIN_SLAY)
{
new Szname[32]
get_user_name(id, Szname, 31)
CC_SendMessage(0, "%s &x01%s &x03Connected in the &x04Server!", Szname)
}
}
__________________