) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } return PLUGIN_HANDLED } public cmd_getap(id, level, cid) { if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new Argument[32] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY) if (Target) { new iAp = get_user_armor(Target) client_print(id, print_console, "That user's ap is %d", iAp) return PLUGIN_HANDLED } return PLUGIN_HANDLED } public cmd_removeap(id, level, cid) { if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new Argument[32] read_argv(1, Argument, 31) new Target = cmd_target(id, Argument, CMDTARGET_ALLOW_SELF | CMDTARGET_OBEY_IMMUNITY) if (Target) { new adminname[32], name[32] get_user_name(id, adminname, 31) get_user_name(id, name, 31) set_user_armor(Target, 0) switch(get_cvar_num("amx_show_activity")) { case 1: { client_print(0, print_chat, "ADMIN: Removed all %s's ap", name) return PLUGIN_HANDLED } case 2: { client_print(0, print_chat, "ADMIN %s: Removed all %s's ap", adminname, name) return PLUGIN_HANDLED } } return PLUGIN_HANDLED } return PLUGIN_HANDLED } new light, s2smoke, s2white slay_player(id,victim,type) { new origin[3], srco[3], name[32], name2[32] get_user_name(victim,name,31) get_user_name(id,name2,31) get_user_origin(victim,origin) origin[2] -= 26 srco[0]=origin[0]+150 srco[1]=origin[1]+150 srco[2]=origin[2]+400 switch(type){ case 1:{ lightning(srco,origin) emit_sound(victim,CHAN_ITEM, "ambience/thunder_clap.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) } case 2:{ blood(origin) emit_sound(victim,CHAN_ITEM, "weapons/headshot2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) } case 3: explode(origin) } user_kill(victim,1) console_print(id, "Admin %s a folosit comanda amx_slay2 pe %s", name2, name) log_amx("Admin %s a folosit comanda amx_slay2 pe %s", name2, name) } public cmd_slay(id,level,cid) { if (!cmd_access(id,level,cid,2)) return PLUGIN_HANDLED new arg[32], arg2[3], type read_argv(1,arg,31) read_argv(2,arg2,2) type = str_to_num(arg2) if (arg[0]=='@'){ new players[32], inum , name[32] get_players(players,inum,"ae",arg[1]) if (inum==0){ console_print(id, "Acest player nu exista") return PLUGIN_HANDLED } for(new a=0;a<inum;++a){ if (get_user_flags(players[a])&ADMIN_IMMUNITY){ get_user_name(players[a],name,31) console_print(id, "%s are imunitate",name) continue } slay_player(id,players[a],type) } } else { new player = cmd_target(id,arg,5) if (!player) return PLUGIN_HANDLED slay_player(id,player,type) } return PLUGIN_HANDLED } explode(vec1[3]) { // blast circles message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) write_byte( 21 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2] + 16) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2] + 1936) write_short( s2white ) write_byte( 0 ) // startframe write_byte( 0 ) // framerate write_byte( 2 ) // life write_byte( 16 ) // width write_byte( 0 ) // noise write_byte( 188 ) // r write_byte( 220 ) // g write_byte( 255 ) // b write_byte( 255 ) //brightness write_byte( 0 ) // speed message_end() //Explosion2 message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte( 12 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_byte( 188 ) // byte (scale in 0.1's) write_byte( 10 ) // byte (framerate) message_end() //s2smoke message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) write_byte( 5 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_short( s2smoke ) write_byte( 2 ) write_byte( 10 ) message_end() } blood(vec1[3]) { //LAVASPLASH message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte( 10 ) w