死亡观看玩家显示数据,1.6下测试正常1.5下不能显示
[PHP]public eventSpecMode(id)
{/*
new sData[12]
read_data(2, sData, 11)
g_izSpecMode[id] = (sData[10] == '2')
new sData1[12]
read_data(2, sData1, 11)
g_izSpecMode1[id] = (sData1[10] == '4')
return PLUGIN_CONTINUE
*/
new sData[12]
read_data(2, sData, 11)
g_izSpecMode[id] = (sData[10] == '2')
return PLUGIN_CONTINUE
}
public eventShowRank(id)
{
if (SpecRankInfo && g_izSpecMode[id])
{
new iPlayer = read_data(2)
if (is_user_connected(iPlayer))
{
new IN_name[32]
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[reg] == 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
}[/PHP] |