|
发表于 2010-3-6 11:13:52
|
显示全部楼层
来自 中国–四川–遂宁
你这代码有很多毛病!
重新给你写了一个- #include <amxmodx>
- #include <cstrike>
- #include <hamsandwich>
- #define PLUGIN "no access max money 8000"
- #define VERSION "1.0"
- #define AUTHOR "k1nader"
- #define LOADING "^n^t%s v%s, Copyright (C) 2010 by %s^n"
- public plugin_init()
- {
- register_plugin(PLUGIN, VERSION, AUTHOR);
- server_print(LOADING,PLUGIN,VERSION,AUTHOR);
- RegisterHam(Ham_Spawn, "player", "FwdPlayerSpawn", 1);
- }
- public FwdPlayerSpawn(id)
- {
- if(get_user_flags(id) & ADMIN_RESERVATION) return HAM_IGNORED;
- if(cs_get_user_money(id) > 8000)
- cs_set_user_money(id,8000);
- return HAM_IGNORED;
- }
复制代码 |
|