PHP Code:
//News
new Text3D:LabelProc[MAX_PLAYERS];
//SetTimer
SetTimer("AtualizarTextLabel", 100, true);
//Public
forward AtualizarTextLabel(playerid);
public AtualizarTextLabel(playerid)
{
if(GetPlayerWantedLevel(playerid) == 0)
{
Delete3DTextLabel(LabelProc[playerid]);
}
if(GetPlayerWantedLevel(playerid) == 1)
{
Delete3DTextLabel(LabelProc[playerid]);
LabelProc[playerid] = Create3DTextLabel("Procurado Nнvel: 1", 0xFF0000AA, 30.0, 40.0, 50.0, 100.0, 0);
Attach3DTextLabelToPlayer(LabelProc[playerid], playerid, 0.0, 0.0, 0.3);
}
if(GetPlayerWantedLevel(playerid) == 2)
{
Delete3DTextLabel(LabelProc[playerid]);
LabelProc[playerid] = Create3DTextLabel("Procurado Nнvel: 2", 0xFF0000AA, 30.0, 40.0, 50.0, 100.0, 0);
Attach3DTextLabelToPlayer(LabelProc[playerid], playerid, 0.0, 0.0, 0.3);
}
if(GetPlayerWantedLevel(playerid) == 3)
{
Delete3DTextLabel(LabelProc[playerid]);
LabelProc[playerid] = Create3DTextLabel("Procurado Nнvel: 3", 0xFF0000AA, 30.0, 40.0, 50.0, 100.0, 0);
Attach3DTextLabelToPlayer(LabelProc[playerid], playerid, 0.0, 0.0, 0.3);
}
if(GetPlayerWantedLevel(playerid) == 4)
{
Delete3DTextLabel(LabelProc[playerid]);
LabelProc[playerid] = Create3DTextLabel("Procurado Nнvel: 4", 0xFF0000AA, 30.0, 40.0, 50.0, 100.0, 0);
Attach3DTextLabelToPlayer(LabelProc[playerid], playerid, 0.0, 0.0, 0.3);
}
if(GetPlayerWantedLevel(playerid) == 5)
{
Delete3DTextLabel(LabelProc[playerid]);
LabelProc[playerid] = Create3DTextLabel("Procurado Nнvel: 5", 0xFF0000AA, 30.0, 40.0, 50.0, 100.0, 0);
Attach3DTextLabelToPlayer(LabelProc[playerid], playerid, 0.0, 0.0, 0.3);
}
if(GetPlayerWantedLevel(playerid) == 6)
{
Delete3DTextLabel(LabelProc[playerid]);
LabelProc[playerid] = Create3DTextLabel("Procurado Nнvel: 6", 0xFF0000AA, 30.0, 40.0, 50.0, 100.0, 0);
Attach3DTextLabelToPlayer(LabelProc[playerid], playerid, 0.0, 0.0, 0.3);
}
return 1;
}