Raised This Month: $51 Target: $400
 12% 

[Some code help] Is it possible?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
New and Clueless
Senior Member
Join Date: Dec 2015
Old 01-08-2016 , 09:50   [Some code help] Is it possible?
Reply With Quote #1

Is it possible to limit a zombie class that can be picked per round? for example this zombie class:

Spoiler


Spoiler


it is just way too powerful if everyone can pick it, but if only for example 1 person can pick it then its a little better, if its too much hard work is it possible to make it for admin only with flag u? or maybe even a plugin for zp43 that is a class limiter (which i know is alot of work)

can you make this for admin only? i'd like it for flag 'u' thanks!

need to add this after all the checks
Code:
if(!(get_user_flags(attacker) & ADMIN_MENU)) return HAM_IGNORED;
Im not too sure where the checks are and if you need to do something else too

Spoiler


thanks for your time!

Last edited by New and Clueless; 01-08-2016 at 10:28.
New and Clueless is offline
Chihuahuax
Senior Member
Join Date: Oct 2014
Location: Malaysia
Old 01-08-2016 , 10:52   Re: [Some code help] Is it possible?
Reply With Quote #2

U mean, if one person has chosen that class, others will not be able to choose it?
Chihuahuax is offline
Send a message via Skype™ to Chihuahuax
New and Clueless
Senior Member
Join Date: Dec 2015
Old 01-08-2016 , 11:33   Re: [Some code help] Is it possible?
Reply With Quote #3

Quote:
Originally Posted by Chihuahuax View Post
U mean, if one person has chosen that class, others will not be able to choose it?
yes or maybe like 2 people, you know something like that, so not everybody can pick it, i need this for few classes
New and Clueless is offline
nomat
Member
Join Date: Apr 2011
Location: Moldova, Republic of
Old 01-08-2016 , 12:14   Re: [Some code help] Is it possible?
Reply With Quote #4

use MeRcyLeZZ class limiter https://forums.alliedmods.net/showthread.php?t=166027
__________________

nomat is offline
Send a message via Skype™ to nomat
New and Clueless
Senior Member
Join Date: Dec 2015
Old 01-08-2016 , 12:43   Re: [Some code help] Is it possible?
Reply With Quote #5

Quote:
Originally Posted by nomat View Post
im on zp43
New and Clueless is offline
nomat
Member
Join Date: Apr 2011
Location: Moldova, Republic of
Old 01-08-2016 , 12:54   Re: [Some code help] Is it possible?
Reply With Quote #6

hmm, in this case i recommend to look through code ZPS, there is extra items restriction, you could look how it's made and try to do the same but for your zp 4.3, for zombie classes
__________________


Last edited by nomat; 01-08-2016 at 12:55.
nomat is offline
Send a message via Skype™ to nomat
Reply



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 18:54.


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