/*Filterscript generated using Zamaroht\'s TextDraw Editor Version 1.0.Designed for SA-MP 0.3a.Time and Date: 2012-5-19 @ 18:15:6Instructions:1- Compile this file using the compiler provided with the sa-mp server package.2- Copy the .amx file to the filterscripts directory.3- Add the filterscripts in the server.cfg file (more info here:http://wiki.sa-mp.com/wiki/Server.cfg)4- Run the server!Disclaimer:You have full rights over this file. You can distribute it, modify it, andchange it as much as you want, without having to give any special credits.*/#include <a_samp>#include <fixchars>new Text:Textdraw0;new Text:Textdraw1;public OnFilterScriptInit(){print(\"Textdraw file generated by\");print(\" Zamaroht\'s textdraw editor was loaded.\");// Create the textdraws:Textdraw0 = TextDrawCreate(500.000000, 100.000000, \"népeség:\");TextDrawBackgroundColor(Textdraw0, 255);TextDrawFont(Textdraw0, 1);TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);TextDrawColor(Textdraw0, -1);TextDrawSetOutline(Textdraw0, 1);TextDrawSetProportional(Textdraw0, 1);Textdraw1 = TextDrawCreate(584.000000, 99.000000, \"x\");TextDrawBackgroundColor(Textdraw1, 255);TextDrawFont(Textdraw1, 2);TextDrawLetterSize(Textdraw1, 0.500000, 1.000000);TextDrawColor(Textdraw1, -1);TextDrawSetOutline(Textdraw1, 0);TextDrawSetProportional(Textdraw1, 1);TextDrawSetShadow(Textdraw1, 1);for(new i; i < MAX_PLAYERS; i ++){if(IsPlayerConnected(i)){ TextDrawShowForPlayer(i, Textdraw0); TextDrawShowForPlayer(i, Textdraw1);}}return 1;}public OnFilterScriptExit(){TextDrawHideForAll(Textdraw0);TextDrawDestroy(Textdraw0);TextDrawHideForAll(Textdraw1);TextDrawDestroy(Textdraw1);return 1;}public OnPlayerConnect(playerid){ SetPVarInt(playerid, \"Jatekos\", GetPVarInt(playerid, \"Jatekos\") +1); new newtext[41]; format(newtext, sizeof(newtext), \"%d/%d\", GetPVarInt(playerid, \"Jatekos\"), GetMaxPlayers()); TextDrawSetString(Text:Textdraw1, newtext); TextDrawShowForPlayer(playerid, Text:Textdraw1); TextDrawShowForPlayer(playerid, Textdraw0); return 1;}public OnPlayerDisconnect(playerid, reason){ SetPVarInt(playerid, \"Jatekos\", GetPVarInt(playerid, \"Jatekos\") -1); new newtext[41]; format(newtext, sizeof(newtext), \"%d/%d\", GetPVarInt(playerid, \"Jatekos\"), GetMaxPlayers()); TextDrawSetString(Text:Textdraw1, newtext); TextDrawShowForPlayer(playerid, Text:Textdraw1); return 1;}
/*Filterscript generated using Zamaroht\'s TextDraw Editor Version 1.0.Designed for SA-MP 0.3a.Time and Date: 2012-5-19 @ 18:15:6Instructions:1- Compile this file using the compiler provided with the sa-mp server package.2- Copy the .amx file to the filterscripts directory.3- Add the filterscripts in the server.cfg file (more info here:http://wiki.sa-mp.com/wiki/Server.cfg)4- Run the server!Disclaimer:You have full rights over this file. You can distribute it, modify it, andchange it as much as you want, without having to give any special credits.*/#include <a_samp>#include <fixchars>new Text:Textdraw0,Text:Textdraw1,OnlinePlayers;public OnFilterScriptInit(){print(\"Textdraw file generated by\");print(\" Zamaroht\'s textdraw editor was loaded.\");Textdraw0 = TextDrawCreate(500.000000, 100.000000, \"népeség:\");TextDrawBackgroundColor(Textdraw0, 255);TextDrawFont(Textdraw0, 1);TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);TextDrawColor(Textdraw0, -1);TextDrawSetOutline(Textdraw0, 1);TextDrawSetProportional(Textdraw0, 1);Textdraw1 = TextDrawCreate(584.000000, 99.000000, \"x\");TextDrawBackgroundColor(Textdraw1, 255);TextDrawFont(Textdraw1, 2);TextDrawLetterSize(Textdraw1, 0.500000, 1.000000);TextDrawColor(Textdraw1, -1);TextDrawSetOutline(Textdraw1, 0);TextDrawSetProportional(Textdraw1, 1);TextDrawSetShadow(Textdraw1, 1);for(new i; i < MAX_PLAYERS; i ++){if(IsPlayerConnected(i)){ OnlinePlayers++; TextDrawShowForPlayer(i, Textdraw0); TextDrawShowForPlayer(i, Textdraw1);}}return 1;}public OnFilterScriptExit(){TextDrawHideForAll(Textdraw0);TextDrawDestroy(Textdraw0);TextDrawHideForAll(Textdraw1);TextDrawDestroy(Textdraw1);return 1;}public OnPlayerConnect(playerid){OnlinePlayers++; new newtext[41]; format(newtext, sizeof(newtext), \"%d/%d\", OnlinePlayers, GetMaxPlayers()); TextDrawSetString(Textdraw1, newtext); TextDrawShowForPlayer(playerid, Textdraw1); TextDrawShowForPlayer(playerid, Textdraw0);return 1;}public OnPlayerDisconnect(playerid, reason){OnlinePlayers--; new newtext[41]; format(newtext, sizeof(newtext), \"%d/%d\", OnlinePlayers, GetMaxPlayers()); TextDrawSetString(Textdraw1, newtext); TextDrawHideForPlayer(playerid, Textdraw1); return 1;}