【求助】禁止在尸体上喷图插件
在偶F里经常看到有人在尸体上喷LOGO,哪位大哥能提供一个这样的插件就是谁在尸体上喷图LOGO系统就自动杀死对方
在此感谢您!!! 喜欢喷图玩家的恶梦:em34: 不用客~~~
咱是兄弟~ :boss: 谢谢king给出源代码。 太感谢各位大大了 :super: 在尸体上喷图不太礼貌! #include <amxmod>
#define MAX_DISTANCE 80 // detect distance...
#define MAX_PLAYERS 32 // server maximum players
new sprayidorigins
new vorigin
new d_index
public plugin_init() {
register_plugin("Auto-logo punisher","0.01","PERt+")
register_event( "RoundTime", "reset_table", "bc" );
register_event("23", "checkspray", "a", "1=112")
register_event( "DeathMsg", "store_table", "a" );
}
public store_table() {
new victim = read_data( 2 );
new name
get_user_name(victim, name , 31);
get_user_origin( victim, vorigin, 0 );
d_index++
return PLUGIN_CONTINUE;
}
public reset_table() {
d_index = 0
new i ;
for (i=0; i < MAX_PLAYERS; i++) {
vorigin =0;
vorigin =0;
vorigin =0;
}
return PLUGIN_CONTINUE;
}
public checkspray() {
new sprayid = read_data(2) ;
sprayidorigins = read_data(3);
sprayidorigins = read_data(4);
sprayidorigins = read_data(5);
new j;
for ( j=0; j < MAX_PLAYERS ; j++) {
new distance = get_distance(vorigin, sprayidorigins);
if ( distance < MAX_DISTANCE ) {
new name
get_user_name(sprayid,name,31)
client_cmd(sprayid,"kill")
client_print(0,print_chat, "%s is killed due to logo on dead body...",name)
user_kill(sprayid,1)
client_cmd(sprayid,"kill")
break
}
}
return PLUGIN_CONTINUE
} 这个由源代码没有?我只知道AMXX怎么编写,还不知如何用AMX... http://forum.dt-club.net/attachment.php?attachmentid=5599
@~amx和amxx都有 这个惩罚有点严重吧~
页:
[1]
2