level 2
jeanleong
楼主
这个插件是专为COUNTER-STRIKE ONLINE 的
旋风刀斧 / 狂战巨斧 / skull9 / skullaxe 的
左键攻击而备;
以求使左键攻击能一次横扫所有攻击范围内的敌人;
正如CSOL 一样;
初来乍到,这方面的代码很陌生,没太多时间研究,伤心。。
/* Script generated by Pawn Studio */
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
//Modules required: kill asist
//- hamsandwich
//- cstrike
//- engine
//- fun
//;#define FMRES_HANDLED2
//;#define FMRES_SUPERCEDE4
#define FMRES_IGNORED1
//;#define FMRES_OVERRIDE3
#define PLUGIN"skull9"
#define AUTHOR"JohnLeong"
#define VERSION"VERSION 1.0"
//**mentioned that this plugin is only for settle the attributes of skull9 or skullaxe with its primary attack
public plugin_init()
{
register_plugin("skull9","VERSION 1.0", "JohnLeong")
register_native("skull9","skullaxe",0)
// Add your own code here
}
public skullaxe(){
new weapon[10]
get_weaponid("skullaxe")==CSW_SCOUT
get_weaponname(CSW_SCOUT,weapon,sizeof weapon-1)
weapon[10] == "skullaxe"
if(equali(weapon[10],"skullaxe"){
new key = BIND("mouse1","+attack") //set left-click mouse button is to primary attack
if(key =="MOUSE1"){ //set condition when left-click mouse is clicked
set_pev_dmg(600) //set damage of skullaxe
set_pev_solid(0) //set any other materials are transparent and not effect the attack range of skull9
set_pev_enemy(true) //set only enemy is targeted only
FMRES_IGNORE //ignore any other effects and factors
return PLUGIN_CONTINUE
}}
return PLUGIN_CONTINUE
}
2014年03月24日 15点03分
1
旋风刀斧 / 狂战巨斧 / skull9 / skullaxe 的
左键攻击而备;
以求使左键攻击能一次横扫所有攻击范围内的敌人;
正如CSOL 一样;
初来乍到,这方面的代码很陌生,没太多时间研究,伤心。。
/* Script generated by Pawn Studio */
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
//Modules required: kill asist
//- hamsandwich
//- cstrike
//- engine
//- fun
//;#define FMRES_HANDLED2
//;#define FMRES_SUPERCEDE4
#define FMRES_IGNORED1
//;#define FMRES_OVERRIDE3
#define PLUGIN"skull9"
#define AUTHOR"JohnLeong"
#define VERSION"VERSION 1.0"
//**mentioned that this plugin is only for settle the attributes of skull9 or skullaxe with its primary attack
public plugin_init()
{
register_plugin("skull9","VERSION 1.0", "JohnLeong")
register_native("skull9","skullaxe",0)
// Add your own code here
}
public skullaxe(){
new weapon[10]
get_weaponid("skullaxe")==CSW_SCOUT
get_weaponname(CSW_SCOUT,weapon,sizeof weapon-1)
weapon[10] == "skullaxe"
if(equali(weapon[10],"skullaxe"){
new key = BIND("mouse1","+attack") //set left-click mouse button is to primary attack
if(key =="MOUSE1"){ //set condition when left-click mouse is clicked
set_pev_dmg(600) //set damage of skullaxe
set_pev_solid(0) //set any other materials are transparent and not effect the attack range of skull9
set_pev_enemy(true) //set only enemy is targeted only
FMRES_IGNORE //ignore any other effects and factors
return PLUGIN_CONTINUE
}}
return PLUGIN_CONTINUE
}