Raised This Month: $ Target: $400
 0% 

First blood question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dreamedward
Senior Member
Join Date: Aug 2010
Location: ZombieWorld
Old 06-17-2011 , 11:59   First blood question
Reply With Quote #1

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.
dreamedward is offline
bobby3
Member
Join Date: Apr 2011
Old 06-17-2011 , 13:29   Re: First blood question
Reply With Quote #2

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 -.-
bobby3 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-17-2011 , 13:43   Re: First blood question
Reply With Quote #3

Quote:
Originally Posted by bobby3 View Post
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.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Dolph_Ziggler
BANNED
Join Date: Jun 2011
Old 06-17-2011 , 14:33   Re: First blood question
Reply With Quote #4

Quote:
Originally Posted by dreamedward View Post
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
Dolph_Ziggler is offline
Send a message via MSN to Dolph_Ziggler
dreamedward
Senior Member
Join Date: Aug 2010
Location: ZombieWorld
Old 06-18-2011 , 13:25   Re: First blood question
Reply With Quote #5

Quote:
Originally Posted by Exolent[jNr] View Post
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...
dreamedward is offline
johnally
Member
Join Date: May 2011
Location: Mauritius
Old 06-18-2011 , 14:42   Re: First blood question
Reply With Quote #6

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!
__________________
No allowed!

johnally is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-18-2011 , 20:01   Re: First blood question
Reply With Quote #7

Are you using the normal or the beta version of the plugin you linked?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
dreamedward
Senior Member
Join Date: Aug 2010
Location: ZombieWorld
Old 06-19-2011 , 04:28   Re: First blood question
Reply With Quote #8

Quote:
Originally Posted by johnally View Post
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] View Post
Are you using the normal or the beta version of the plugin you linked?
The normal one.
dreamedward is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-19-2011 , 04:31   Re: First blood question
Reply With Quote #9

The first blood should only play once per round: when the first player is killed.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
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 09:11.


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