求一个1.5的插件!很实用.
内容是只在aztec这个地图,土匪第一局加1000块钱,只加一局,其他的图不变.因为土匪这个图开始没优势,基本是给警察杀,环境是1.5+1.76D,望高手编一个,谢谢:dribble:插件来我马上教大家怎么防炸,1.5的
回复: 求一个1.5的插件!很实用.
不要带着有条件的语气来求助,没几个人喜欢的.以下代码没有测试过,可能无效,自己试.#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
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)
{
g_restart_attempt = false
return PLUGIN_CONTINUE
}
ePlayerSpawn(id)
return PLUGIN_CONTINUE
}
public ePlayerSpawn(id)
{
new mapname
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++
}
回复: 求一个1.5的插件!很实用.
楼上的没有用啊,见附件,插件是我自己改名的.谢谢楼上的教诲.贴我已经发到服务器区了.
回复: 求一个1.5的插件!很实用.
忘记了CS1.5没有HLTV这个事件的,再试下#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
new i=1
new curmap
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);
register_event("ResetHUD", "eResetHUD", "be")
register_event("RoundTime","roundstart","a")
register_clcmd("fullupdate", "cmd_fullupdate")
get_mapname(curmap,31)
if(!equal(curmap,"de_aztec"))
pause("ad")
}
public cmd_fullupdate()
{
return PLUGIN_HANDLED
}
public eResetHUD(id)
{
if (g_restart_attempt)
{
g_restart_attempt = false
return PLUGIN_CONTINUE
}
ePlayerSpawn(id)
return PLUGIN_CONTINUE
}
public ePlayerSpawn(id)
{
if(equal(curmap,"de_azect")&&i==1&&get_user_team(id)==1)
{
cs_set_user_money(id,cs_get_user_money(id)+1000)
}
}
public roundstart()
{
new roundtime=read_data(1)
if(roundtime==get_cvar_num("mp_roundtime")*60)
{
i++
}
}
回复: 求一个1.5的插件!很实用.
谢谢zwfgdlc.刚刚试了你给的新代码,编译后好象没点反应
希望继续修改
回复: 求一个1.5的插件!很实用.
再试下有没问题..............回复: 求一个1.5的插件!很实用.
哈哈!有用了,明天装服务器试效果去.谢了回复: 求一个1.5的插件!很实用.
再次求助zwfgdlc,能否做个土匪每局加1000.只加一次土匪的还是没什么优势,做好把源码发出来 感谢了回复: 求一个1.5的插件!很实用.
#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
new curmap
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);
register_event("ResetHUD", "eResetHUD", "be")
register_clcmd("fullupdate", "cmd_fullupdate")
get_mapname(curmap,31)
if(!equal(curmap,"de_aztec"))
pause("ad")
}
public cmd_fullupdate()
{
return PLUGIN_HANDLED
}
public eResetHUD(id)
{
if (g_restart_attempt)
{
g_restart_attempt = false
return PLUGIN_CONTINUE
}
ePlayerSpawn(id)
return PLUGIN_CONTINUE
}
public ePlayerSpawn(id)
{
set_task(0.2,"addmoney",id)
}
public addmoney(id)
{
if(get_user_team(id)==1)
cs_set_user_money(id,cs_get_user_money(id)+1000)
remove_task(id)
}
页:
[1]