AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] Print message (https://forums.alliedmods.net/showthread.php?t=88551)

diviqt 03-26-2009 09:53

[HELP] Print message
 
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

YamiKaitou 03-26-2009 09:59

Re: Help with message
 
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

Jheshka 03-26-2009 11:11

Re: [HELP] Print message
 
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?

diviqt 03-26-2009 11:59

Re: [HELP] Print message
 
i want all the players to hear the sound and to see the message :)

YamiKaitou 03-26-2009 12:03

Re: [HELP] Print message
 
Use 0 as the id for client_cmd and client_print then

diviqt 03-28-2009 10:15

Re: [HELP] Print message
 
i am not good at this ^^ can you tell me where and what should i change ??

YamiKaitou 03-28-2009 11:11

Re: [HELP] Print message
 
I already did tell you.

Quote:

Use 0 as the id for client_cmd and client_print then

diviqt 03-28-2009 11:27

Re: [HELP] Print message
 
Thanks YamiKaitou :)
it works great :)

diviqt 03-29-2009 10:53

Re: [HELP] Print message
 
Close this thread pls :)


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

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