最新最全最权威的各类手游,端游,页游游戏信息开服信息,尽在游民之家. 订阅微信

烈焰私服服务端增加玩家死亡被击杀提示

发表时间:2016-01-06 23:47点击人气:责任编辑:admin

player.lua 查找onPlayerDied      替换掉原本的那段脚本------还不完美,需继续完善

function onPlayerDied(instanceID, player, killer, n)
    if player:GetMapId() == 61 then
        player:set_name_pre(12,"");
        player:set_timer(1,0);
    end
    if player:GetMapId() == 13 and player:GetMapId() == 60 then
    else
        if killer:IsPlayer() then
        local message1 = string.format("人在江湖飘,哪有不挨刀。<font color='#2828FF'>【%q】</font>在<font color='#FF0000'>"..MapIdToMapName[player:GetMapId()].."["..player:GetX()..","..player:GetY().."]</font>被<font color='#FF0000'>【%q】</font>偷袭杀死!",killer:GetName(),player:GetName())
        g_alert(message1,2,1000,0,1)
        end
    end
end
----------------------------------------
脚本最下面加上下边这条

RegisterServerHook(2,"onPlayerDied")

 请严格按照说明来替换和修改,出现未知错误与页游SF发布站无关.