Raised This Month: $ Target: $400
 0% 

2 Frags per kill


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mateo10
Veteran Member
Join Date: Jan 2006
Old 12-10-2006 , 08:20   2 Frags per kill
Reply With Quote #1

How do you make so a person gets two frags per kill instead of one?
mateo10 is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 12-10-2006 , 12:11   Re: 2 Frags per kill
Reply With Quote #2

Quote:
Originally Posted by mateo10 View Post
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.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
mateo10
Veteran Member
Join Date: Jan 2006
Old 12-10-2006 , 16:02   Re: 2 Frags per kill
Reply With Quote #3

Can it be done without an event?
mateo10 is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 12-10-2006 , 16:08   Re: 2 Frags per kill
Reply With Quote #4

Quote:
Originally Posted by mateo10 View Post
Can it be done without an event?
No, not really.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Old 12-10-2006, 16:08
The Specialist
This message has been deleted by The Specialist.
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 06:58.


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