|
发表于 2007-12-11 16:51:15
|
显示全部楼层
来自 中国–广东–惠州–惠城区
回复: 求一个1.5的插件!很实用.
不要带着有条件的语气来求助,没几个人喜欢的.以下代码没有测试过,可能无效,自己试.
[php]
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#define PLUGIN_NAME "New Plug-In"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "zwfgdlc"
new bool:g_restart_attempt[33]
new i=0
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);
register_event("ResetHUD", "eResetHUD", "be")
register_event("HLTV","roundstart","a","1=0","2=0")
register_clcmd("fullupdate", "cmd_fullupdate")
}
public cmd_fullupdate()
{
return PLUGIN_HANDLED
}
public eResetHUD(id)
{
if (g_restart_attempt[id])
{
g_restart_attempt[id] = false
return PLUGIN_CONTINUE
}
ePlayerSpawn(id)
return PLUGIN_CONTINUE
}
public ePlayerSpawn(id)
{
new mapname[32]
get_mapname(mapname,31)
if(equal(mapname,"de_azect")&&i==1&&get_user_team(id)==1)
{
cs_set_user_money(id,cs_get_user_money(id)+1000)
}
}
public roundstart()
{
i++
}
[/php] |
|