AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Need to edit plugin (https://forums.alliedmods.net/showthread.php?t=233054)

Zond 01-09-2014 04:32

Need to edit plugin
 
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 https://forums.alliedmods.net/images...s/viewpost.gif
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?

waza123a 01-09-2014 05:01

Re: Need to edit plugin
 
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;



Zond 01-09-2014 07:00

Re: Need to edit plugin
 
Quote:

Originally Posted by waza123a (Post 2083362)
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.

waza123a 01-09-2014 07:13

Re: Need to edit plugin
 
i did what you sad.

Zond 01-09-2014 07:34

Re: Need to edit plugin
 
Quote:

Originally Posted by waza123a (Post 2083395)
i did what you sad.

Oh you forgot ";" :)
Thanks, works now :)


All times are GMT -4. The time now is 10:05.

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