//Playerek a szerveren by:[sDW]BlackJack!!!#include <a_samp>#include <fixchars>//------------------------------------------------------------------------------new Text:Textdraw0,OnlinePlayers;//------------------------------------------------------------------------------public OnFilterScriptInit(){ print(\"|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-||\");print(\"|*Playerek a szerveren* by:[sDW]BlackJack|\");print(\"|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-||\");//------------------------------------------------------------------------------ Textdraw0 = TextDrawCreate(509.000000, 219.000000, \"Játékosok:\");//TextDrawBackgroundColor(Textdraw0, 255);TextDrawFont(Textdraw0, 0);TextDrawLetterSize(Textdraw0, 0.539999, 1.200000);TextDrawColor(Textdraw0, 65535);TextDrawSetOutline(Textdraw0, 0);TextDrawSetProportional(Textdraw0, 1);TextDrawSetShadow(Textdraw0, 1);//------------------------------------------------------------------------------ print(\"|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-||\");print(\"|*Playerek a szerveren* by:[sDW]BlackJack|\");print(\"|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-||\");return 1;}//------------------------------------------------------------------------------public OnFilterScriptExit(){ TextDrawHideForAll(Textdraw0); TextDrawDestroy(Textdraw0);return 1;}//------------------------------------------------------------------------------public OnPlayerConnect(playerid){ TextDrawShowForPlayer(playerid, Textdraw0); OnlinePlayers++; new newtext[41]; format(newtext, sizeof(newtext), \"Játékosok: %d/%d\", OnlinePlayers, GetMaxPlayers()); TextDrawSetString(Textdraw0, newtext);return 1;}//------------------------------------------------------------------------------public OnPlayerDisconnect(playerid, reason){ TextDrawHideForPlayer(playerid, Textdraw0); OnlinePlayers--; new newtext[41]; format(newtext, sizeof(newtext), \"Játékosok: %d/%d\", OnlinePlayers, GetMaxPlayers()); TextDrawSetString(Textdraw0, newtext);return 1;}//------------------------------------------------------------------------------
BlackJack\" post=\"330989\" timestamp=\"1345626856\"]Flash te fogadni merek hogy nem tucc szkriptelni!Mert ha ugy csinalnam akkor meg a playerek szama is a duplajat mutatna!!! [/quote]Mi az, hogy nem tud? :facepalm:format(newtext, sizeof(newtext), \"%d\", OnlinePlayers, GetMaxPlayers()); <- Minek kéred le akkor a max slot számot, ha nem is használod?Pontosan, az a jó amit flash leírt.
Építõ jellegû kritikákat lehet írni, dicsérni, tanácsokat adni, stb. [/quote]tûrd ezeket
format(newtext, sizeof(newtext), \"Játékosok: %d/%d\", OnlinePlayers, GetMaxPlayers());TextDrawSetString(Textdraw0, newtext);