Raised This Month: $ Target: $400
 0% 

[request] bomb reward.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Buckshot
Senior Member
Join Date: Mar 2014
Location: Sweden
Old 04-16-2014 , 16:38   Re: [request] bomb reward.
Reply With Quote #3

Code:
#include < amxmodx > #include < fakemeta_util > // edit: I got a brainfart, and included this instead of using set_user_health.. but whatever, it doesnt make any performances worse, so im just gonna be lazy n leave you here, fakemeta. #include < hamsandwich > #pragma semicolon 1 new bool:HasReward[ 32 ]; public plugin_init( ) {     register_plugin( "Bomb Reward", "1.0", "BuckShot" );         register_logevent( "Player_DefusedBomb", 3, "2=Defused_The_Bomb" );     RegisterHam( Ham_Spawn, "player", "FwdHamPlayerSpawnPost", 1 ); } stock get_loguser_index( ) {     new loguser[ 80 ], name[ 32 ];     read_logargv( 0, loguser, 79 );     parse_loguser( loguser, name, 31 );       return get_user_index( name ); } public Player_DefusedBomb( ) {         new id = get_loguser_index( );     HasReward[ id ] = true; } public FwdHamPlayerSpawnPost( id ) {     if( HasReward[ id ] )     {         set_pev( id, pev_health, float( pev( id, pev_health ) + 25 ) );         HasReward[ id ] = false;     } } public client_disconnect( id ) {     if( HasReward[ id ] )         HasReward[ id ] = false; }
__________________
PM me for private work.



Last edited by Buckshot; 04-16-2014 at 21:27.
Buckshot is offline
Send a message via Skype™ to Buckshot
 



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 17:53.


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