看更多 我要大聲說昨天22:04 Wannablesu晚上好

CS1.6迷

個人相關資訊

--GAME.lua
players = {}
for i = 1, 24 do
players[i] = nil
end
ss=5

function Game.Rule:OnPlayerSpawn (player)
player.health=10
end
function Game.Rule:OnPlayerAttack (victim, attacker, damage, weapontype, hitbox)
return 5
end
function Game.Rule:OnPlayerSignal (player, signal)
if signal>=0 and signal<=100 then
player.model=signal
end
end
function Game.Rule:OnUpdate (time)
--print("ss:",ss)
ss=ss-1
if ss<=0 then
for i,p in pairs(players) do
if p ~= nil and i ~= nil then
if p.health<p.maxhealth and p.model~=22 and p.model~=39 then
p.health=p.health+1--回血
print("[",i,"]回血")
end
if p.position.z<20 then
p.position=({x=0,y=0,z=30})
print("[",i,"]傳送")
end
end
end
ss=5
end
end
function Game.Rule:OnPlayerConnect(player)
players[player.index] = player
end
function Game.Rule:OnPlayerDisconnect(player)
players[player.index] = nil
end

--UI.lua
function UI.Event:OnChat(msg)
print("tonumber(msg):",tonumber(msg))
local msg1=tonumber(msg)
if tonumber(msg)==nil then
elseif tonumber(msg)>=0 and tonumber(msg)<=100 then
UI.Signal(msg1)
end
end

創作

無資料

訂閱聯播

好友創作

標題 作者 發表時間

最近收藏

追蹤加為好友打招呼寫信送禮勇者造型相本給屋主紅心黑名單訪客留言小屋使用教學私訊

勇者資訊
  • 帳號:ruby2009g
  • 暱稱:ruby2009g
  • 稱號:只知kuso的小平民
  • LV35 / 人類 / 初心者
  • 巴幣:115201
  • GP:255
  • 被贊助:0
  • 勇者評價:0

HP:

 

MP:

 

EXP:

 

  • STR:527
  • DEX:527
  • INT:527
  • LUK:527
  • VIT:527
  • AGI:527
  • MND:527
訪客留言
參加的公會社團
小屋統計
  • 今日人氣:1
  • 總人氣:1305
  • 創作:0篇
  • 我的收藏:12篇
  • 好友圈:2
  • 追蹤者:3
個人紀錄
  • 更新時間:00-00 00 點
  • 上站次數:214
  • 手機認證:已完成
  • 註冊日期:2014-07-03
  • 上站日期:2024-04-25
  • 站規測驗:未通過
  • 哈啦篇數:90
  • 動漫電玩通:0
今日訪客
近期追蹤者
最近套用的佈景

face基於日前微軟官方表示 Internet Explorer 不再支援新的網路標準,可能無法使用新的應用程式來呈現網站內容,在瀏覽器支援度及網站安全性的雙重考量下,為了讓巴友們有更好的使用體驗,巴哈姆特即將於 2019年9月2日 停止支援 Internet Explorer 瀏覽器的頁面呈現和功能。
屆時建議您使用下述瀏覽器來瀏覽巴哈姆特:
。Google Chrome(推薦)
。Mozilla Firefox
。Microsoft Edge(Windows10以上的作業系統版本才可使用)

face我們了解您不想看到廣告的心情⋯ 若您願意支持巴哈姆特永續經營,請將 gamer.com.tw 加入廣告阻擋工具的白名單中,謝謝 !【教學】