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

Problems with miscstats.amxx


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shoopdawhoop100
New Member
Join Date: Dec 2017
Old 12-10-2017 , 06:34   Problems with miscstats.amxx
Reply With Quote #1

I have two issues:

miscstats won't display killstreak messages on as_oilrig.

I can't find how to center killstreak messages on the screen.

I am running PODbot, CSDM and gungame.

EDIT: The problem with as_oilring is that I'm running ffa and since the first people we see in as_oilrig are "on the same team" then they don't count towards killstreaks. So let me amend my first question to: How to make miscstats killstreaks work in ffa?


EDIT2: So I fixed both problems. In the .sma, under the KillingStreak section, go to set_hudmessage(0, 100, 255, 0.05, 0.50, 2, 0.02, 6.0, 0.01, 0.1, -1) and change the 4th and 5th variables to -1.0 and 0.20, respectively. Then change g_left_sync (just below) to g_center1_sync. This will center your killstreak messages and also put it so it won't cover up any other hud messages. And, you can do this with any set_hudmessage in the script.

Next, to make killstreaks work with ffa, go to the start of the KillingStreak section:

if ((KillingStreak || KillingStreakSound) && !TK)

and remove && !TK so it looks like this:

if ((KillingStreak || KillingStreakSound))

Then, go to:

if (!selfkill && !TK)

under the multikill section and remove && !TK again:

if (!selfkill)


And that's it! Killstreak messages are centered and you get credit for TKs.

I've attached my edited .sma if you don't want to edit it yourself.
Attached Files
File Type: sma Get Plugin or Get Source (miscstats.sma - 529 views - 18.2 KB)

Last edited by shoopdawhoop100; 12-11-2017 at 05:37.
shoopdawhoop100 is offline
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 21:32.


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