Raised This Month: $ Target: $400
 0% 

[HELP] Print message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
diviqt
Senior Member
Join Date: Jul 2007
Location: Bulgaria
Old 03-26-2009 , 09:53   [HELP] Print message
Reply With Quote #1

What i have to change in this
Code:
public eventDeathMsg()
{
        new iKiller = read_data(1);
 
        if (iKiller == read_data(2))
        {
                g_iKills[iKiller] = 0;
 
                return;
        }
 
 
        g_iKills[iKiller] += 1;
 
        for (new i = 0; i < sizeof(g_szSnds); i++)
        {
                if (g_bMultiKill[iKiller] && g_iKills[iKiller] == g_iLvls[i])
                {  
        new name[32];
        get_user_name(iKiller, name, 31);
        client_cmd(iKiller, "spk %s", g_szSnds[i]);
                        client_print(iKiller, print_chat, "%s %s", name, g_szMsgs[i]);
                }
        }
 
        g_bMultiKill[iKiller] = true;
 
        set_task(KILL_TIME, "taskEndMultiKills", iKiller);
}
to show the message i want to all the players and they to hear the sound too because when someone do double kill or triple kill only he hears the sound and he can see the message Player made DOUBLE KILL !

Here is the plugin

Last edited by diviqt; 03-29-2009 at 10:52.
diviqt is offline
Send a message via ICQ to diviqt Send a message via Skype™ to diviqt
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-26-2009 , 09:59   Re: Help with message
Reply With Quote #2

As per the Global Forum Rules, you need to have a descriptive topic title. If you wish for this topic to stay open, please correct the topic title before you post again.

You are asking for Scripting Help, so post there. moved
__________________
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
Jheshka
Senior Member
Join Date: Dec 2005
Old 03-26-2009 , 11:11   Re: [HELP] Print message
Reply With Quote #3

Please clarify which you want.


You want it so ALL players hear the sound?

Or just the player that makes the double, or triple kill?
__________________
James
Jheshka is offline
diviqt
Senior Member
Join Date: Jul 2007
Location: Bulgaria
Old 03-26-2009 , 11:59   Re: [HELP] Print message
Reply With Quote #4

i want all the players to hear the sound and to see the message
diviqt is offline
Send a message via ICQ to diviqt Send a message via Skype™ to diviqt
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-26-2009 , 12:03   Re: [HELP] Print message
Reply With Quote #5

Use 0 as the id for client_cmd and client_print then
__________________
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
diviqt
Senior Member
Join Date: Jul 2007
Location: Bulgaria
Old 03-28-2009 , 10:15   Re: [HELP] Print message
Reply With Quote #6

i am not good at this ^^ can you tell me where and what should i change ??
diviqt is offline
Send a message via ICQ to diviqt Send a message via Skype™ to diviqt
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-28-2009 , 11:11   Re: [HELP] Print message
Reply With Quote #7

I already did tell you.

Quote:
Use 0 as the id for client_cmd and client_print then
__________________
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
diviqt
Senior Member
Join Date: Jul 2007
Location: Bulgaria
Old 03-28-2009 , 11:27   Re: [HELP] Print message
Reply With Quote #8

Thanks YamiKaitou
it works great
diviqt is offline
Send a message via ICQ to diviqt Send a message via Skype™ to diviqt
diviqt
Senior Member
Join Date: Jul 2007
Location: Bulgaria
Old 03-29-2009 , 10:53   Re: [HELP] Print message
Reply With Quote #9

Close this thread pls
diviqt is offline
Send a message via ICQ to diviqt Send a message via Skype™ to diviqt
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 14:25.


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