AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Kill at endround (https://forums.alliedmods.net/showthread.php?t=75229)

xPaw 08-01-2008 14:25

Kill at endround
 
make pls simple code for, rounds end, and all players die

Dr. Jan Itor 08-01-2008 14:39

Re: Kill at endround
 
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

xPaw 08-01-2008 14:41

Re: Kill at endround
 
@AntiBots: i can make alias kill "something", and i not been killed
@Dr. Jan Itor: amx_kill unknown command

Dr. Jan Itor 08-01-2008 14:42

Re: Kill at endround
 
ye ment to be amx_slay lol updated.

xPaw 08-01-2008 14:44

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

ADMIN server.: slay player.

and 10 times ;)

Dr. Jan Itor 08-01-2008 14:52

Re: Kill at endround
 
updated to user_kill try that 1

xPaw 08-01-2008 14:59

Re: Kill at endround
 
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 08-01-2008 15:43

Re: Kill at endround
 
wont work :(

grimvh2 08-01-2008 15:46

Re: Kill at endround
 
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])
    }



Dr. Jan Itor 08-01-2008 15:46

Re: Kill at endround
 
try mine updated see if it works not sure if it displays msg havent used it b4


All times are GMT -4. The time now is 05:34.

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