搜索
查看: 1867|回复: 6

如何让指定玩家不能拣东西?

[复制链接]
发表于 2006-12-9 01:02:14 | 显示全部楼层 |阅读模式 来自 上海浦东新区
RT Q3:spiderman :spiderman
发表于 2006-12-9 19:00:03 | 显示全部楼层 来自 广东深圳

回复: 如何让指定玩家不能拣东西?

不知你指捡起那类东西

如果是标准武器或物品类,可以使用 "WeapPickup" 消息,

获得捡起的武器ID,然后清除它或强制丢弃它,即可达到目的。
回复

使用道具 举报

发表于 2006-12-9 19:20:45 | 显示全部楼层 来自 陕西西安

回复: 如何让指定玩家不能拣东西?

使用 register_touch 函数
例如:如果是标准武器类,使用
register_touch("weaponbox", "player", "touch_weapon")

public touch_weapon(wpnEnt, player)
{
//在这里判断,如果不想玩家捡此武器,就 return PLUGIN_HANDLED
}
回复

使用道具 举报

 楼主| 发表于 2006-12-9 20:23:24 | 显示全部楼层 来自 上海浦东新区

回复: 如何让指定玩家不能拣东西?

3Q:spiderman :spiderman :spiderman :spiderman :spiderman :spiderman :spiderman :spiderman
回复

使用道具 举报

 楼主| 发表于 2006-12-9 21:01:33 | 显示全部楼层 来自 上海浦东新区

回复: 如何让指定玩家不能拣东西?

register_touch("weaponobx", "player", "touch_weapon")
里面前2个参数代表什么呢?
回复

使用道具 举报

发表于 2006-12-9 21:33:06 | 显示全部楼层 来自 北京海淀

回复: 如何让指定玩家不能拣东西?

register_touch ( Toucher[], Touched[], function[] )
回复

使用道具 举报

发表于 2006-12-10 00:20:46 | 显示全部楼层 来自 陕西西安

回复: 如何让指定玩家不能拣东西?

Post by PEnTiuMsK
register_touch("weaponobx", "player", "touch_weapon")
里面前2个参数代表什么呢?

weaponobx 是标准武器的类名,player 是玩家的类名
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表