Raised This Month: $ Target: $400
 0% 

Need a little help PLEASE !


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
dorin2oo7
Senior Member
Join Date: Jun 2008
Location: Sibiu, Romania
Old 10-13-2008 , 18:42   Need a little help PLEASE !
#1

I have a plugin that I need to change.

To be short I'll ask just a little ideea on how to make the vox sounds of half-life to play something like health of the killer and armor of the killer like... :

50 HP 100 AP

spk "^vox/%d health and %i armor^", khealth, karmor <- Just an example

I made to play the vox like... health and armor, but the hardest part i don't now is how to make the plugin to "read" the health and play it as a vox sound. This kind of vox mesage it is used in statsme mod in kill.cfg file and it's looks like this:
sm_reg "SM_DeathMsg i" "sm_clexec #{v.uid} \'spk \\'vox/{W.{k.health}} health and {W.{k.armor}} armor\\'\'" ade

Hope that someone understand what I'm trying to say/ask and will help me !

Thanks !

God@Dorin
dorin2oo7 is offline
padilha007
Senior Member
Join Date: Jul 2008
Old 10-13-2008 , 18:59   Re: Need a little help PLEASE !
#2

well im noob in script but....

need check how much hp in death event >

PHP Code:
new att read_data(1)
new 
vic read_data(2)

if(
get_user_health(att) == 50) {
client_cmd(vic"spk sound/50hp.wav")
}
...
if(
get_user_armor(att) == 100) {
client_cmd(vic"spk sound/100ap.wav")

is a long code, you can use switch but need 1 to 100 HP and 1 to 100 AP. I think I would much lag
__________________

padilha007 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-13-2008 , 19:32   Re: Need a little help PLEASE !
#3

[img]http://img264.**************/img264/5866/globalruleszv5.jpg[/img]
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Closed Thread



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 05:49.


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