AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Statsme Problem (https://forums.alliedmods.net/showthread.php?t=88726)

Speedy' 03-28-2009 13:01

Statsme Problem
 
Well, first of all i apologise for posting this here... i really need some help. So, my problem is this: I want that the Statsme addon will only add specified sounds without HUD Messages on specified events (headshot kill, knife kil.. etc). I tried myself solve this problem, erasing the custom messages, adding comment at the sm_mode line... but it's still appearing the number 0 in HUD Message when a event occure, like an Headsht kill.
I took a screenshot to see what i mean:
[IMG]http://img16.**************/img16/7244/screenshot031.th.png[/IMG]


Here is the cod from the headshot script:
Code:

;sm_mode set d

;alias set_hs "sm_sayformat 0 100 200 -1 0.25 0 6 6 0.5 0.5 2" //Headshot

;sm_menu "Headshot announce\\y\\R{sm_mode&d?ON:OFF}" "sm_mode {sm_mode&d?remove:set} d"


// Headshot

sm_reg "SM_DeathMsg d" "sm_clexec #{k.uid} \'spk misc/sud/headshot\';sm_tell * \'{#.txths{R.11}}\'" ade "3=1" "5=0"
sm_reg "SM_DeathMsg d" "sm_clexec #{v.uid} \'spk misc/sud/headshot\';sm_tell * \'{#.txths{R.11}}\'" ade "3=1" "5=0"

I will support the consequence because' this isn't belong to amxmodx addon... but please help me someone ! Thanks in advance...

Hunter-Digital 03-28-2009 14:43

Re: Statsme Problem
 
That's because {#.txths} doesn't seem to be defined anywhere... therefore, undefined variable prints 0

also, those are configs, not scripts, ; it's a command separator not a comment, // it's a comment.

add:
Code:

sm_do "{#.txths0=Headshot !}"
and keep adding and increasing the number (0) by 1 until you reach 11... ooor just set the random a bit smaller or just remove it...

Also you should have posted in the Off Topic / General Chat forum, not here...


All times are GMT -4. The time now is 08:55.

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