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

Use Button Once


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Hawk552 (427)
Scherzo
Senior Member
Join Date: Feb 2007
Location: Kwidzyn, Poland
Old 07-16-2009 , 06:53   Use Button Once
Reply With Quote #1

Use Button Once
v1.3
usage of buttons (dedicated for DeathRun)

Project started as plugin, which default allow to only once per round use each button. Now it may define number of uses to all buttons, egzamples in .zip. From 1.1 you have a menu:
Quote:
amx_buttons
WARNING: After option "Go To" you should use No Clip to make. I suppose it could be done in code, but when it allow No Clip why make it more complicated

Ideas and tests(v1.0) is ZBAGI
Ideas and tests(from w v1.2) is Jazio

> v1.2 include FreeRun! When in voting more players choose Yes than No this mode starts - terrorist can`t use traps. Vote starts after use
Quote:
say /free
> v1.3 plugin have delay editor and restore buttons option

Cvars with default values

amx_buttons_default 1
  • Default count of uses


amx_buttons_team 1
  • Who plugin analyze
    0 - anyone(plugin disabled?)
    1 - Te
    2 - Ct
    3 - Te+Ct


amx_buttons_freerun 1
  • Enabled FreeRun mode? 0|1


amx_freerun_votetime 10
  • Vote time


amx_freerun_limit_mode 0
  • Type of limit
    0 - enabled after 'amx_freerun_limit' rounds
    1 - enabled after 'amx_freerun_limit' minutes


amx_freerun_limit 5
  • Size of Limit, depend on type

amx_freerun_info 120
  • interval of information, value lower than 0 will remove chat info


amx_freerun_tt_privilege 1
  • Terrorist`s privilege
    if he use /free FreeRun will start without vote, can he? 0|1
amx_restore_buttons 1
  • on start round make buttons enabled to use (when used in last round very late) 0|1


Menus help
Main menu
1 - increase limit uses of button
2 - decrease limit uses of button

3 - Open Delay Editor menu
4 - Options menu

5 - No Clip - On/Off free move&no gravity
6 - GodMode - On/Off be immortal

7 - save setting to file

8,9 - go to previous, next button
0 - exit

Options menu
1. move to button position, after use No Clip
2. menu will set to button, which is the nearest owner of menu
9. back tu main menu

Delay Editor menu
1. increase delay
2. decrease delay
3. return default delay (from mapper`s set)
9. back tu main menu

Thx xPaw for report entities class issue
Attached Files
File Type: zip use_button_once.zip (34.7 KB, 12240 views)
File Type: sma Get Plugin or Get Source (use_button_once.sma - 14482 views - 18.4 KB)

Last edited by Scherzo; 07-27-2009 at 09:30. Reason: update
Scherzo is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 07-16-2009 , 07:24   Re: Use Button Once
Reply With Quote #2

func_button_rotating wtf? such entity not exists.. but button_target is exists and its button too...
__________________
xPaw is offline
Old 07-16-2009, 07:24
xPaw
This message has been deleted by xPaw. Reason: damn this slow site..
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 07-16-2009 , 08:38   Re: Use Button Once
Reply With Quote #3

Good idea, but maybe not good coded?

(If i look @ xPaws reaction )
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
platzpatrone
Veteran Member
Join Date: Apr 2007
Location: Germany
Old 07-16-2009 , 09:01   Re: Use Button Once
Reply With Quote #4

so the server admin have to set up all buttons first, save that changes,
reload map and then it works ?

if so why not code it so that it does it automated ?
some servers running more than 70 deathrun maps, much work
then
platzpatrone is offline
Scherzo
Senior Member
Join Date: Feb 2007
Location: Kwidzyn, Poland
Old 07-16-2009 , 10:11   Re: Use Button Once
Reply With Quote #5

Quote:
Originally Posted by xPaw View Post
func_button_rotating wtf? such entity not exists.. but button_target is exists and its button too...
yep its func_rot_button forgot to look at VHE
replaced and button_target added
thx

All buttons have default count of uses (amx_buttons_default) and admin should change value of button only if want other (exceptions).
Scherzo is offline
platzpatrone
Veteran Member
Join Date: Apr 2007
Location: Germany
Old 07-16-2009 , 21:19   Re: Use Button Once
Reply With Quote #6

nice i will give it a try and install it on my deathrun server yet.

EDIT:

holy cow works great!

+karma

Last edited by platzpatrone; 07-16-2009 at 21:45.
platzpatrone is offline
edga85
BANNED
Join Date: Jan 2009
Old 07-17-2009 , 08:04   Re: Use Button Once
Reply With Quote #7

Maybe use not limit but time like 15-20 sec. ?
edga85 is offline
Send a message via Skype™ to edga85
Scherzo
Senior Member
Join Date: Feb 2007
Location: Kwidzyn, Poland
Old 07-17-2009 , 08:07   Re: Use Button Once
Reply With Quote #8

I hope so in near future will add button delay editor.
Scherzo is offline
Old 07-17-2009, 08:24
edga85
This message has been deleted by edga85. Reason: Doned with 2 times button :)
platzpatrone
Veteran Member
Join Date: Apr 2007
Location: Germany
Old 07-17-2009 , 13:27   Re: Use Button Once
Reply With Quote #9

i like the thing with "noclip" in the menu, just turn on off if needed without binding keys to do that.

again it works great, i like this way with the allowed count much more as to edit it with time delay.

can u add a cvar like "amx_buttons_advert 1/0" to disable
the chatmessage ?

and for the FreeRun it would be nice to allow only knife and drop other
weapons then.
platzpatrone is offline
Scherzo
Senior Member
Join Date: Feb 2007
Location: Kwidzyn, Poland
Old 07-17-2009 , 13:59   Re: Use Button Once
Reply With Quote #10

Quote:
Originally Posted by platzpatrone View Post
can u add a cvar like "amx_buttons_advert 1/0" to disable
the chatmessage ?
You mean info about using /free? Sure, but i decided to add cvar with interval of it - simple you will set it from 120 to 0

Ok now we have
v1.2.3

Last edited by Scherzo; 07-17-2009 at 14:12.
Scherzo 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 00:51.


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