Raised This Month: $ Target: $400
 0% 

Need to edit plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Zond
Junior Member
Join Date: Nov 2011
Old 01-09-2014 , 04:32   Need to edit plugin
Reply With Quote #1

https://forums.alliedmods.net/showth...103073&page=10
I want to make changes in this plugin so every new round first blood sound starts, not only when new map starts.
This is what need to be done:
Originally Posted by Flasher
In round end event handler (you have to write it yourself) place this code:
Code:
_firstKill = true;
Can someone make these changes for me please?
Zond is offline
waza123a
Member
Join Date: Mar 2010
Old 01-09-2014 , 05:01   Re: Need to edit plugin
Reply With Quote #2

PHP Code:
// in:
public plugin_init() 

// add this:
register_logevent("round_start"2"1=Round_Start")

// and this function under:
public round_start()
{
    
_firstKill true;

__________________
Life is good, sometimes...
waza123a is offline
Zond
Junior Member
Join Date: Nov 2011
Old 01-09-2014 , 07:00   Re: Need to edit plugin
Reply With Quote #3

Quote:
Originally Posted by waza123a View Post
PHP Code:
// in:
public plugin_init() 

// add this:
register_logevent("round_start"2"1=Round_Start")

// and this function under:
public round_start()
{
    
_firstKill true;

Thanks for code, but it does not work.
Zond is offline
waza123a
Member
Join Date: Mar 2010
Old 01-09-2014 , 07:13   Re: Need to edit plugin
Reply With Quote #4

i did what you sad.
__________________
Life is good, sometimes...
waza123a is offline
Zond
Junior Member
Join Date: Nov 2011
Old 01-09-2014 , 07:34   Re: Need to edit plugin
Reply With Quote #5

Quote:
Originally Posted by waza123a View Post
i did what you sad.
Oh you forgot ";"
Thanks, works now
Zond 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 10:05.


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