Sorry, my mistake. I don't realise that this code is using ZP5.0 coding style.
Just follow this new steps:
1. Please restore the code to the original code.
2. Just add #include <zmvip> in both code below #include <***> (any include).
3. For the first code, just add this part after the public zp_fw_core_infect_post(id) section:
PHP Code:
public zp_fw_class_zombie_select_pre(id, classid) {
if (classid == g_zclass_smoker) {
if (zv_get_user_flags(id) == 0) {
zp_class_zombie_menu_text_add("*VIP* only!")
return ZP_CLASS_NOT_AVAILABLE;
}
else {
zp_class_zombie_menu_text_add("*VIP*")
return ZP_CLASS_AVAILABLE;
}
}
return ZP_CLASS_AVAILABLE;
}
4. For the second code, just add this part after the public zp_fw_core_infect_post(id) section:
PHP Code:
public zp_fw_class_zombie_select_pre(id, classid) {
if (classid == g_ZombieClassID) {
if (zv_get_user_flags(id) == 0) {
zp_class_zombie_menu_text_add("*VIP* only!")
return ZP_CLASS_NOT_AVAILABLE;
}
else {
zp_class_zombie_menu_text_add("*VIP*")
return ZP_CLASS_AVAILABLE;
}
}
return ZP_CLASS_AVAILABLE;
}