18.07.2015, 05:27
Editei, tenta ae.
OnGameModeInit
OnPlayerSpawn
PHP код:
new Text:Name[ MAX_PLAYERS ];
PHP код:
for( new i = 0; i < MAX_PLAYERS; ++i )
{
Name[ i ] = TextDrawCreate(1.000000, 328.000000," ");
TextDrawBackgroundColor(Name[ i ], 255);
TextDrawFont(Name[ i ], 2);
TextDrawLetterSize(Name[ i ], 0.500000, 1.000000);
TextDrawColor(Name[ i ], 16711935);
TextDrawSetOutline(Name[ i ], 1);
TextDrawSetProportional(Name[ i ], 1);
}
SetTimer( "NickInfo", 5000, false );
PHP код:
forward NickInfo( );
public NickInfo( )
{
foreach(Player, i )
{
new strt[256];
format( strt, sizeof( strt ), "Nick: ~b~%s ~w~ID: ~b~%d" , PlayerName( i ), i );
TextDrawSetString( Name[ i ], strt );
}
return 1;
}
PHP код:
TextDrawShowForPlayer( playerid, Name[ playerid ] );