AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   First blood question (https://forums.alliedmods.net/showthread.php?t=159458)

dreamedward 06-17-2011 11:59

First blood question
 
Can I ask you how can I make the Firsblood sound and text to appear only when the first kill from all players from the server is done. I'm talking about this plugin - http://forums.alliedmods.net/showthread.php?p=416080
When anybody in the server who hasn't done a kill in that round does his first kill, the first blood sound appears. I don't want that for every single player. I want it to appear when the first kill from all the players is done. Not the first kill for every single one of them. Hope you've understood me right.

bobby3 06-17-2011 13:29

Re: First blood question
 
WTF, how can every1 have 1 kill in one round; No sense at all. If its Ct vs Ts, sombebody has to die so tht round ends, and its almost impossible doing it; When i mean almost impossible, i meant that people can kill each other using HE -.-

Exolent[jNr] 06-17-2011 13:43

Re: First blood question
 
Quote:

Originally Posted by bobby3 (Post 1490171)
WTF, how can every1 have 1 kill in one round; No sense at all. If its Ct vs Ts, sombebody has to die so tht round ends, and its almost impossible doing it; When i mean almost impossible, i meant that people can kill each other using HE -.-

I think he meant the first person to kill in the round, the "first blood" plays.

Dolph_Ziggler 06-17-2011 14:33

Re: First blood question
 
Quote:

Originally Posted by dreamedward (Post 1490106)
Can I ask you how can I make the Firsblood sound and text to appear only when the first kill from all players from the server is done. I'm talking about this plugin - http://forums.alliedmods.net/showthread.php?p=416080
When anybody in the server who hasn't done a kill in that round does his first kill, the first blood sound appears. I don't want that for every single player. I want it to appear when the first kill from all the players is done. Not the first kill for every single one of them. Hope you've understood me right.

he mean at begin of new game when first player has killed it say First Blood, he wont that at every new round begin when first player killed

dreamedward 06-18-2011 13:25

Re: First blood question
 
Quote:

Originally Posted by Exolent[jNr] (Post 1490178)
I think he meant the first person to kill in the round, the "first blood" plays.

Exactly. Because I think the plugin has a bug and the first Blood sound playes often. I want that sound to play only when the 'First Blood' is taken. The plugin playes the sound for almost every kill...

johnally 06-18-2011 14:42

Re: First blood question
 
I guess you need to add some variable that resets on every new round. The very 'First Blood' in that round will have the variable change to 1(for example). And the next first blood would not be counted thereafter.

PHP Code:

new firstblood 0

public firstblood(parameters) {
     if (
firstblooddone != 1) {
              
firstblooddone 1;
             
// Do the firstblood sound etc etc
    
}


Only reset firstblooddone back to 0 on every round change then!

Exolent[jNr] 06-18-2011 20:01

Re: First blood question
 
Are you using the normal or the beta version of the plugin you linked?

dreamedward 06-19-2011 04:28

Re: First blood question
 
Quote:

Originally Posted by johnally (Post 1490893)
I guess you need to add some variable that resets on every new round. The very 'First Blood' in that round will have the variable change to 1(for example). And the next first blood would not be counted thereafter.

PHP Code:

new firstblood 0
 
public firstblood(parameters) {
     if (
firstblooddone != 1) {
              
firstblooddone 1;
             
// Do the firstblood sound etc etc
    
}


Only reset firstblooddone back to 0 on every round change then!

I will try.
Quote:

Originally Posted by Exolent[jNr] (Post 1491053)
Are you using the normal or the beta version of the plugin you linked?

The normal one.

Exolent[jNr] 06-19-2011 04:31

Re: First blood question
 
The first blood should only play once per round: when the first player is killed.


All times are GMT -4. The time now is 23:25.

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