There is no method to directly block class selection in the menu in ZP 4.3. This must be done before the class is applied.
Code:
public zp_user_infected_pre(id)
{
if(zp_get_user_next_class(id) == g_ZombieClassID)
{
if(crxranks_get_user_level(id) < zombieclass_unlock_level)
{
zp_set_user_zombie_class(id, 0)
client_print(id, print_chat, "* You must reach level %i in order to use this class!", zombieclass_unlock_level)
}
}
}
__________________