AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Preset KillStreak + Fireworks++ 3.0 = fireworks killstreak = teh best of two worlds! (https://forums.alliedmods.net/showthread.php?t=58335)

apegomp 07-24-2007 04:07

Preset KillStreak + Fireworks++ 3.0 = fireworks killstreak = teh best of two worlds!
 
I'm using two plugins for The Specialists v2.1, preset_killstreak.amxx and fireworks2.amxx. I want fireworks on event/killstreak, that is, I want my 1337 custom cfg script8),
Code:

alias fireworks "firework;shoot_fireworks"
executed whenever I get a streak.
There must be an easy way to script this, like
just replacing the <key> in
Code:

alias fireworks "firework;shoot_fireworks"
bind <key> fireworks

with <event>! :P

Imagine getting a Double Kill and BOOM! FIREWORKS!:mrgreen: \(o_____O)/:D:D:

you guys are experienced, I dont' know anything about scripting plugins.. :cry:
please, someone script it already
*EDIT*
lol double post!
M-M-M-M-MONSTERPOST! D:

Minimum 07-24-2007 14:30

Re: Preset KillStreak + Fireworks++ 3.0 = fireworks killstreak = teh best of two worl
 
Try adding this into the event function.

Code:
client_cmd(id,"firework;shoot_fireworks")

apegomp 07-24-2007 15:48

Re: Preset KillStreak + Fireworks++ 3.0 = fireworks killstreak = teh best of two worl
 
Quote:

Originally Posted by Minimum (Post 507615)
Try adding this into the event function.

Code:
client_cmd(id,"firework;shoot_fireworks")

+karma. I did it! D: I changed the original code in the Preset KillStreak plugin from
Code:

//-----------------------------------------------------------------------------
stock playStreakSounds(level, killer)
{
    if(g_sSndStreakKiller[level][0])
        client_cmd(killer, "spk %s", g_sSndStreakKiller[level])

to
Code:

//-----------------------------------------------------------------------------
stock playStreakSounds(level, killer)
{
    if(g_sSndStreakKiller[level][0])
        client_cmd(killer, "spk %s", g_sSndStreakKiller[level])
    if(g_sSndStreakKiller[level][0])
        client_cmd(killer, "firework;shoot_fireworks")



All times are GMT -4. The time now is 21:32.

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