#include <amxmodx> #include <hamsandwich> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "author" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) RegisterHam(Ham_Spawn, "player", "PlayerSpawnPost", 1) register_event("TextMsg", "PlayerJoinedCt", "a", "2&#Game_join_ct"); } public PlayerJoinedCt() { new id = read_data(1); client_cmd(id, "say /class"); } public PlayerSpawnPost(id) { if (is_user_alive(id)) { client_cmd(id, "say /class"); } }