PDA

View Full Version : [JX] Xin đoạn script kick out nhân vật



huynhkim
04-05-14, 03:59 PM
Ai biết giúp với, đoạn server bảo trì sau x giây đó.............................................T hạnks

hoivegame
05-05-14, 09:46 AM
Tự chế ...dùng thử đi hen.:-t


function MsgGlbGM_Input()
AskClientForString("MsgGlbByGM","",1,9999999,"GM: Vui lßng ®¸nh lêi nh¾n cña b¹n tíi server!")
end

function MsgGlbByGM(zVar)
local IsString = tonumber(zVar)
if IsString then
Talk(1,"MsgGlbGM_Input","Vui lßng nhËp ch÷ kh«ng nhËp sè.!!")
return
end
local MapId
if (zVar == "reset") then
for i=1,GetPlayerCount() do
PlayerIndex = i
MapId,_,_ = GetWorldPos()
if (MapId > 0) then
KickOutSelf()
end
end
end
Msg2SubWorld(zVar)
end