22.04.2012, 19:38
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 ] ) ;