vstatus反恐精英CS1.5初级服务器-死亡信息和成绩查看AMXX插件

在CS1.5初级服务器的控制台中显示玩家死亡、胜利队伍信息。 提供一个vscore服务器控制台命令,显示玩家成绩等相关信息。 版本:2.5 把下载文件的文件名改成vstatus.sma,编译后就可以使用了。

//***************************************************************************************************************
//Filename:vstatus.sma
//Email:blacksword6901@http://www.mianfeiwendang.com
//
//Feature:
//This Plugin will print message on server console,include:(who kill who,which team win,the user connect or disconnect to server).
//Provide a server console command "vscore",which will provide users score,include:(user,Team,Alive or Dead,Frags,Deaths)
//The Frags is the Counts of Kill.

//-------------------------------------------------------------------------------------------------------------------
#include <amxmodx>
#include <amxmisc.inc>

new PLUGIN[]="VStatus"
new VERSION[]="2.5"
new AUTHOR[]="BlackSword"

//-------------------------------------------------------------------------------------------------------------------
public plugin_init()
{
//It registers your function in AMX Mod X, and assigns some basic information.
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("DeathMsg", "eDeath", "a")
register_event("SendAudio", "eCTWin", "a", "2&%!MRAD_ctwin")
register_event("SendAudio", "eTWin", "a", "2&%!MRAD_terwin")
//Switch "//" in the next three line if you want to allow client to use "vscore" command (for bore and the layout isn't good in client console)
//register_srvcmd("vscore", "cmd_vscore")
//register_concmd("vscore", "cmd_vscore",-1,"Show User Score by all")
register_concmd("vscore", "admcmd_vscore", ADMIN_KICK, "Show User Score by admin")
}

//-------------------------------------------------------------------------------------------------------------------
public eDeath()
{
new KillerIdx = read_data(1) //get the first message parameter
new VictimIdx = read_data(2) //get the second message parameter
new Headshot = read_data(3)
new WeaponName[20]
read_data(4, WeaponName, 10) //get the weapon name
//
new KillerName[32]
new KillerTeam[20]
new VictimName[32]
new VictimTeam[20]
get_user_name(KillerIdx,KillerName,30)
get_user_team(KillerIdx,KillerTeam,18)
get_user_name(VictimIdx,VictimName,30)
get_user_team(VictimIdx,VictimTeam,18)
server_print("[%s(%s)] kill [%s(%s)] with [%s],Headshot=%d.",KillerName,KillerTeam,VictimName,VictimTeam,WeaponName,Headshot)

}

//-------------------------------------------------------------------------------------------------------------------
public eCTWin()
{
server_print(".....Counter Striker Win.....")
}
public eTWin()
{
server_print(".....Terrorist Win.....")
}

//-------------------------------------------------------------------------------------------------------------------
public client_connect(Idx)
{
new UserName[32]
new UserIP[50]
new UserTime[10]
get_user_name(Idx,UserName,30)
get_user_ip(Idx,UserIP,48)
get_time("%H:%M:%S",UserTime,8)
server_print("user=%s


IP=%s Time=%s Connecting.....",UserName,UserIP,UserTime)
}

public client_disconnect(Idx)
{
new UserName[32]
new UserIP[50]
n

Word文档免费下载Word文档免费下载:vstatus反恐精英CS1.5初级服务器-死亡信息和成绩查看AMXX插件 (共3页,当前第1页)

vstatus反恐精英CS1.5初级服务器 死亡信息和成绩查看AMXX插件相关文档

最新文档

返回顶部