Hay, I ask the following and that makes it so that it withdraws all the HP team.
But I'd like it only kills the +10 jenigen the 20hp has withdrawn. Is that possible?
Sorry my english is not good
German:
Hay, ich hab folgende frage und zwar macht es ja das es das ganze team die HP abzieht.
Doch ich würd gern das es nur den jenigen der +10 kills hat die 20hp abzieht. Geht das?
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <hamsandwich>
#define PLUGIN "Winner Loose HP"
#define VERSION "1.0"
#define AUTHOR "KiA & NiTroX"
new TerrorWin, CounterWin
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event( "SendAudio", "CT_win", "a", "2&%!MRAD_ctwin" )
register_event( "SendAudio", "T_win", "a", "2&%!MRAD_terwin" )
RegisterHam(Ham_Spawn, "player", "hfw_plrSpawnPost", 1)
}
public CT_win() CounterWin++
public T_win() TerrorWin++
public hfw_plrSpawnPost(id)
{
if(cs_get_user_team(id) == CS_TEAM_T && (TerrorWin - CounterWin >= 5))
{
set_user_health(id, (get_user_health(id) - 20))
}
if(cs_get_user_team(id) == CS_TEAM_CT && (CounterWin - TerrorWin >= 5))
{
set_user_health(id, (get_user_health(id) - 20))
}
}
And then I'd have one other question and that you have that plugin from NEN +15 kills one weapon only allowed to have fun playing
German:
Und dann hätt ich noch einen andere Frage und zwar habt ihr nen plugin welches ab +15 Kills einen nur noch erlaubt mit Fun waffen zuspielen
__________________