[ajuda] 'Procurado' Attach3DTextLabelToPlayer
#2

pawn Код:
#include <  a_samp  >

new Text3D:procurado [ MAX_PLAYERS ] ;
new Text3d [ MAX_PLAYERS ] ;

public OnPlayerUpdate ( playerid )
{
    if ( IsPlayerConnected ( playerid ) )
    {
        new procuradolevel = GetPlayerWantedLevel ( playerid ) ;
        if ( procuradolevel > 0 )
        {
            if ( Text3d [ playerid ] == 1)
            {
                Text3d [ playerid ] = 1 ;
                procurado [ playerid ] = Create3DTextLabel ( "~x PROCURADO x~", 0xFF0000AA , 5.0, 5.0, 5.0, 5.0, 0, 0 ) ;
                Attach3DTextLabelToPlayer ( procurado [ playerid ] , playerid , 0.0 , 0.0 , 0.4 ) ;
            }
            Update3DTextLabelText ( procurado [ playerid ] , 0xFF0000AA , "~x PROCURADO x~" ) ;
        }
        if ( Text3d [ playerid ] == 0 )
        {
            if ( procuradolevel == 0 )
            {
                Delete3DTextLabel ( procurado [ playerid ] ) ;
            }
            Delete3DTextLabel ( procurado [ playerid ] ) ;
        }
    }
    return 1 ;
}

public OnPlayerDeath ( playerid , killerid ) Delete3DTextLabel ( procurado [ playerid ] ) ;
Reply


Messages In This Thread
[ajuda] 'Procurado' Attach3DTextLabelToPlayer - by victor_thug - 22.04.2012, 19:28
Re: [ajuda] 'Procurado' Attach3DTextLabelToPlayer - by RoacH` - 22.04.2012, 19:38
Re: [ajuda] 'Procurado' Attach3DTextLabelToPlayer - by victor_thug - 22.04.2012, 20:04
Re: [ajuda] 'Procurado' Attach3DTextLabelToPlayer - by RoacH` - 22.04.2012, 20:06
Re: [ajuda] 'Procurado' Attach3DTextLabelToPlayer - by BreakDriFT - 22.04.2012, 20:09

Forum Jump:


Users browsing this thread: 1 Guest(s)