public OnPlayerUpdate(playerid)
{
if(IsPlayerConnected(playerid))
{// procurado em cima do nome
new Text3D:procurado[MAXPLAYERS];
new procuradolevel = GetPlayerWantedLevel(playerid);
new Text3d[MAXPLAYERS];
if(procuradolevel > 0)
{
if(Text3d[playerid] == 0)
{
Text3d[playerid] = 1;
procurado[playerid] = Create3DTextLabel("~x PROCURADO x~", COLOR_RED, 5.0, 5.0, 5.0, 5.0, 0, 0);
Attach3DTextLabelToPlayer(procurado[playerid], playerid, 0.0, 0.0, 0.4);
}
Update3DTextLabelText(procurado[playerid], COLOR_RED, "~x PROCURADO x~");
}
if(Text3d[playerid] == 1)
{
if(procuradolevel == 0)
{
Delete3DTextLabel(procurado[playerid]);
}
Delete3DTextLabel(procurado[playerid]);
}//fim procurado em cima do nome
#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 ] ) ;
#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 ] ) ;
Text3d [ playerid ] = 0 ;
}
}
return 1 ;
}
public OnPlayerDeath ( playerid , killerid ) Delete3DTextLabel ( procurado [ playerid ] ) ;
Se voce for o jogador procurado , voce nгo vai conseguir ver . apenas os outros jogadores !!
|