Raised This Month: $ Target: $400
 0% 

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


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 09:16.


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