delop
04-05-2008, 17:57
#include <amxmodx>
#define PLUGIN "Life System"
#define VERSION "1.0"
#define AUTHOR "Lucky"
public plugin_init()
{
register_plugin(PLUGIN,VERSION,AUTHOR)
}
public client_spawn(id){
new deaths = get_user_deaths(id)
if (deaths >= 1){
if(get_user_team(id) == 1){
if(is_user_alive(id)){
console_print(id,"[ZOMBIE] You are out of lives!")
user_kill(id)
client_cmd(id,"say No more lives, wait till the round ends (default: 10 mins)")
PLUGIN_HANDLED;
}
}
}
PLUGIN_HANDLED;
}
It doesn't kill the player.. this is for ts3.0 btw
#define PLUGIN "Life System"
#define VERSION "1.0"
#define AUTHOR "Lucky"
public plugin_init()
{
register_plugin(PLUGIN,VERSION,AUTHOR)
}
public client_spawn(id){
new deaths = get_user_deaths(id)
if (deaths >= 1){
if(get_user_team(id) == 1){
if(is_user_alive(id)){
console_print(id,"[ZOMBIE] You are out of lives!")
user_kill(id)
client_cmd(id,"say No more lives, wait till the round ends (default: 10 mins)")
PLUGIN_HANDLED;
}
}
}
PLUGIN_HANDLED;
}
It doesn't kill the player.. this is for ts3.0 btw