Нашол на amxmodx.org скрипт ( тупой смысла в нем нет вообще ,
но все же пускай он будет как пример : #include <amxmodx>
#include <amxmisc>
#include <cstrike>
#define PLUGIN ""
#define VERSION ""
#define AUTHOR ""
public plugin_init()
{
register_plugin("", "", "")
//this message informs everyone of a death, so we use
// flag "a" - global event
register_cvar("DeathTeam","1",FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_UNLOGGED|FCVAR_SPONLY)
register_event("DeathMsg", "hook_death", "a")
}
public hook_death()
{
new DTcvar[1]
get_cvar_string("DeathTeam",DTcvar,1)
if(equali(DTcvar,"1"))
{
new Killer = read_data(1) //get the first message parameter
new Victim = read_data(2) //get the second message parameter
new headshot = read_data(3) //was this a headshot?
new weapon[32]
read_data(4, weapon, 31) //get the weapon name
new head[1]
float_to_str(headshot,head,1)
if(equal(head,"1"))
{
cs_set_user_money ( Killer , cs_get_user_money(Killer)+1000, 1 )
}
cs_set_user_team(Victim,CS_TEAM_T,CS_DONTCHANGE)
cs_user_spawn(Victim)
}
}
----------------------------------------------
Я хочу попросить чтобы вы вставили сюда одну вещь :
Чтобы последнего СT не перекидывало за T .
Как определить последнего CT я знаю
new players[32], i = 1
get_players(players, i, "a")
Ну а как это сделать чтобы работало не знаю , Помогите пожалуйста :]