[Pedido] Procurados!
#5

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;
}
Reply


Messages In This Thread
[Pedido] Procurados! - by The_G0dFather - 18.07.2012, 23:18
Re: [Pedido] Procurados! - by .FuneraL. - 18.07.2012, 23:20
Re: [Pedido] Procurados! - by The_G0dFather - 18.07.2012, 23:29
Re: [Pedido] Procurados! - by darkxdll - 18.07.2012, 23:32
Re: [Pedido] Procurados! - by Victor' - 18.07.2012, 23:38

Forum Jump:


Users browsing this thread: 1 Guest(s)