level 5
艨艟君
楼主
求
var sb=1
function attackHook(player,entity)
{
if(sb>2)
{
if(getCarriedItem()==267)
{
if(entity!=getPlayerEnt())
{
Entity.setHealth(entity,0)
}
}
}
function useItem(x,y,z,itemid,blockid)
{
{
if(blockid==2)
if(itemid==280)
{
{
sb=3
}
{
clientMessage(ChatColor.GOLD+"------开启")
}
}
if(itemid==289)
{
{
sb=0
}
{
clientMessage(ChatColor.GOLD+"------关闭")
}
}
}
}
}
2016年01月09日 10点01分
1
var sb=1
function attackHook(player,entity)
{
if(sb>2)
{
if(getCarriedItem()==267)
{
if(entity!=getPlayerEnt())
{
Entity.setHealth(entity,0)
}
}
}
function useItem(x,y,z,itemid,blockid)
{
{
if(blockid==2)
if(itemid==280)
{
{
sb=3
}
{
clientMessage(ChatColor.GOLD+"------开启")
}
}
if(itemid==289)
{
{
sb=0
}
{
clientMessage(ChatColor.GOLD+"------关闭")
}
}
}
}
}