18.07.2015, 05:15
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);
}
PHP код:
foreach(Player, i )
{
if(IsPlayerConnected(i))
{
new name[MAX_PLAYER_NAME];
GetPlayerName(i, name,sizeof(name));
format(strt,sizeof(strt),"Nick: ~b~%s",name( i ));
TextDrawSetString(Name[ i ],strt);
}
return 1;
}