Raised This Month: $32 Target: $400
 8% 

Team Shooter (Not killer)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Casio
Member
Join Date: Jan 2005
Old 06-07-2006 , 17:00   Team Shooter (Not killer)
Reply With Quote #1

Is there a function/method that detects/executes when a player SHOOTS another player?

If yes please can you tell me it.

Many thanks.
Casio is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 06-07-2006 , 17:05  
Reply With Quote #2

Code:
#include <amxmodx> public plugin_init() {   register_plugin("test" , "0.1" , "v3x");   register_event("Damage" , "event_Damage" , "b" , "2>0"); } public event_Damage(id) {   new team[2] , attacker = get_user_attacker(id);   team[0] = get_user_team(id);   team[1] = get_user_team(attacker);   if(team[0] == team[1])     // team attack }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Casio
Member
Join Date: Jan 2005
Old 06-07-2006 , 17:08  
Reply With Quote #3

Awesome thankx!
Casio is offline
JohnJ3
Member
Join Date: May 2006
Location: Tomsk
Old 06-08-2006 , 00:36  
Reply With Quote #4

Description
client_damage - Function is called after player to player attacks
Syntax
client_damage ( attacker, victim, damage, wpnindex, hitplace, TA )
Type
Forward
Notes
If the player was damaged by a teammate then TA is set to 1.
JohnJ3 is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 06-08-2006 , 04:37  
Reply With Quote #5

Yes, but that requires and extra module ;-)
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
xnd
Junior Member
Join Date: Jan 2006
Old 06-08-2006 , 18:16  
Reply With Quote #6

hey, i have a quick question!

If ADMIN_KICK is flag "c"
then ????WHAT??? is flag "z"

i need this to edit a plugin. thanks
xnd is offline
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 06-08-2006 , 20:00  
Reply With Quote #7

could you like make a new topic in help and support and then we will help you
k007 is offline
Send a message via MSN to k007
Reply


Thread Tools
Display Modes

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 17:57.


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