Raised This Month: $ Target: $400
 0% 

Glow In Rebeld Attack


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
shawlinn
Senior Member
Join Date: May 2009
Location: Brazil
Old 12-20-2009 , 14:24   Glow In Rebeld Attack
Reply With Quote #1

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(PLUGINVERSIONAUTHOR)
 
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;
 

shawlinn is offline
 



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 04:14.


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