AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Team Shooter (Not killer) (https://forums.alliedmods.net/showthread.php?t=29552)

Casio 06-07-2006 17:00

Team Shooter (Not killer)
 
Is there a function/method that detects/executes when a player SHOOTS another player?

If yes please can you tell me it.

Many thanks.

v3x 06-07-2006 17:05

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 }

Casio 06-07-2006 17:08

Awesome thankx! :)

JohnJ3 06-08-2006 00:36

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.

v3x 06-08-2006 04:37

Yes, but that requires and extra module ;-)

xnd 06-08-2006 18:16

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

k007 06-08-2006 20:00

could you like make a new topic in help and support and then we will help you


All times are GMT -4. The time now is 16:24.

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