我先來評價一下
1.甚麼是.txt???!!!是sma吧
2.
複製程式
if(!is_user_alive(id)) {
client_print(id,print_chat,"你死還買來幹嗎= =?^n")
}
if(money < elitecost) {
client_print(id,print_chat,"不夠金錢哦.!^n")
}
else {
cs_set_user_money(id,money-elitecost)
give_item(id, "weapon_elite")
}
你那個不夠金錢跟死了不能買的項目跟本沒用,只是個廢的句子
應該是這樣
複製程式
if(!is_user_alive(id)) {
client_print(id,print_chat,"你死還買來幹嗎= =?^n")
}
return;
if(money < elitecost) {
client_print(id,print_chat,"不夠金錢哦.!^n")
}
return;
cs_set_user_money(id,money-elitecost)
give_item(id, "weapon_elite")
}