Raised This Month: $32 Target: $400
 8% 

UTSounds


Post New Thread Reply   
 
Thread Tools Display Modes
Flasher
Senior Member
Join Date: Apr 2008
Old 12-02-2012 , 12:23   Re: UTSounds
Reply With Quote #91

h|Headshot!|[UTS_K] headshot killed [UTS_V] with [UTS_W]|misc/sound_for_killer.wav|misc/sound_for_victim.wav|
Flasher is offline
THC
Member
Join Date: May 2009
Old 04-03-2013 , 14:46   Re: UTSounds
Reply With Quote #92

Thanks
And other think how i disable only the message what show when you connect to server i try like this but have errors when i try to compile .

PS : only the message not the command .

Quote:
public ShowInfo(id)
{
id -= TASK_SHOWINFO_BASE;
if (id < 1 || id > MAX_PLAYERS) return;

if (_enabledForPlayer[id])
//client_print(id, print_chat, "[UTSounds] %L", id, "UTS_ON");
else
//client_print(id, print_chat, "[UTSounds] %L", id, "UTS_OFF");
}
__________________
THC is offline
Zond
Junior Member
Join Date: Nov 2011
Old 01-08-2014 , 04:49   Re: UTSounds
Reply With Quote #93

How to make the first blood play every new round not just on new map.
Zond is offline
Flasher
Senior Member
Join Date: Apr 2008
Old 01-08-2014 , 06:37   Re: UTSounds
Reply With Quote #94

In round end event handler (you have to write it yourself) place this code:
Code:
_firstKill = true;

Last edited by Flasher; 01-08-2014 at 06:37.
Flasher is offline
Zond
Junior Member
Join Date: Nov 2011
Old 01-08-2014 , 10:22   Re: UTSounds
Reply With Quote #95

Quote:
Originally Posted by Flasher View Post
In round end event handler (you have to write it yourself) place this code:
Code:
_firstKill = true;
Can someone do that to me?

Please

Last edited by Zond; 01-09-2014 at 04:25.
Zond is offline
R4to0.exe
Member
Join Date: Sep 2008
Location: Sao Paulo,Brazil
Old 09-05-2017 , 22:48   Re: UTSounds
Reply With Quote #96

I'm trying to compile this plugin with latest snapshot compiler but I'm getting "symbol already defined" with ArrayFindString. However it seems to work with webcompiler (when i click "get plugin)".

Code:
utsounds.sma(1519) : error 021: symbol already defined: "ArrayFindString"
utsounds.sma(1526) : error 010: invalid function or declaration
utsounds.sma(1532) : error 010: invalid function or declaration
utsounds.sma(1534) : error 010: invalid function or declaration
utsounds.sma(1525) : warning 203: symbol is never used: "size"
utsounds.sma(1524) : warning 203: symbol is never used: "stringInArray"
The problematic function is:

PHP Code:
ArrayFindString(Array:array, const string[])
{
#if defined _DEBUG_CONFIG
    
server_print("string: \"%s\""string);
#endif
    
new stringInArray[MAX_WEAPONNAME_LENGTH 1];
    new 
size ArraySize(array);
    for (new 
0sizei++)
    {
        
ArrayGetString(array, istringInArraycharsmax(stringInArray));
#if defined _DEBUG_CONFIG
    
server_print("stringInArray: \"%s\""stringInArray);
#endif
        
if (equal(stringInArraystring)) return i;
    }
    return -
1;

It seems it has to be converted to the "new" function method... Any help?

Last edited by R4to0.exe; 09-05-2017 at 22:52.
R4to0.exe is offline
Send a message via MSN to R4to0.exe Send a message via Skype™ to R4to0.exe
Flasher
Senior Member
Join Date: Apr 2008
Old 09-07-2017 , 17:42   Re: UTSounds
Reply With Quote #97

They added this function in the module
Code:
/**
 * Searches through the array and returns the index of the first occurence of
 * the specified string.
 *
 * @param which         Array handle
 * @param item          String to search for
 *
 * @return              Array index on success, -1 if the string can't be found
 * @error               Invalid handle.
 */
native ArrayFindString(Array:which, const item[]);
And the signature looks the same, so you can just delete that function from the plugin and compile.
Flasher is offline
R4to0.exe
Member
Join Date: Sep 2008
Location: Sao Paulo,Brazil
Old 09-09-2017 , 23:09   Re: UTSounds
Reply With Quote #98

Quote:
Originally Posted by Flasher View Post
so you can just delete that function from the plugin and compile.
Yep, that did the trick, thanks!
R4to0.exe is offline
Send a message via MSN to R4to0.exe Send a message via Skype™ to R4to0.exe
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 03:35.


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