Примерен плъгин №1: Чат съобщение, която показва дали играчът е жив, чрез /alive .
Код за потвърждение: Избери целия код
#include <amxmodx>
#include <fun>
#define PLUGIN_NAME "/alive command"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "RideeR ;]"
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
register_clcmd("say /alive", "cmd_alive")
}
public cmd_alive(id)
{
if (is_user_alive(id) == 1)
{
client_print(id, print_chat, "You are alive")
}
else
{
client_print(id, print_chat, "You are dead")
}
return PLUGIN_HANDLED
}