AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   2 Frags per kill (https://forums.alliedmods.net/showthread.php?t=48347)

mateo10 12-10-2006 08:20

2 Frags per kill
 
How do you make so a person gets two frags per kill instead of one?

Hawk552 12-10-2006 12:11

Re: 2 Frags per kill
 
Quote:

Originally Posted by mateo10 (Post 413281)
How do you make so a person gets two frags per kill instead of one?

Code:
public plugin_init() {    //...    register_event("DeathMsg","EventDeathMsg","a")    //... } public EventDeathMsg() {    new Attacker = read_data(1),Victim = read_data(2),VicTeam = get_user_team(Victim)    if(Attacker && is_user_connected(Attacker) && get_user_team(Attacker) != VicTeam)        set_user_frags(Attacker,get_user_frags(Attacker) + 1) }

Something like that.

mateo10 12-10-2006 16:02

Re: 2 Frags per kill
 
Can it be done without an event?

Hawk552 12-10-2006 16:08

Re: 2 Frags per kill
 
Quote:

Originally Posted by mateo10 (Post 413504)
Can it be done without an event?

No, not really.


All times are GMT -4. The time now is 06:58.

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