AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [REQ] Detect no kill and punish ( Players which is not killing the enemies) (https://forums.alliedmods.net/showthread.php?t=300702)

Old.School 08-26-2017 13:51

[REQ] Detect no kill and punish ( Players which is not killing the enemies)
 
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

DjSoftero 08-26-2017 15:02

Re: [REQ] Detect no kill and punish ( Players which is not killing the enemies)
 
that is your problem for the most part. slay them

Ayman Khaled 08-26-2017 15:14

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

Originally Posted by DjSoftero (Post 2544512)
that is your problem for the most part. slay them

what if there is no admin on the server.?

Old.School 08-26-2017 15:45

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

Originally Posted by DjSoftero (Post 2544512)
that is your problem for the most part. slay them


Quote:

Originally Posted by Ayman Khaled (Post 2544515)
what if there is no admin on the server.?

...

DjSoftero 08-27-2017 03:25

Re: [REQ] Detect no kill and punish ( Players which is not killing the enemies)
 
I can`t really think of an efficient way of doing this.

Old.School 08-27-2017 05:51

Re: [REQ] Detect no kill and punish ( Players which is not killing the enemies)
 
I already writed a method it can work for sure

DjSoftero 08-27-2017 06:04

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

Originally Posted by Old.School (Post 2544626)
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.

Ayman Khaled 08-27-2017 06:23

Re: [REQ] Detect no kill and punish ( Players which is not killing the enemies)
 
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.

DjSoftero 08-27-2017 06:32

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

Originally Posted by Ayman Khaled (Post 2544634)
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)



Old.School 08-27-2017 09:09

Re: [REQ] Detect no kill and punish ( Players which is not killing the enemies)
 
Nice idea but the players will be bored like that and my round time is 1.75


All times are GMT -4. The time now is 14:19.

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