|
发表于 2008-3-8 22:44:39
|
显示全部楼层
来自 中国–福建–龙岩
回复: OP密码为何一直泄漏
有users.ini的权限就可以获得你的rcon密码
把lzh换了吧,下面就就是lzh的防炸内容,只是没有惩罚部分
#include <amxmod>
new lastWeap[33]
new DQWeap[33]
public plugin_init()
{
register_plugin("xxx","xxx","xxx")
register_clcmd("lastinv","MyLast")
register_event("CurWeapon", "switchweapon","be","1=1")
}
public client_connect(id)
{
lastWeap[id]=CSW_KNIFE
}
public MyLast(id)
{
new WName[32]
get_weaponname(lastWeap[id],WName,31)
engclient_cmd(id,WName)
return PLUGIN_HANDLED
}
public switchweapon(id)
{
new tmp=read_data(2)
if(DQWeap[id]!=tmp)
{
lastWeap[id]=DQWeap[id]
DQWeap[id]=tmp
}
return PLUGIN_CONTINUE
} |
|