Raised This Month: $51 Target: $400
 12% 

[REQ] Detect no kill and punish ( Players which is not killing the enemies)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Old.School
Senior Member
Join Date: Sep 2015
Location: France
Old 08-26-2017 , 13:51   [REQ] Detect no kill and punish ( Players which is not killing the enemies)
Reply With Quote #1

some players friends like a team playing against each other and not killing each other and they make the other players angry so i need code detect No Kill example method : by detecting when the player can see his enemy and they not shoot each other or some thing like that and thnx anyway
__________________
You keep bringing B.R down .. He will rise again and kick Enemies asses !

Last edited by Old.School; 08-26-2017 at 13:51.
Old.School is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 08-26-2017 , 15:02   Re: [REQ] Detect no kill and punish ( Players which is not killing the enemies)
Reply With Quote #2

that is your problem for the most part. slay them
__________________
retired chump

Last edited by DjSoftero; 08-26-2017 at 15:02.
DjSoftero is offline
Ayman Khaled
Senior Member
Join Date: Mar 2017
Location: Palestine
Old 08-26-2017 , 15:14   Re: [REQ] Detect no kill and punish ( Players which is not killing the enemies)
Reply With Quote #3

Quote:
Originally Posted by DjSoftero View Post
that is your problem for the most part. slay them
what if there is no admin on the server.?
__________________

Last edited by Ayman Khaled; 08-26-2017 at 15:15. Reason: typo
Ayman Khaled is offline
Old.School
Senior Member
Join Date: Sep 2015
Location: France
Old 08-26-2017 , 15:45   Re: [REQ] Detect no kill and punish ( Players which is not killing the enemies)
Reply With Quote #4

Quote:
Originally Posted by DjSoftero View Post
that is your problem for the most part. slay them

Quote:
Originally Posted by Ayman Khaled View Post
what if there is no admin on the server.?
...
__________________
You keep bringing B.R down .. He will rise again and kick Enemies asses !
Old.School is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 08-27-2017 , 03:25   Re: [REQ] Detect no kill and punish ( Players which is not killing the enemies)
Reply With Quote #5

I can`t really think of an efficient way of doing this.
__________________
retired chump
DjSoftero is offline
Old.School
Senior Member
Join Date: Sep 2015
Location: France
Old 08-27-2017 , 05:51   Re: [REQ] Detect no kill and punish ( Players which is not killing the enemies)
Reply With Quote #6

I already writed a method it can work for sure
__________________
You keep bringing B.R down .. He will rise again and kick Enemies asses !
Old.School is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 08-27-2017 , 06:04   Re: [REQ] Detect no kill and punish ( Players which is not killing the enemies)
Reply With Quote #7

Quote:
Originally Posted by Old.School View Post
I already writed a method it can work for sure
if you think its that easy, do it yourself
problem is that if a really bad player tries to shoot and doesnt make it, he will be punished for no reason.
__________________
retired chump

Last edited by DjSoftero; 08-27-2017 at 06:11.
DjSoftero is offline
Ayman Khaled
Senior Member
Join Date: Mar 2017
Location: Palestine
Old 08-27-2017 , 06:23   Re: [REQ] Detect no kill and punish ( Players which is not killing the enemies)
Reply With Quote #8

just check if there are still 2 players and they didn't kill each others for 1 min, both will get slayed.
i mean in maps thats round can't end till another team die.
__________________
Ayman Khaled is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 08-27-2017 , 06:32   Re: [REQ] Detect no kill and punish ( Players which is not killing the enemies)
Reply With Quote #9

Quote:
Originally Posted by Ayman Khaled View Post
just check if there are still 2 players and they didn't kill each others for 1 min, both will get slayed.
i mean in maps thats round can't end till another team die.
that would mess up my server, but sure

PHP Code:
#include <amxmodx>
#include <hamsandwich>

#define TIMER 60.0
#define TASKID 996


new two_players[2]

public 
plugin_init() {
    
register_plugin("no team ups""1.0""Softero")
    
    
register_logevent("round_end"2"1=Round_End")  
    
RegisterHam(Ham_Killed"player""fwd_Ham_Killed_post"1)
}


public 
fwd_Ham_Killed_post(id) {
    new 
players[32], count
    get_players
playerscount"achi""")
    if(
count==2) {
        
two_players[0] = players[0]
        
two_players[1] = players[1]
        
set_task(TIMER"task"TASKID)
    }
}
public 
task(id) {
    
user_kill(two_players[0], 1)
    
user_kill(two_players[1], 1)
}

public 
round_end() {
    
remove_task(TASKID1)

__________________
retired chump

Last edited by DjSoftero; 08-27-2017 at 06:50.
DjSoftero is offline
Old.School
Senior Member
Join Date: Sep 2015
Location: France
Old 08-27-2017 , 09:09   Re: [REQ] Detect no kill and punish ( Players which is not killing the enemies)
Reply With Quote #10

Nice idea but the players will be bored like that and my round time is 1.75
__________________
You keep bringing B.R down .. He will rise again and kick Enemies asses !
Old.School 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 07:32.


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