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

First Round Kill


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
frOOgy
Senior Member
Join Date: Jul 2014
Old 07-14-2014 , 19:14   First Round Kill
Reply With Quote #1

I need plugins first kill in round (FirstBlood) Ho give bonus for first kill in round - killer (+2000$ + 15HP /AP) + firstblood.wav THX
__________________
Help me in other requests

Change Map System [PLUGIN]

GaG System [PLUGIN] [PLUGIN]
frOOgy is offline
Send a message via Skype™ to frOOgy
Old 07-14-2014, 21:24
frOOgy
This message has been deleted by YamiKaitou. Reason: wait 14 days before you bump
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-15-2014 , 06:05   Re: First Round Kill
Reply With Quote #2

Quote:
Originally Posted by frOOgy View Post
I need plugins first kill in round (FirstBlood) Ho give bonus for first kill in round - killer (+2000$ + 15HP /AP) + firstblood.wav THX
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <cstrike>
#include <fun>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

new boolg_bFirstKill

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event "DeathMsg""event_death""a" )
    
register_event "HLTV""event_new_round""a""1=0""2=0" )  
}

public 
plugin_precache ( ) {
    
    
precache_sound "misc/firstblood.wav" );
    
}

public 
event_death ( ) {
    
    new 
attacker read_data )
    
    if ( ! 
g_bFirstKill ) {
    
        
g_bFirstKill true
        cs_set_user_money 
attackercs_get_user_money attacker ) + 2000 )
        
set_user_health attackerget_user_health attacker ) + 15 )
        
set_user_armor  attackerget_user_armor attacker ) + 15 )
        
emit_sound0CHAN_AUTO"misc/firstblood.wav"0.7ATTN_NORM0PITCH_NORM );
    }
}

public 
event_new_round ( )
    
g_bFirstKill false 
Your sound must to be in sound/misc.

Last edited by HamletEagle; 07-15-2014 at 06:10.
HamletEagle is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-16-2014 , 15:12   Re: First Round Kill
Reply With Quote #3

@ Thank you, HamletEagle.

I have make a new plugin from your code:
I have add credit for you. Feel free to test it.
zmd94 is offline
Shockyboy
Senior Member
Join Date: Apr 2014
Location: Earth
Old 11-10-2014 , 16:22   Re: First Round Kill
Reply With Quote #4

__________________


[ LEARNING SCRIPTING ]
[ ||||||||||||] [ 30% ]
Shockyboy is offline
endlessx
Junior Member
Join Date: Sep 2023
Old 09-29-2023 , 04:41   Re: First Round Kill
Reply With Quote #5

Quote:
Originally Posted by HamletEagle View Post
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <cstrike>
#include <fun>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

new boolg_bFirstKill

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event "DeathMsg""event_death""a" )
    
register_event "HLTV""event_new_round""a""1=0""2=0" )  
}

public 
plugin_precache ( ) {
    
    
precache_sound "misc/firstblood.wav" );
    
}

public 
event_death ( ) {
    
    new 
attacker read_data )
    
    if ( ! 
g_bFirstKill ) {
    
        
g_bFirstKill true
        cs_set_user_money 
attackercs_get_user_money attacker ) + 2000 )
        
set_user_health attackerget_user_health attacker ) + 15 )
        
set_user_armor  attackerget_user_armor attacker ) + 15 )
        
emit_sound0CHAN_AUTO"misc/firstblood.wav"0.7ATTN_NORM0PITCH_NORM );
    }
}

public 
event_new_round ( )
    
g_bFirstKill false 
Your sound must to be in sound/misc.
can you maybe put in this code a message like this :

" Jucatorul *name*(green) a facut primul kill si a fost rasplatit cu *money*(green) , *15HP*(green) , *15AP*(green) "
endlessx 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 16:03.


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