Raised This Month: $ Target: $400
 0% 

Kill at endround


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-01-2008 , 14:25   Kill at endround
Reply With Quote #1

make pls simple code for, rounds end, and all players die
xPaw is offline
Old 08-01-2008, 14:39
AntiBots
This message has been deleted by AntiBots. Reason: LOL
Dr. Jan Itor
Veteran Member
Join Date: Mar 2008
Location: there.
Old 08-01-2008 , 14:39   Re: Kill at endround
Reply With Quote #2

Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN    "kill round end"
#define AUTHOR    "Illyama"
#define VERSION    "1.0"

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
    // Add your own code here
}

public logevent_round_end(id)
{
    if(!is_user_alive(id))
        return;
    
    
    new name[32]
    new numplayers = get_maxplayers()
    
    for (new i=1; i<=numplayers;i++){
        
        {
            get_user_name(i,name,31)
            
            user_kill(i,0)
        }    
    }
}
never used user kill before idk if itll show up or not
__________________

Last edited by Dr. Jan Itor; 08-01-2008 at 15:01.
Dr. Jan Itor is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-01-2008 , 14:41   Re: Kill at endround
Reply With Quote #3

@AntiBots: i can make alias kill "something", and i not been killed
@Dr. Jan Itor: amx_kill unknown command
xPaw is offline
Dr. Jan Itor
Veteran Member
Join Date: Mar 2008
Location: there.
Old 08-01-2008 , 14:42   Re: Kill at endround
Reply With Quote #4

ye ment to be amx_slay lol updated.
__________________
Dr. Jan Itor is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-01-2008 , 14:44   Re: Kill at endround
Reply With Quote #5

and at server we see so many flood, if 10 players alive:

ADMIN server.: slay player.

and 10 times ;)
xPaw is offline
Dr. Jan Itor
Veteran Member
Join Date: Mar 2008
Location: there.
Old 08-01-2008 , 14:52   Re: Kill at endround
Reply With Quote #6

updated to user_kill try that 1
__________________
Dr. Jan Itor is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-01-2008 , 14:59   Re: Kill at endround
Reply With Quote #7

PHP Code:
#include <amxmodx>

public plugin_init()
{
 
register_plugin("End Round kill""1.0""o_O")
 
register_logevent("logevent_round_end"2"1=Round_End"
 
}
public 
logevent_round_end(id)
{
 if(
is_user_connected(id) && is_user_alive(id))
 {
  
user_silentkillid );
 }

trying this now
xPaw is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-01-2008 , 15:43   Re: Kill at endround
Reply With Quote #8

wont work
xPaw is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 08-01-2008 , 15:46   Re: Kill at endround
Reply With Quote #9

second writing now ...

edit : try this

@xPaw - You cant use 'id' in a logevent

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>

#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Grim"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_logevent("EndRound"  ,2,"0=World triggered""1=Round_Draw""1=Round_End")
}

public 
EndRound()
{
    new 
players[32], pnum
    get_players
(playerspnum)
    for( new 
0pnumi++ )
    {
        
user_silentkill(players[i])
    }

__________________
I am out of order!

Last edited by grimvh2; 08-01-2008 at 15:52.
grimvh2 is offline
Dr. Jan Itor
Veteran Member
Join Date: Mar 2008
Location: there.
Old 08-01-2008 , 15:46   Re: Kill at endround
Reply With Quote #10

try mine updated see if it works not sure if it displays msg havent used it b4
__________________
Dr. Jan Itor is offline
Reply


Thread Tools
Display Modes

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 05:34.


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