Help with first plugin please
Hi, i've decided to make a simple plugin. The basic and only origional idea I could think of, was to make, on map startup, a message being displayed on every player's HUD, and their health being set to a random amount.
I've got this so far, and have got stuck :(
Code:
#include <amxmodx>
new PLUGIN[]="Nerd's revenge"
new AUTHOR[]="BRUm"
new VERSION[]="1.00"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("admin_nerd", "cmd_nerd", ADMIN_CHAT, "admin_nerd")
}
public cmd_nerd(id, level, cid)
{
//This will check if the user calling the command has the right access level.
if (!cmd_access(id, level, cid, 0)) {
//This terminates the command
return PLUGIN_HANDLED
}
//This prints a message to all clients
client_print(0, print_chat, "YoU hAvE bEeN cUrSeD bY tEh EvIl nErD!")
return PLUGIN_HANDLED
}
|