|
本帖最后由 20576526 于 2009-6-28 07:26 编辑
- public client_connect(id)
- {
- powerpur[id] = 1;
- powerpurgravity[id] = 1;
- powerpurspeed[id] = 1;
- powerpurstealth[id] = 1;
- powerpurlaser[id] = 1;
- powerpurflashglasses[id] = 1;
- powerpurmultijump[id] = 1;
- powerpurbunnyhop[id] = 1;
- powerpurhealth[id] = 1;
- powerpurparachute[id] = 1;
- }
- public client_disconnect(id)
- {
- powerpur[id] = 1;
- powerpurgravity[id] = 1;
- powerpurspeed[id] = 1;
- powerpurstealth[id] = 1;
- powerpurlaser[id] = 1;
- powerpurflashglasses[id] = 1;
- powerpurmultijump[id] = 1;
- powerpurbunnyhop[id] = 1;
- powerpurflashglasses[id] = 1;
- powerpurparachute[id] = 1;
- }
复制代码- cs_set_user_money(id, (money - 5000), 1);
- client_cmd(id,"spk purchasemod/buy");
- client_print(id, print_chat, "【系统提示】: 您购买速度需要$5000元!");
- new Float:speed = get_user_maxspeed(id) + 30.0;
- set_user_maxspeed(id, speed);
- powerpurspeed[id] = 0;
- powerpur[id] = 0;
- }
复制代码- public speedb(id)
- {
- if(powerpurspeed[id] == 0)
- {
- new Float:speed = get_user_maxspeed(id) + 30.0;
- set_user_maxspeed(id, speed);
- }
- return PLUGIN_HANDLED;
- }
复制代码- if(powerpurspeed[id] == 0)
- {
- new Float:speed = get_user_maxspeed(id) - 30.0;
- set_user_maxspeed(id,speed);
- client_cmd(id,"spk purchasemod/drain");
- client_print(id, print_chat, "【系统提示】: 速度恢复正常!");
- powerpurspeed[id] = 1;
- }
复制代码 我把所有加速的代码发上去了,问题:购买加速后没有加速,然后打死个人速度飞快,请问这个是怎么回事情呢?是不是+30的代码那里不合理造成的呀?还有换图后也是这个问题, |
|