View Single Post
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-29-2022 , 06:34   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #792

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)         }     } }
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom