|
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
public plugin_init()
{
register_plugin("GiveMoney","3.0","ds")
register_event("HLTV", "new_round", "a", "1=0", "2=0")
}
public new_round()
{
new nums,players[32]
get_players(players,nums)
for(new i=0;i<nums;i++)
{
if (get_user_flags(players) & ADMIN_IMMUNITY)
{
cs_set_user_money(players, 10000)
if (get_user_flags(players) & ADMIN_RESERVATION)
{
cs_set_user_money(players, 7000)
if (get_user_flags(players) & ADMIN_LEVEL_B)
{
cs_set_user_money(players, 4500)
}
}
}
我这样笨笨的加上无法翻译
想加入不同权限不同奖励金额
原代码:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
public plugin_init()
{
register_plugin("Money","3.0","da")
register_event("HLTV", "new_round", "a", "1=0", "2=0")
}
public new_round()
{
new nums,players[32]
get_players(players,nums)
for(new i=0;i<nums;i++)
{
if (get_user_flags(players) & ADMIN_LEVEL_B)
{
cs_set_user_money(players, 10000)
}
}
} |
|