Jump to content

XaviaZemo

Members
  • Posts

    1
  • Joined

  • Last visited

XaviaZemo's Achievements

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody.

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody. (2/54)

0

Reputation

  1. ฟังก์ชั่น foodshop(food_name,Price) player_money = getPlayerMoney(source) if ( player_money >= Price) ดังนั้น ถ้า getElementData(source,"Myslots") + 1 <= getElementData(source,"MAX_Slots") จากนั้น setElementData(source,food_name,getElementData (source,food_name) + 1) takePlayerMoney(source, Price) outputChatBox("#FF0000[TUNING] #FFFFFF ไม่ต้องซื้อ "..food_name.." และชำระเงิน "..Price.." บาท", source, 255 , 255, 255 , true) else outputChatBox("#FF0000[TUNING] #FFFFFFกระเป๋าเต็ม !!", source, 255, 255, 255 , true) end else outputChatBox("#FF0000[TUNING] #FFFFFFเงินของคุณไม่ พอ", แหล่งที่มา, 255, 255, 255 , true) end end addEvent("foodshop", true) addEventHandler("foodshop", getRootElement(), foodshop) function foodshop(food_name,Price) player_money = getPlayerMoney(source) if ( player_money >= Price) then if getElementData(source,"Myslots") + 1 <= getElementData(source,"MAX_Slots") then setElementData(source,food_name,getElementData(source,food_name) + 1) takePlayerMoney(source, Price) outputChatBox("#FF0000[TUNING] #FFFFFFคุณได้ซื้อ "..food_name.." และชำระเงิน "..Price.." บาท", source, 255, 255, 255 , true) else outputChatBox("#FF0000[TUNING] #FFFFFFกระเป๋าเต็ม !!", source, 255, 255, 255 , true) end else outputChatBox("#FF0000[TUNING] #FFFFFFเงินของคุณไม่พอ", source, 255, 255, 255 , true) end end addEvent("foodshop", true) addEventHandler("foodshop", getRootElement(), foodshop)
×
×
  • Create New...