[AMXX][ALL] Infinite Flash Battery

A Config Script for Counter-Strike 1.6

Yo, buddy. We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending rj. points.
  • Post: Give rj. your thoughts on this Script.
  • Vote: Help rj. win the Monthly Awards.
  • Rate: Give this Script a rating out of 10.
  • Flag: Alert moderators and warn members of a problem with this Script.
  • Watch: Get notified when this Script is updated.
Mascot

Sound fun?

Sign up

Already a Bananite? Login

22 lines | 610 bytes | Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include < amxmodx >
#include < fakemeta >

const m_iFlashBattery = 244;

public plugin_init( ) {
        register_plugin( "Infinity Flash Bat", "1.0", "xPaw" );
       
        register_message( get_user_msgid( "FlashBat" ),   "MsgFlashBat" );
        register_message( get_user_msgid( "Flashlight" ), "MsgFlashLight" );
}

public MsgFlashLight( const MsgId, const MsgType, const id )
        set_msg_arg_int( 2, ARG_BYTE, 100 );

public MsgFlashBat( const MsgId, const MsgType, const id ) {
        if( get_msg_arg_int( 1 ) < 100 ) {
                set_msg_arg_int( 1, ARG_BYTE, 100 );
               
                set_pdata_int( id, m_iFlashBattery, 100, 5 );
        }
}
Infinite flash battery.. does it need any description? Use flashlight as long as you want.

Posts

Share

Shareable Image:
Share banner
HTML embed code:
BB embed code:
Markdown embed code:

More embeddable images

Bookmark and Share

Credits

Original Authors
xPaw
AMXX Script/Codes

Submitter

rj. avatar
rj. PAUSE
Member Joined 1y
201 points Ranked 17922nd
38 medals 4 legendary 10 rare
  • Submitted 15 Tools Medal icon
  • Submitted 50 Gamefiles Medal icon
  • 15+ Entries! GameBanana’s Christmas Giveaway 2016 Medal icon
  • Thanked 500 submitters Medal icon
  • 2nd Place - Game Poetry Contest Medal icon
  • Submitted 5 Tools Medal icon

rj.
Redistributor
Are you the owner? Request Ownership
Sign up to access this!
Sign up to access this!
Sign up to access this!
Sign up to access this!

Category

Stats

Posts
2
Views
671
Date Added
5mo
bcp.crwdcntrl.net tracking pixel