|
public choujiang(id)
{
if (cs_get_user_team(id) != CS_TEAM_T)
{
client_print(id,print_center,"只有T才能抽奖。")
return
}
if (g_chouguole[id])
{
client_print(id,print_center,"你该回合已经抽过一次奖了。")
return
}
//这里调用越狱native函数获取越狱币(我没插件不知道怎么调用)
coin = ???
if (coin<1)
{
client_print(id,print_center,"越狱币不足1。")
return
}
g_chouguole[id]=true
new num
num=random_num(0,120)
if (num<60)
{
client_print(id,print_center,"囧~你什么都没抽到!")
}
else if (num>60 && num<70)
{
give_item(id, "weapon_usp");
client_print(id,print_center,"恭喜你抽到一把usp,赶快和身边的囚犯分享吧!")
}
else if (....)
{
}
return
}
|
|