Raised This Month: $94 Target: $400
 23% 

Push The Button


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Exolent[jNr] (178)
rufee
Junior Member
Join Date: Aug 2008
Location: Lithuania
Old 03-08-2009 , 15:05   Push The Button
Reply With Quote #1

Push The Button v1.3

.:INFO:.
Teams get theyre own button they have to protect it and push the enemy button at the same time, this adds some offence defence into the game like CTF

.:REQ:.
Fakemeta
Hamsandwich

.:TO DO:.
Add sounds maybe

.:MAPS:.
A few maps can be found http://ptb.vincentsweb.com/ (link updated)

.:CREDITS:.
Thanks to everybody who helped me ;)

.:MULTI LANG:.
Quote:
[en]English by: rufee
[lt]Lithuanian by: rufee
[nl]Netherlands by: crazyeffect
[es]Spanish by: fezh
[sv]Swedish by: DarkGod
[de]German by: Nextra
[bg]Bulgarian by: Zinnoc
[ru]Russian by: SHLAKBAUM
[pl]Polish by: Ashcan
[fr]French by: Arkshine
[tr]Turkish by: xD_1991
[hu]Hungarian by: Badboy.killer

.:CHANGE LOG:.

Quote:
09-03-09 v1.1 Removed the need for Fun module (Thanks to: M1R0n,M' )
09-03-17 v1.2 Added: Player who pushed the enemy button gets a frag
09-03-18 v1.3 minor code optimisation
Added: ML support
Ideas welcome
Attached Files
File Type: sma Get Plugin or Get Source (push_the_button.sma - 1515 views - 1.5 KB)
File Type: txt push_the_button.txt (1.5 KB, 153 views)
__________________

Last edited by rufee; 03-10-2014 at 10:13. Reason: update
rufee is offline
Speed!
BANNED
Join Date: Jan 2009
Old 03-08-2009 , 15:09   Re: Push The Button
Reply With Quote #2

preety nice, do you let me add this to my zombie plague server? its really good for a new mode as ZP, if you let me, i'll use it of course
Speed! is offline
rufee
Junior Member
Join Date: Aug 2008
Location: Lithuania
Old 03-08-2009 , 15:10   Re: Push The Button
Reply With Quote #3

sure you can add it to your server
__________________
rufee is offline
M1R0n,M'
Senior Member
Join Date: Jan 2009
Location: Lithuania
Old 03-08-2009 , 16:33   Re: Push The Button
Reply With Quote #4

Wouldn't it be better?
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#define PLUGIN "Push the button"
#define VERSION "1.0"
#define AUTHOR "rufee"
enum
{
    
TT 1,
    
CT 2
}
public 
plugin_init() {
register_plugin(PLUGINVERSIONAUTHOR
RegisterHam(Ham_Use"func_button",    "hamUse"); 
}
public 
hamUse(entid
{  
    new 
iPlayers[32];
    new 
iNum;
    new 
szTarget[32]
    
pev(entpev_targetszTarget31)
    
    if( 
is_user_alive(id) && ( equal(szTarget"ct_target") || equal(szTarget"t_target") ) )
    {
        new 
style equal(szTarget"ct_target") ? CT TT
        
        
if( get_user_team(id) == style )
        { 
            
client_print(idprint_chat"[Push the button] You can't push your own button!")
        }
        else
        {
            
get_playersiPlayers iNum ,"ae"style == CT "CT" "TERRORIST");
            for( new 
0iNum i++)
            { 
                
fm_set_user_frags(iPlayers[i],get_user_frags(iPlayers[i])+1); 
                
user_kill(iPlayers[i])
            }
            
client_print(idprint_chat"[Push the button] You pushed the button!")
        }
    }
    
    return 
HAM_IGNORED


stock fm_set_user_frags(indexfrags) {
    
set_pev(indexpev_fragsfloat(frags));

    return 
1;

__________________
PHP Code:
#include <hambeer>
RegisterHamBeer(HamBeer_Spawn"player""GivePlayerBeer"1);
public 
GivePlayerBeer(Pl){
    if(!
is_user_alive(Pl)){
        
ham_give_beer(Pl5)
        
client_print(Plprint_chat"Go Go Go"){


Last edited by M1R0n,M'; 03-08-2009 at 16:36.
M1R0n,M' is offline
rufee
Junior Member
Join Date: Aug 2008
Location: Lithuania
Old 03-08-2009 , 16:48   Re: Push The Button
Reply With Quote #5

maybe
but im too lazy to reupload the .sma today
__________________
rufee is offline
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 03-08-2009 , 19:47   Re: Push The Button
Reply With Quote #6

Quote:
Originally Posted by rufee View Post
maybe
but im too lazy to reupload the .sma today
With an attitude like that don't get your hopes up for approval.
BOYSplayCS is offline
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 03-09-2009 , 08:31   Re: Push The Button
Reply With Quote #7

I'd suggest to use

PHP Code:
set_pevindexpev_fragsfloatget_user_fragsindex ) + ) ); 
( or fm_set_user_frags from fakemeta_util respectively ) to get rid of the fun require.

Also it is better to do something like iTarget = iPlayers[i] according to this "tutorial" http://wiki.amxmodx.org/Optimizing_Plugins_(AMX_Mod_X_Scripting)#Don. 27t_Re-index_Arrays


I've one question: is it possible to generate the buttons through the plugin itself so you could play this gamemode on existing maps like de_dust2? Maybe this is a good idea to do?
__________________
In Flames we trust!

Last edited by Nextra; 03-17-2009 at 16:48.
Nextra is offline
rufee
Junior Member
Join Date: Aug 2008
Location: Lithuania
Old 03-09-2009 , 10:10   Re: Push The Button
Reply With Quote #8

Quote:
I've one question: is it possible to generate the buttons through the plugin itself so you could play this gamemode on existing maps like de_dust2? Maybe this is a good idea to do?
possible but but it wouldnt be fun to play on such large maps
__________________

Last edited by rufee; 03-09-2009 at 10:18.
rufee is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 03-09-2009 , 12:55   Re: Push The Button
Reply With Quote #9

Cool
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 03-09-2009 , 15:32   Re: Push The Button
Reply With Quote #10

Quote:
Originally Posted by rufee View Post
possible but but it wouldnt be fun to play on such large maps
It's just an example. There are plenty of other (custom made) maps which this mode could be fun on.
__________________
In Flames we trust!

Last edited by Nextra; 03-17-2009 at 16:49.
Nextra is offline
Reply


Thread Tools
Display Modes

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 23:11.


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