Raised This Month: $ Target: $400
 0% 

Kill Bonus


Post New Thread Reply   
 
Thread Tools Display Modes
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 01-18-2008 , 18:42   Re: Kill Bonus
Reply With Quote #81

That is the plugin...
__________________
bmann_420 is offline
rAnDy OrToN
Junior Member
Join Date: Sep 2007
Old 01-18-2008 , 23:18   Re: Kill Bonus
Reply With Quote #82

sorry i am pretty noob with the codes and stuff...i don't understand by "that's the plugin" you gave me the source code but don't know what to do with it....because i get the plugin by downloading it...
rAnDy OrToN is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-19-2008 , 02:26   Re: Kill Bonus
Reply With Quote #83

Quote:
Originally Posted by rAnDy OrToN View Post
i don't understand by "that's the plugin"
I think he means that's the same code as the original plugin.
Anyway the code won't work.
I'll test my code on a dedicated server when i can.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
rAnDy OrToN
Junior Member
Join Date: Sep 2007
Old 01-19-2008 , 02:38   Re: Kill Bonus
Reply With Quote #84

thanks man, my server crashes everytime i put it in, the original one by kensai....didn't crash my server but it wasn't working...but it says it work on amx_plugins
rAnDy OrToN is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 01-19-2008 , 07:24   Re: Kill Bonus
Reply With Quote #85

I use one made by somebody else about 3 pages ago and it works just fine. But you just copy the code and put in notepad and save it as a .sma and compile it at amxmodx.org then click on the compiler.
__________________
bmann_420 is offline
rAnDy OrToN
Junior Member
Join Date: Sep 2007
Old 01-19-2008 , 13:12   Re: Kill Bonus
Reply With Quote #86

well i just did that...and it says wait for 10 minutes so i am waiting...but would it be .amxx or the same .sma? cause i need both for the server...
rAnDy OrToN is offline
rAnDy OrToN
Junior Member
Join Date: Sep 2007
Old 01-19-2008 , 13:52   Re: Kill Bonus
Reply With Quote #87

i don't understand i compiled it, and i downloaded the file. but it was xxx.amxx.text.. and i waited 10 minutes as they stated, but then it says it's either expired or not exist..
rAnDy OrToN is offline
rAnDy OrToN
Junior Member
Join Date: Sep 2007
Old 01-19-2008 , 14:16   Re: Kill Bonus
Reply With Quote #88

i Compiled it and it was .amxx..it was running but it was like the original one...it didn't crash my server but it don't work for some reason...
rAnDy OrToN is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-19-2008 , 19:56   Re: Kill Bonus
Reply With Quote #89

Quote:
Originally Posted by rAnDy OrToN View Post
i don't understand i compiled it, and i downloaded the file. but it was xxx.amxx.text.. and i waited 10 minutes as they stated, but then it says it's either expired or not exist..
Nowhere on that page does it say to wait 10 minutes. It says that the file will EXPIRE in 10 minutes
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-19-2008 , 20:30   Re: Kill Bonus
Reply With Quote #90

This one should work (this other one is better, but for some reasons you can't use it...)

PHP Code:
#include <amxmodx>
#include <fun>

#define MAX_PLAYER_HP    100

new g_pcvarNormalBonusg_pcvarHeadshotBonus

public plugin_init() {
    
register_plugin("Kill Bonus""1.0""connorr")

    
g_pcvarNormalBonus register_cvar("kb_normal_hp""10")
    
g_pcvarHeadshotBonus register_cvar("kb_headshot_hp""20")

    
register_event("DeathMsg""eDeathMsg""a")
}

public 
eDeathMsg(id) {
    new 
iKiller read_data(1)
    if(!
is_user_alive(iKiller))
        return

    if(
get_user_team(iKiller) == get_user_team(read_data(2)))
        return

    
set_user_health(idmin(get_user_health(id) + get_pcvar_num(read_data(3) ? g_pcvarHeadshotBonus g_pcvarNormalBonus),MAX_PLAYER_HP))

Attached Files
File Type: sma Get Plugin or Get Source (kill_bonus.sma - 601 views - 671 Bytes)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 19:11.


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