AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Glow In Rebeld Attack (https://forums.alliedmods.net/showthread.php?t=112682)

shawlinn 12-20-2009 14:24

Glow In Rebeld Attack
 
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;
 



Toastt 12-21-2009 01:16

Re: Glow In Rebeld Attack
 
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

shuttle_wave 12-21-2009 05:09

Re: Glow In Rebeld Attack
 
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

grimvh2 12-21-2009 05:14

Re: Glow In Rebeld Attack
 
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

shawlinn 12-22-2009 09:05

Re: Glow In Rebeld Attack
 
hehehehhehe Thx


All times are GMT -4. The time now is 04:14.

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