【分享】slaylogo.amxx喷尸惩罚
slaylogo.amxx喷尸惩罚自杀插件#include <amxmod>
#define MAX_DISTANCE 75 // 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 喷尸被系统处死! ",name)
user_kill(sprayid,1)
client_cmd(sprayid,"kill")
break
}
}
return PLUGIN_CONTINUE
}
回复: 【分享】slaylogo.amxx喷尸惩罚
这里的压缩包上传要验证才能看到吗?我怎么还是没有看到?回复: 【分享】slaylogo.amxx喷尸惩罚
插件呢!!! :spiderman回复: 【分享】slaylogo.amxx喷尸惩罚
晕我还说把下下来看看呢
怎么没有插件
回复: 【分享】slaylogo.amxx喷尸惩罚
晕倒,还是显示不出来上传的文件,把代码发上来了,不好意思回复: 【分享】slaylogo.amxx喷尸惩罚
喷尸就处死。。太狠了吧,能否改成slap 50 hp阿,这样觉得好些回复: 【分享】slaylogo.amxx喷尸惩罚
我在CS1.5的AMX0.9.5上用的 :d::rolleyes::spiderman回复: 【分享】slaylogo.amxx喷尸惩罚
谢谢楼主。贴上amxx 1.0 可用成品回复: 【分享】slaylogo.amxx喷尸惩罚
谢了X86:gogo:回复: 【分享】slaylogo.amxx喷尸惩罚
正喷到尸体上就惩罚吗?喷到尸体旁边呢?
页:
[1]
2