Raised This Month: $ Target: $400
 0% 

Glow In Rebeld Attack


Post New Thread Reply   
 
Thread Tools Display Modes
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
Toastt
BANNED
Join Date: Nov 2009
Old 12-21-2009 , 01:16   Re: Glow In Rebeld Attack
Reply With Quote #2

this is a dumb idea, but i've seen in many servers,
what if a guard was tuanting, they attack they glow, they die cause guards are stupid XD
Toastt is offline
shuttle_wave
Veteran Member
Join Date: Apr 2009
Location: New Zealand
Old 12-21-2009 , 05:09   Re: Glow In Rebeld Attack
Reply With Quote #3

just use fun include and add this


This is to turn off glow
PHP Code:
set_user_rendering(idkRenderFxGlowShell000kRenderNormal20
This one is to turn into red glow
PHP Code:
set_user_rendering(idkRenderFxGlowShell25000kRenderNormal20
So if u want to stop glow when they have a new round add the first code to Post Spawn or something
__________________
JailBreak Mod with Plugin API ( 90% ) Public
shuttle_wave is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 12-21-2009 , 05:14   Re: Glow In Rebeld Attack
Reply With Quote #4

Code:
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
 }
to

Code:
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
 }
anyway this fucks up jailbreak gameplay
__________________
I am out of order!
grimvh2 is offline
shawlinn
Senior Member
Join Date: May 2009
Location: Brazil
Old 12-22-2009 , 09:05   Re: Glow In Rebeld Attack
Reply With Quote #5

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


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