17.08.2010, 10:11
(
Последний раз редактировалось Djalo; 17.08.2010 в 10:14.
Причина: I put the Result :D
)
Hello, today i will show You, how to do a Simple TextDraw with Players Online 
So Let's Start
First, we must put on the Top of the FilterScript/GameMode this:
Now serach the Public OnGameModeInit/OnFilterScriptInit and put this
OK, TextDraw Created
But now we must show it for Players, so in public OnPlayerConnect put this:
In public OnGameModeExit/OnFilterScriptExit put this:
And at the Finish of GM/FS put this:
Now we are Ready, compile the GM/FS and have Fun 
Result:

Sorry for my bad English :P

So Let's Start

First, we must put on the Top of the FilterScript/GameMode this:
Код:
new Text:players;
Код:
// 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);
}
}
But now we must show it for Players, so in public OnPlayerConnect put this:Код:
new strings[15]; format(strings, 15, "%d/50",GetOnLinePlayers()); TextDrawSetString(players, strings); TextDrawShowForPlayer(playerid, players);
Код:
TextDrawHideForAll(players); TextDrawDestroy(players);
Код:
stock GetOnLinePlayers()
{
new OnLine;
for(new i, g = GetMaxPlayers(); i < g; i++)
if(IsPlayerConnected(i))
OnLine++;
return OnLine;
}

Result:
Sorry for my bad English :P

