18.07.2012, 23:38
pawn Код:
new Text3D:label[MAX_PLAYERS], cProcurado[MAX_PLAYERS];
forward ChecarProcurado(playerid);
public OnPlayerConnect(playerid)
{
label[playerid] = Create3DTextLabel("** Procurado **", 0x008080FF, 30.0, 40.0, 50.0, 60.0, 0);
cProcurado[playerid] = SetTimerEx("ChecarProcurado", 1000, true, "i");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
KillTimer(cProcurado[playerid]);
Delete3DTextLabel(label[playerid]);
return 1;
}
public ChecarProcurado(playerid)
{
if(WantedPoints[playerid] > 0)
{
static str[80];
format(str, sizeof(str), "** Procurado %d **", WantedPoints[playerid]);
Update3DTextLabelText(label[playerid], 0x008080FF, str);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
}
else
{
Update3DTextLabelText(label[playerid], 0x008080FF, "");
}
return 1;
}

