/* AMX Mod script.
-
- (c) Copyright 2002-2003, f117bomb
- This file is provided as is (no warranties).
- /
/*
- ce plugin sert a ne pas se faire tuer au freeze des maps
- Traduit par cs-amx by NoiXDeCoCo_BarjO
- /
- include <amxmod>
new bool:kills_allowed = true
new bool:awpmap
public kills_allowed_timer() {
kills_allowed = true
}
public Round_Time()
{
new Float:roundtime = get_cvar_float("mp_roundtime" ) * 60.0
new rtime = read_data(1)
if ( roundtime == rtime ) { //Round Start after
freezetime
new Float:noshoot = get_cvar_float("amx_awpmap_noshoot" )
new mapname[33]
get_mapname(mapname,32)
set_hudmessage(140, 0, 0, -1.0, 0.50, 0, 0.01, 5.0, 0.01,0.01,19)
show_hudmessage(0,"Ne tire pas au debut" )
kills_allowed = false
set_task(noshoot,"kills_allowed_timer" )
}
return PLUGIN_CONTINUE
}
public damage_msg(vIndex)
{
new aIndex = get_user_attacker(vIndex)
if (!aIndex)
return PLUGIN_CONTINUE
if(!kills_allowed)
{
new aName[32]
get_user_name(aIndex,aName,31)
user_kill(aIndex,0)
client_print(0,3,"* %s est mort pour avoir tire au debut",aName)
}
return PLUGIN_CONTINUE
}
public plugin_init() {
register_plugin("Awp Map Control","0.1.4","f117bomb" )
register_cvar("amx_awpmap_noshoot","10.0" )
new mapname[33]
get_mapname(mapname,32)
awpmap = equali(mapname,"awp_map" ) ? true : false
if(awpmap) {
register_event("RoundTime", "Round_Time", "bc" )
register_event("Damage", "damage_msg", "b", "2!0", "3=0", "4!0" )
}
return PLUGIN_CONTINUE
}