关于AMXX1.0的不解
有没有AMXX1.0的显示每一枪打的HP插件。在AMXX1.0上用0.16版的有时候可以用。但有时候用不了,可不可以做个FOR1.0的来呢?今天发现的新问题,如图 另外,下面哪句是说登入或离开服务器信息的:
#include <amxmod>
public client_connect(id){
new userip
new ips
new name
new g_amx_netbarip
get_user_ip(id,userip,16,1)
copy(ips,7,userip)
get_cvar_string("amx_netbarip",g_amx_netbarip,7)
get_user_name(id,name,32)
if (equali(ips,g_amx_netbarip)){
set_user_flags(id,read_flags("b"))
client_print(0,print_chat,"*LanPlayer: %s (%s)",name,userip)
new maxplayers = get_maxplayers()
new players = get_playersnum( 1 )
new limit = maxplayers - 1
if( players > limit ){
kickhping()
}
}else{
client_print(0,print_chat,"*NetPlayer: %s (%s)trying to connect...",name,userip)
}
//client_print(0,print_chat,"*test: %s |%s",ips,g_amx_netbarip)
return PLUGIN_CONTINUE
}
kickhping() {
new who = 0, ping, loss, worst = -1
new maxplayers = get_maxplayers()
for(new i = 1; i <= maxplayers; ++i) {
if ( !is_user_connected(i) && !is_user_connecting(i) )
continue // not used slot
if (get_user_flags(i)&ADMIN_RESERVATION)
continue // has reservation, skip him
get_user_ping(i,ping,loss) // get ping
if ( ping > worst ) {
worst = ping
who = i
}
}
if(who)
if ( is_user_bot(who) )
server_cmd("kick #%d", get_user_userid(who))
else{
client_cmd(who,"echo ^"Dropped due to high ping to free slot for an admin^";disconnect")
client_print(0,print_chat,"*Dropped due to high ping to free slot for an admin!")
}
return who
}
public plugin_init() {
register_plugin("NetBar","0.2","YanOnline")
register_cvar("amx_netbarip","192.168")
return PLUGIN_CONTINUE
} Post by alban
另外,下面哪句是说登入或离开服务器信息的:
#include <amxmod>
public client_connect(id){
new userip
new ips
new name
new g_amx_netbarip
get_user_ip(id,userip,16,1)
copy(ips,7,userip)
get_cvar_string("amx_netbarip",g_amx_netbarip,7)
get_user_name(id,name,32)
if (equali(ips,g_amx_netbarip)){
set_user_flags(id,read_flags("b"))
client_print(0,print_chat,"*LanPlayer: %s (%s)",name,userip)
new maxplayers = get_maxplayers()
new players = get_playersnum( 1 )
new limit = maxplayers - 1
if( players > limit ){
kickhping()
}
}else{
client_print(0,print_chat,"*NetPlayer: %s (%s)trying to connect...",name,userip)
}
//client_print(0,print_chat,"*test: %s |%s",ips,g_amx_netbarip)
return PLUGIN_CONTINUE
}
kickhping() {
new who = 0, ping, loss, worst = -1
new maxplayers = get_maxplayers()
for(new i = 1; i <= maxplayers; ++i) {
if ( !is_user_connected(i) && !is_user_connecting(i) )
continue // not used slot
if (get_user_flags(i)&ADMIN_RESERVATION)
continue // has reservation, skip him
get_user_ping(i,ping,loss) // get ping
if ( ping > worst ) {
worst = ping
who = i
}
}
if(who)
if ( is_user_bot(who) )
server_cmd("kick #%d", get_user_userid(who))
else{
client_cmd(who,"echo ^"Dropped due to high ping to free slot for an admin^";disconnect")
client_print(0,print_chat,"*Dropped due to high ping to free slot for an admin!")
}
return who
}
public plugin_init() {
register_plugin("NetBar","0.2","YanOnline")
register_cvar("amx_netbarip","192.168")
return PLUGIN_CONTINUE
}
这个插件是amx的
跟amx mod x兼容与否未知 我就是用在AMX0.16的啊。只是每次有人登入的时候提示跟我amx.cfg里的不一样。amx.cfg里是这样的“"%name% 登入了服务器!\n(他的排名是 %rankpos%、"%name% 离开了服务器"”有人进的时候却是“"%name% 来了 已经加人了战斗中了!”
请问要如何改才会和实际一样 :sweat: :dribble:
bullet_damage.amxx ; 显示每一枪打的HP
有个服务器在用住.没发现有什么问题. 终于注册到论坛帐号了……
Post by 永远一个人
:dribble:
bullet_damage.amxx ; 显示每一枪打的HP
有个服务器在用住.没发现有什么问题.
怎么下不了呢 内网优先插件才可以把进出服务器信息改为和 AMXX.CFG里相同 amx.16里用“内网优先”后与“显示每一枪打的HP”冲突,后者没有效果了,该如何解决啊 谁知道如何实现如图 怎样才可以让打字效果以最快的速度显示出来。我做的太慢了,看了都累死了
set_hudmessage(g_Values, g_Values, g_Values,
X_POS, Y_POS, 2, 0.5, HOLD_TIME , 2.1, 1.0, 1)
页:
[1]
2