Va-ti intrebat cum sa faceti sa apara deasupra navigatorului cati playeri online aveti ?
Sa incepem
Prima data , punem ce avem mai jos in partea de sus al FilterScript/GameMode
Sper sa va fie de folos!
Sa incepem
Prima data , punem ce avem mai jos in partea de sus al FilterScript/GameMode
- Cod:
new Text:players;
- Cod:
// TextDraw for Players Online
players = TextDrawCreate(54.000000, 326.000000, "_");
TextDrawBackgroundColor(players, 255);
TextDrawFont(players, 2);
TextDrawLetterSize(players, 0.500000, 1.000000);
TextDrawColor(players, -65281);
TextDrawSetOutline(players, 1);
TextDrawSetProportional(players, 1);
for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, players);
}
}
- Cod:
new strings[15];
format(strings, 15, "%d/50",GetOnLinePlayers());
TextDrawSetString(players, strings);
TextDrawShowForPlayer(playerid, players);
- Cod:
TextDrawHideForAll(players);
TextDrawDestroy(players);
- Cod:
stock GetOnLinePlayers()
{
new OnLine;
for(new i, g = GetMaxPlayers(); i < g; i++)
if(IsPlayerConnected(i))
OnLine++;
return OnLine;
}
Sper sa va fie de folos!