Raised This Month: $ Target: $400
 0% 

help set max level to use hero


Post New Thread Reply   
 
Thread Tools Display Modes
Brun2Kill.
Member
Join Date: Oct 2011
Old 10-21-2011 , 17:13   Re: help set max level to use hero
Reply With Quote #21

yes i do ><
addons\amxmodx\configs\shero\admin_restrict.i ni
in the end of list:
!8
Spider-Man

*G-Dog wirt that
but still i can use spiderman in lvl 20..not restrict to 8 like i want

look amx say err when try load sh_adminrestric.amxx plugin. but Y ?

Last edited by Brun2Kill.; 10-21-2011 at 17:37.
Brun2Kill. is offline
G-Dog
Senior Member
Join Date: Dec 2005
Location: Thunderstorm Central
Old 10-21-2011 , 17:47   Re: help set max level to use hero
Reply With Quote #22

ya a mistake on my part, here's a fix for that
Attached Files
File Type: sma Get Plugin or Get Source (sh_adminrestrict.sma - 298 views - 10.1 KB)
__________________
If at first you don't succeed, then skydiving isn't for you.
G-Dog is offline
Send a message via AIM to G-Dog
Brun2Kill.
Member
Join Date: Oct 2011
Old 10-21-2011 , 22:24   Re: help set max level to use hero
Reply With Quote #23

perfect !!!! its work !
thanks man =].

edit:
work but have problem
when player became level up to the max he still have the power. . .

exm:
!t9
spider-men
player use sp-m in lvl 8 -> lvl up to 9 now mybi he cant choos spydi but he still has it :\


how to?

* more bug:
if press 2 3 times fast on restrict hero in menu you can get it
because 'antifool' (mode of amx) block your command...
if anti fool off its ok but i want him on . . .

Last edited by Brun2Kill.; 10-22-2011 at 00:28.
Brun2Kill. is offline
The Art of War
Veteran Member
Join Date: Dec 2009
Location: Sweden Rock Festival
Old 10-22-2011 , 07:19   Re: help set max level to use hero
Reply With Quote #24

It's called antiflood...

Well I'm not sure as I only skimmed it and I'm kinda rusty but it looks as if he drops it all right in hero_init to me..
__________________

Last edited by The Art of War; 10-22-2011 at 07:22.
The Art of War is offline
G-Dog
Senior Member
Join Date: Dec 2005
Location: Thunderstorm Central
Old 10-22-2011 , 09:24   Re: help set max level to use hero
Reply With Quote #25

Quote:
Originally Posted by Brun2Kill. View Post
player use sp-m in lvl 8 -> lvl up to 9 now mybi he cant choos spydi but he still has it :\
once the map changes it should force them to drop since the hero_init is called on map load, I added a delayed reattempt drop to get around floodlimit, but the real problem is the combination of floodlimit and alivedrop being turned off. Still trying to determine best method for dealing with that.
__________________
If at first you don't succeed, then skydiving isn't for you.
G-Dog is offline
Send a message via AIM to G-Dog
Brun2Kill.
Member
Join Date: Oct 2011
Old 10-22-2011 , 09:55   Re: help set max level to use hero
Reply With Quote #26

ok. =] tell me for update.

*i think try add access in antifoold to the plugin...
you now leet him know about the plug and just confirm him..
*drop problem - its not good enough 'when map change'..
i want to make some "gun game" white heros ->
next lvl drop spy and tike other hero.. mybi stronger mybi not :X

its need to work like "noob" hero -
have lvl max in sma of hero and its work perfect, ,

Last edited by Brun2Kill.; 10-22-2011 at 19:40.
Brun2Kill. is offline
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 10:52.


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