Raised This Month: $ Target: $400
 0% 

API Scripting Help [TUT] ZP 5.0 Admin Only class


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
bartek93tbg
Member
Join Date: Apr 2011
Location: Poland
Old 08-23-2011 , 12:03   Re: [TUT] ZP 5.0 Admin Only class
Reply With Quote #7

It is possible to make admin class even in ZP 4.3
Just use forward zp_user_infected_pre
example:

Code:
public zp_user_infected_pre(id) 
{
        if((zp_get_user_next_class(id) == your_class_id) && !(get_user_flags(id) & ADMIN_BAN))
        {
            client_print(id, print_chat, "[ZP] Only admins can use this class!")
            zp_set_user_zombie_class(id, 0)
        }
}
bartek93tbg is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode