Sa incepem

Prima data , punem ce avem mai jos in partea de sus al FilterScript/GameMode
Code: Select all
new Text:players;
Code: Select all
// 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);
}
}
Code: Select all
new strings[15];
format(strings, 15, "%d/50",GetOnLinePlayers());
TextDrawSetString(players, strings);
TextDrawShowForPlayer(playerid, players);
Code: Select all
TextDrawHideForAll(players);
TextDrawDestroy(players);
Code: Select all
stock GetOnLinePlayers()
{
new OnLine;
for(new i, g = GetMaxPlayers(); i < g; i++)
if(IsPlayerConnected(i))
OnLine++;
return OnLine;
}
Si gata....
Daca aveti anumite nelamuriri postati aici
Sursa: Sa-mp.Com ( tradus de sandu_mihai aka MrBlack)