Hi guys, i will to ask onething easy, i think.
when T attacks a CT, he will have on GLOW RED, when he dies,he will have GLOW again when attack a CT.
Put here please: thx this is for jailbreak mod cs 1.6
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <cstrike>
#define PLUGIN "New Plug-In"
#define VERSION "0.01"
#define AUTHOR "hx7r"
new bool:first_attack = false
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_logevent("RoundStart_PosFT",2,"1=Round_Start")
register_event("Damage","event_damage","be")
}
public RoundStart_PosFT()
first_attack = false
public Damage()
{
new attacker = read_data(1)
new vitima = read_data(2)
new name_attacker[32]
get_user_name(attacker,name_attacker,31)
new name_vitima[32]
get_user_name(attacker,name_vitima,31)
if(!is_user_alive(attacker) || !is_user_alive(vitima))
return PLUGIN_CONTINUE;
if(cs_get_user_team(attacker) == cs_get_user_team(vitima))
return PLUGIN_CONTINUE;
else if(cs_get_user_team(attacker) == CS_TEAM_T && cs_get_user_team(vitima) == CS_TEAM_CT && first_attack)
{
client_print(0,print_chat,"[JBROX] Rebelde %s atacou %s",name_attacker,name_vitima)
first_attack = true
}
else if(cs_get_user_team(vitima) == CS_TEAM_T && cs_get_user_team(attacker) == CS_TEAM_CT && first_attack == false)
{
client_print(0,print_chat,"[JBROX] Guarda %s atacou %s sem ter feito nada!",name_attacker,name_vitima)
return PLUGIN_HANDLED;
}
return PLUGIN_HANDLED;
}