As you found out how to make them for VIPs, let's just skip to the Admin part. To make an item admin only firstly you should check for the required flags, test this. /*================================================================================
---------------------------------- -*- [ZP] Class: Human: Last Man -*- ----------------------------------
This plugin is part of Zombie Plague Mod and is distributed under the terms of the GNU General Public License. Check ZP_ReadMe.txt for details.
// Last Man Attributes new const humanclass1_name[] = "Last Human" new const humanclass1_info[] = "[Last human Survivor]" new const humanclass1_models[][] = { "leet" } const humanclass1_health = 150 const Float:humanclass1_speed = 1.0 const Float:humanclass1_gravity = 1.0 const surv_hp = 500 new g_Human_surv
public plugin_precache() { register_plugin("[ZP] Class: Human: Last Man", ZP_VERSION_STRING, "ZP Dev Team")
g_Human_surv = zp_class_human_register(humanclass1_name, humanclass1_info, humanclass1_health, humanclass1_speed, humanclass1_gravity) new index for (index = 0; index < sizeof humanclass1_models; index++) zp_class_human_register_model(g_Human_surv, humanclass1_models[index]) }
public zp_fw_core_spawn_post(id) { if(zp_class_human_get_next(id) == g_Human_surv && get_user_flags(id) & ADMIN_FLAG) zp_colored_print(id, " You are using ^x04Last Human Class^x01.You will become SURVIVOR,if you become Last Human.")
else if(!(get_user_flags(id) & ADMIN_FLAG)) { client_print(id, print_chat, "This Class Is Admin Only") return PLUGIN_HANDLED;
} }
public zp_fw_core_last_human(id) { if(zp_class_survivor_get(id)) return;
if(!(get_user_flags(id) & ADMIN_FLAG)) return;
if(zp_class_human_get_next(id) == g_Human_surv && zp_core_is_last_human(id)) { zp_class_survivor_set(id) set_user_health(id, surv_hp) zp_colored_print(id, " You become ^x03SURVIVOR^x01,Since you become Last Human") } }
About the VIP name thing, you can edit that in the defines of that class.
As you found out how to make them for VIPs, let's just skip to the Admin part. To make an item admin only firstly you should check for the required flags, test this.
// Last Man Attributes new const humanclass1_name[] = "Last Human" new const humanclass1_info[] = "[Last human Survivor]" new const humanclass1_models[][] = { "leet" } const humanclass1_health = 150 const Float:humanclass1_speed = 1.0 const Float:humanclass1_gravity = 1.0 const surv_hp = 500 new g_Human_surv
public plugin_precache() { register_plugin("[ZP] Class: Human: Last Man", ZP_VERSION_STRING, "ZP Dev Team")
g_Human_surv = zp_class_human_register(humanclass1_name, humanclass1_info, humanclass1_health, humanclass1_speed, humanclass1_gravity) new index for (index = 0; index < sizeof humanclass1_models; index++) zp_class_human_register_model(g_Human_surv, humanclass1_models[index]) }
public zp_fw_core_spawn_post(id) { if(zp_class_human_get_next(id) == g_Human_surv && get_user_flags(id) & ADMIN_FLAG) zp_colored_print(id, " You are using ^x04Last Human Class^x01.You will become SURVIVOR,if you become Last Human.")
else if(!(get_user_flags(id) & ADMIN_FLAG)) { client_print(id, print_chat, "This Class Is Admin Only") return PLUGIN_HANDLED;
} }
public zp_fw_core_last_human(id) { if(zp_class_survivor_get(id)) return;
if(!(get_user_flags(id) & ADMIN_FLAG)) return;
if(zp_class_human_get_next(id) == g_Human_surv && zp_core_is_last_human(id)) { zp_class_survivor_set(id) set_user_health(id, surv_hp) zp_colored_print(id, " You become ^x03SURVIVOR^x01,Since you become Last Human") } } change to ->↓↓