这段代码帮看下要修改那里
死亡观看玩家显示数据,1.6下测试正常1.5下不能显示public eventSpecMode(id)
{/*
new sData
read_data(2, sData, 11)
g_izSpecMode = (sData == '2')
new sData1
read_data(2, sData1, 11)
g_izSpecMode1 = (sData1 == '4')
return PLUGIN_CONTINUE
*/
new sData
read_data(2, sData, 11)
g_izSpecMode = (sData == '2')
return PLUGIN_CONTINUE
}
public eventShowRank(id)
{
if (SpecRankInfo && g_izSpecMode)
{
new iPlayer = read_data(2)
if (is_user_connected(iPlayer))
{
new IN_name
get_user_name(iPlayer,IN_name,MAX_NAME_LENGTH)
for (new i = 0; i < g_count; i++)
{
if(equal(IN_name,g_names)){
if(g_iPStats == 0){
set_hudmessage(255, 0, 0, 0.02, 0.35, 2, 0.01, 8.0, 0.01, 1.0, 18)
show_hudmessage(id, "%s Mei You Zhu Che Bu Bao Cun XP.", IN_name)
//set_task(1.0, "ShowHUD",id)
return PLUGIN_CONTINUE
}
页:
[1]