Quote:
Originally Posted by Napoleon_be
PHP Code:
#include <amxmodx>
#include <colorchat>
#define VERSION "1.0" //Only define our Version to optimize the plugin.
public plugin_init() {
register_plugin("Say Hello!", VERSION, "NapoleoN#") // Register out plugin.
register_clcmd("say /hi", "Handle_Say")
}
public Handle_Say(id) {
if(is_user_connected(id)) {
ColorChat(id, GREEN, "[Hello]^X01 Welcome to the server!") // Prints our message when you are connected.
}
}
|
You don't have to check if the user is connected.
He can't say anything if he isn't connected.
__________________