201724
发表于 2010-4-25 09:26:51
收下了~
55116800
发表于 2010-4-25 11:10:24
这个比较有需要
ghost4.12
发表于 2010-4-25 13:59:23
不错支持支持
ghost4.12
发表于 2010-4-25 14:24:35
源码呢怎么骗人啊
lili2009
发表于 2010-4-26 03:57:53
....................................................
lili2009
发表于 2010-4-26 03:58:45
.....................................................................
mysttail
发表于 2010-4-28 01:32:36
顶一个
~~~~~~~
tides
发表于 2010-4-29 10:33:30
#include <amxmodx>
#include <cstrike>
#include <fun>
new bool:buyswitch
public plugin_init() {
register_plugin("buyweapon","1.0","bruto")
register_clcmd("buym4ak","m4ak")
register_event("HLTV","eResetHUD","a","a=0","2=0")
}
public m4ak(id) {
if(!is_user_alive(id) || cs_get_user_team(id)==CS_TEAM_SPECTATOR)
return PLUGIN_CONTINUE
if(!buyswitch){
client_print(id, print_center,"购买时间已过")
return PLUGIN_CONTINUE
}
if(cs_get_user_hasprim(id)){
client_print(id, print_center,"你已经拥有一个主武器")
return PLUGIN_CONTINUE
}
new idmoney = cs_get_user_money2(id)
if(cs_get_user_team(id)==CS_TEAM_CT){
if(idmoney >= 2500){
give_item(id, "weapon_ak47")
cs_set_user_money2(id,idmoney - 2500)
}
else
client_print(id, print_center,"金钱不足")
}
else{
if(idmoney >= 3100){
give_item(id, "weapon_m4a1")
cs_set_user_money2(id,idmoney - 3100)
}
else
client_print(id, print_center,"金钱不足")
}
return PLUGIN_CONTINUE
}
public eResetHUD(){
new Float:buytime=get_cvar_float("mp_buytime")*60
buyswitch=true
set_task(buytime,"buy")
}
public buy(){
buyswitch=false
}这是我自己改过的插件
只需要buym4ak命令自动判断队伍枪只
枪只金钱保持原CS枪只的价钱
买到枪只不提示
跟原来买枪的效果差不多
就是不论在什么地点都可以买,但需要购买时间
jixiwb
发表于 2010-4-29 11:00:47
123123ddffsfdsf
野*人
发表于 2010-5-3 16:34:35
ddddddddddddddd