public native_get_user_points(id) { return Point[id] }
public native_set_user_points(id, amount) { Point[id] = amount }
public native_reset_user_points(id) { Point[id] = 0 }
public plugin_init() { register_plugin("[ZP43] Addons: Points", "3.0", "Jack") register_clcmd("say /pointmenu", "point_menu") register_clcmd("say_team /pointmenu", "point_menu") register_clcmd("say /points", "points") // Cvars cvar_not_head_points = register_cvar("zp_points_normal_reward", "1") // Points reward for a player who kills ZM in anyplace execpt head cvar_head_points = register_cvar("zp_points_head_reward", "3") // Points reward for a player who kills ZM in head }
replace_all(msg, 190, "!g", "^x04"); // Green Color replace_all(msg, 190, "!y", "^x01"); // Default Color replace_all(msg, 190, "!t", "^x03"); // Team Color
if (id) players[0] = id; else get_players(players, count, "ch"); { for (new i = 0; i < count; i++) { if (is_user_connected(players[i])) { message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]); write_byte(players[i]); write_string(msg); message_end(); } } } }