Raised This Month: $51 Target: $400
 12% 

X-Kills


Post New Thread Reply   
 
Thread Tools Display Modes
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 08-02-2006 , 03:55   Re: X-Kills
Reply With Quote #11

Take the AMXX Studio notes out of the .sma (may have to open it in notepad to see them if you are using AMXX Studio)

Code:
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0{\\ fonttbl{\\ f0\\ fnil\\ fcharset0 Tahoma;}}\n{\\ colortbl ;\\ red0\\ green0\\ blue0;}\n\\ viewkind4\\ uc1\\ pard\\ cf1\\ lang5129\\ b\\ f0\\ fs16 \n\\ par }
*/
This can be approved if you just change this:
Code:
    if (get_user_team(id) == get_user_team(victim))                  set_user_frags(id, frags - hsKills)        else                  set_user_frags(id, frags + hsKills)
to
Code:
    if (get_user_team(id) == get_user_team(victim))                  set_user_frags(id, frags - hsKills - 1)        else                  set_user_frags(id, frags + hsKills - 1)

So that the CVAR will be less confusing, so that the cvar will give X number of frags and take X number of frags instead of giving "X + 1" and confusing ppl.

Lastly, plugin_init doesn't need to return a value. Nor the deathmessage hook. Just FYI.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Mini_Midget
Veteran Member
Join Date: Jan 2006
Location: It's a mystery.
Old 08-02-2006 , 04:28   Re: X-Kills
Reply With Quote #12

Done and done!
uploaded new version with tips from chronic
__________________
It's a mystery.
Mini_Midget is offline
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 03-02-2007 , 18:03   Re: X-Kills
Reply With Quote #13

I don't get that.

Code:
if (get_user_team(id) == get_user_team(victim))         
        set_user_frags(id, frags - hsKills - 1)    
    else         
        set_user_frags(id, frags + hsKills - 1)
Wouldn't that make you lose 3 frags instead? And gain only 1 frag? Assuming the cvar is still set to 2.

EDIT: Nevermind I think I understand. You subtract another because the attacker is gaining a frag from the initial kill. =p

Last edited by Kensai; 03-02-2007 at 18:07.
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
liolemas
Junior Member
Join Date: Jan 2007
Location: Lithuanian
Old 04-22-2007 , 10:00   Re: X-Kills
Reply With Quote #14

Any screenshots ?
__________________
Mutrafucker ! CSDM only and forever !
liolemas is offline
Send a message via MSN to liolemas Send a message via Yahoo to liolemas Send a message via Skype™ to liolemas
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:41.


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