#define FILTERSCRIPT/*DAdmin: Készítette: BoOyDanger\'s FreeRoam Fun szerver használja!RCON képességek - Az RCON Admin megtudja változtatni a szerver nevet és a map nevet. Letudja zárni/oldani a szervert.Parancsok:/report - Admin segítõ: A játékos írhat problémákat az adminoknak. Az adminok segítenek./admins - Online Adminok.Admin szintek és parancsok:Level 1: /clearchat | /announce | /goto | /get | /[un]mute | /getip | /slap | /apm | /achatLevel 2: /healall | /[un]freeze | /setskin | /jetpack | /akill | /warnLevel 3: /kick | /slap | /givemoney | /setweapon | /setweather | /setscoreLevel 4: /[un]ban | /killall | /explode | /armourall | /disarm | /rescarLevel 5: /setlevel | /allips | /kickall | /gmx | /muteall| /freezeall /god------------------------------------------------------------------*/#include #define USE_PLUGIN_FUNCTIONS#include #include #include #include #include #define COLOR_RED 0xFF0606FF#define DIALOG_REGISTER 200#define DIALOG_LOGIN 201#define DIALOG_REGCOMPLETED 202#define DIALOG_CLICK 203#define DIALOG_ADMIN 204#define RCON_DIALOG 205#define DIALOG_ACMDS 206#define SKIN_ID 150#define START_MONEY 1000#define MAX_CARS 1000#define MAX_WARNINGS 3#define TOTAL_ITEMS 300#define SELECTION_ITEMS 21#define ITEMS_PER_LINE 7#define HEADER_TEXT \"Skinek!\"#define NEXT_TEXT \"Tovabb\"#define PREV_TEXT \"Vissza\"#define DIALOG_BASE_X 75.0#define DIALOG_BASE_Y 130.0#define DIALOG_WIDTH 550.0#define DIALOG_HEIGHT 180.0#define SPRITE_DIM_X 60.0#define SPRITE_DIM_Y 70.0new timeupdatetimer;forward LoadPlayerData(playerid);forward TimeUpdate(playerid);enum pData { pPassword[64], pAdmin,pTime, pMoney, pScore, pMute, pFrozen, pSpecating, pSkin, pWarn, pSpam, bool:LoggedIn} new P_Data[MAX_PLAYERS][pData];new regstring[512];new loginstring[512];new registered;new SkinChange[MAX_PLAYERS];new SkinChange1[MAX_PLAYERS];new KilepesMent[MAX_PLAYERS];new Text:AdatokTextdraw;new Text:FelhasznTextdraw;new gTotalItems = TOTAL_ITEMS;new PlayerText:gCurrentPageTextDrawId[MAX_PLAYERS];new PlayerText:gHeaderTextDrawId[MAX_PLAYERS];new PlayerText:gBackgroundTextDrawId[MAX_PLAYERS];new PlayerText:gNextButtonTextDrawId[MAX_PLAYERS];new PlayerText:gPrevButtonTextDrawId[MAX_PLAYERS];new PlayerText:gSelectionItems[MAX_PLAYERS][sELECTION_ITEMS];new gSelectionItemsTag[MAX_PLAYERS][sELECTION_ITEMS];new gItemAt[MAX_PLAYERS];new gItemList[TOTAL_ITEMS] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299};public OnFilterScriptInit(){new year,month,day; getdate(year, month, day);new hour,minute,second; gettime(hour,minute,second);print(\" \");print(\" \");print(\"---------------------------------\");print(\" Adminrendszer betöltése.. \");print(\"---------------------------------\");printf(\"Dátum: %02i/%02i/%02i Idõ: %02i:%02i :%02i\",year, month, day, hour, minute, second);printf(\"Eddig összesen: %d Játékos regisztrált a szerverre!\",registered);print(\"---------------------------------\");print(\" \");print(\" \");timeupdatetimer = SetTimer(\"TimeUpdater\", 1000, true);if(!dfile_DirectoryExists(\"Scriptfiles/Adminrendszer\")) { dfile_CreateDirectory(\"Adminrendszer\"); print(\"Az Adminrendszer mappa létrehozása a Scriptfiles mappába..\");}if(!dfile_DirectoryExists(\"Scriptfiles/Adminrendszer/Játékosok\")) { dfile_CreateDirectory(\"Adminrendszer/Játékosok\"); print(\"A Adminrendszer/Játékosok mappa létrehozása a Scriptfiles mappába..\");} for(new i; i < MAX_PLAYERS; i++) SetTimerEx(\"TimeUpdate\", 1000, true, \"i\", i); format(loginstring, 512, \"{FFFFFF}Üdvözöllek újra a {FF9900}Danger\'s FreeRoam Fun™ Szerveren{FFFFFF}! \\n Kérlek {33FF00}jelentkezz be{FFFFFF}, hogy adataidat betölthessük!\");format(regstring, 512, \"{FFFFFF}Üdvözöllek a {FF9900}Danger\'s FreeRoam Fun™ Szerveren{FFFFFF}! \\n Kérlek {33FF00}Regisztrálj{FFFFFF}, hogy adataidat sikeresen elmentsük!\");AdatokTextdraw = TextDrawCreate(43.125, 217.583, \"Adataid Betöltése...\");TextDrawLetterSize(AdatokTextdraw, 0.660, 3.110);TextDrawAlignment(AdatokTextdraw, 1);TextDrawColor(AdatokTextdraw, -1);TextDrawSetOutline(AdatokTextdraw, 1);TextDrawBackgroundColor(AdatokTextdraw, 51);TextDrawFont(AdatokTextdraw, 1);TextDrawSetProportional(AdatokTextdraw, 1);FelhasznTextdraw = TextDrawCreate(43.125, 217.583, \"Felhasználód Készítése...\");TextDrawLetterSize(FelhasznTextdraw, 0.660, 3.110);TextDrawAlignment(FelhasznTextdraw, 1);TextDrawColor(FelhasznTextdraw, -1);TextDrawSetOutline(FelhasznTextdraw, 1);TextDrawBackgroundColor(FelhasznTextdraw, 51);TextDrawFont(FelhasznTextdraw, 1);TextDrawSetProportional(FelhasznTextdraw, 1); new varo = CreateObject(19353, 518.9199, -3681.6926, 3.8118, 0.0000, 0.0000, -94.4026);SetObjectMaterialText(varo, \"Kérlek várj..\", 0, 140, \"Arial\", 100, 0, -16468988, 0, 1);new udv = CreateObject(19353, 512.4999, -3755.7707, 2.8493, 0.0000, 0.0000, -80.0663);SetObjectMaterialText(udv, \"Üdv a szerveren!\", 0, 140, \"Arial\", 70, 1, -65536, 0, 1);new parancs = CreateObject(19353, -339.2107, 1544.3071, 76.0625, 0.0000, 0.0000, 179.9443);SetObjectMaterialText(parancs, \"Parancsokért: /cmds\", 0, 140, \"Arial\", 60, 0, -1, 0, 1);new telesek = CreateObject(19353, -347.0748, 1543.1376, 76.0625, 0.0000, 0.0000, 0.0961);SetObjectMaterialText(telesek, \"Teleportok: /teles\", 0, 140, \"Arial\", 70, 0, -1, 0, 1);print(\" \");print(\"---------------------------------\");print(\" Adminrendszer betöltve... \");print(\"---------------------------------\");print(\" \");return 1;}public OnFilterScriptExit(){KillTimer(timeupdatetimer);TextDrawHideForAll(FelhasznTextdraw);TextDrawDestroy(FelhasznTextdraw);TextDrawHideForAll(AdatokTextdraw);TextDrawDestroy(AdatokTextdraw);return 1;}public OnPlayerConnect(playerid){TogglePlayerSpectating(playerid,1);SetTimerEx(\"Skin\", 1000, false, \"i\", playerid);new year,month,day; getdate(year, month, day);new hour,minute,second; gettime(hour,minute,second);new dName[MAX_PLAYER_NAME]; new string[512];if(IsRegistered(pName(playerid))){ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, \"Bejelentkezés\", loginstring, \"Bejelentkez\", \"Kick\");SkinChange[playerid] = 0;}else{ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, \"Regisztráció\", regstring, \"Regisztrál\", \"Kick\");SkinChange[playerid] = 1;}KilepesMent[playerid] = 0;PlayerPlaySound(playerid,1097,0.0,0.0,0.0);P_Data[playerid][pWarn] = 0; GetPlayerName(playerid, dName, sizeof(dName)); format(string, sizeof(string), \"{DAEB26}%s {19E620}Csatlakozott a Danger\'s FreeRoam Fun™ szerverhez! {E31010}[idõ: %d/%d/%d %d:%d:%d]\", dName, year, month, day, hour, minute, second); SendClientMessageToAll(-1, string);gHeaderTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW; gBackgroundTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW; gCurrentPageTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW; gNextButtonTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW; gPrevButtonTextDrawId[playerid] = PlayerText:INVALID_TEXT_DRAW; for(new x=0; x < SELECTION_ITEMS; x++) { gSelectionItems[playerid]