Damn ..
Code:
// This is a comment, it will not do anything within the plugin
Code:
#include <amxmodx>
public plugin_init() {
register_plugin("Admin join/Leave Message", "beta 1","h4ns")
register_cvar("amx_join_message", "Beware %name% is connecting!")
register_cvar("amx_joined_message", "O NO! %name% is here!")
register_cvar("amx_leave_message", "Finally %name% is gone!")
}
public client_connect(id) {
new authID[33]
new steamID = get_user_authid(id,authID,32)
// If steamID returns as true
if (steamID) {
new joinMsg[164]
get_cvar_string("amx_join_message",joinMsg,163)
new name[33]
get_user_name(id,name,32)
replace(joinMsg,163,"%name%",name)
// set_hudmessage(...)
show_hudmessage(0,"%s",joinMsg)
}
return PLUGIN_HANDLED
}
I might be wrong..
__________________