Raised This Month: $ Target: $400
 0% 

[req] Modification in a lifes plugin (deathrun)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sigerman
Senior Member
Join Date: Aug 2013
Location: Argentina, Bs.As.
Old 03-04-2015 , 01:34   [req] Modification in a lifes plugin (deathrun)
Reply With Quote #1

I have a deathrun server, which has a problem, when someone is afk, they are transfered to spec team.
The "Lifes" plugin, opens up a menu when someone dies, but it doesn't get closed when a round ends.

So, a person in the server that has a life dies, the menu gets opened, the person doesn't touch the menu, awaits for the round to end, respawn in ct, stays quiet (afk), waits until the plugin transfer him to spec, and when finally he is in spec team, with the menu opened, he can get revived in the tt base, 'cause when someone is revived in the spec team, automatically is spawn in tt base.

*What I'm asking for: That the menu of the lifes plugin, gets closed in the end of a round. In any team : TT,CT,SPEC.

I attached the sma, for you to look.

Please, If you didn't understand something, tell me in the coments.
Thanks in advance.
Attached Files
File Type: sma Get Plugin or Get Source (lifes.sma - 527 views - 10.1 KB)

Last edited by sigerman; 03-04-2015 at 01:35.
sigerman is offline
sigerman
Senior Member
Join Date: Aug 2013
Location: Argentina, Bs.As.
Old 03-06-2015 , 02:55   Re: [req] Modification in a lifes plugin (deathrun)
Reply With Quote #2

If this is difficult to you, or can't be done, I have another idea, when a spectator is revived, it's killed by the server.
sigerman is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 03-06-2015 , 08:01   Re: [req] Modification in a lifes plugin (deathrun)
Reply With Quote #3

test this:
Attached Files
File Type: sma Get Plugin or Get Source (lifes.sma - 568 views - 10.2 KB)
__________________
JusTGo is offline
sigerman
Senior Member
Join Date: Aug 2013
Location: Argentina, Bs.As.
Old 03-06-2015 , 22:03   Re: [req] Modification in a lifes plugin (deathrun)
Reply With Quote #4

I've tested your modification, until now seems to work fine, I'm gonna put it on my server, so I can have a better look. Well, thanks. I will answer when I got the news anyway.
sigerman is offline
sigerman
Senior Member
Join Date: Aug 2013
Location: Argentina, Bs.As.
Old 05-31-2016 , 20:22   Re: [req] Modification in a lifes plugin (deathrun)
Reply With Quote #5

Quote:
Originally Posted by JusTGo View Post
test this:
Can you post the modification you did? The lines you changed
sigerman is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 06-01-2016 , 09:26   Re: [req] Modification in a lifes plugin (deathrun)
Reply With Quote #6

line 179:
PHP Code:
if(is_user_alive(id) || cs_get_user_team(id) == CS_TEAM_T


>>>>>>>>>>>>>>>>



PHP Code:
if(is_user_alive(id) || cs_get_user_team(id) == CS_TEAM_T || cs_get_user_team(id) == CS_TEAM_SPECTATOR

also you can do it this way better:



PHP Code:
if(is_user_alive(id) || cs_get_user_team(id) != CS_TEAM_CT
__________________

Last edited by JusTGo; 06-01-2016 at 09:29.
JusTGo 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 11:48.


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