Ez a szekció lehetővé teszi a felhasználó által írt összes hozzászólás megtekintését. Vedd figyelembe, hogy csak azokba a fórumokba írt hozzászólásokat látod, amelyekhez hozzáférésed van.
Üzenetek - Norby
Oldalak: 1 ... 13 14 [15] 16 17 ... 104
211
« Dátum: 2012. július 21. - 14:31:00 »
#define DIALOG_IDO 200 public OnPlayerSpawn(playerid) { ShowPlayerDialog(playerid,DIALOG_IDO,DIALOG_STYLE_LIST,\"Válaszd ki a napszakot.\",\"Reggel\\nDélben\\nEste\",\"Kiválaszt\",\"Kilépés\"); return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_IDO) { if(response) { switch(listitem) { case 0: SetPlayerTime(playerid,7,0); case 1: SetPlayerTime(playerid,12,0); case 2: SetPlayerTime(playerid,20,0); } } } return 1; }
212
« Dátum: 2012. július 21. - 14:03:23 »
Grat Bár csinálhattad volna Timer nélkül is
Kösz mindenkinek és az új verzió az timer nélkül lesz. Verzió 2.0
213
« Dátum: 2012. július 21. - 01:03:33 »
214
« Dátum: 2012. július 20. - 21:46:39 »
Így próbáld meg:
ForceClassSelection(playerid); TogglePlayerSpectating(playerid, true); TogglePlayerSpectating(playerid, false);
Nem ez volt a kérdés. És csinálsz egy változót ami annyit csinál hogy, ha megnyomja az oldalra gombot akkor növekszik így: new SkinValasztas[MAX_PLAYERS] = 0; Jobbra gomb lenyomásnál SkinValasztas[playerid]++; SetPlayerSkin(playerid,SkinValasztas[playerid]); Balra gomb lenyomásnál SkinValasztas[playerid]--; SetPlayerSkin(playerid,SkinValasztas[playerid]);
215
« Dátum: 2012. július 20. - 18:32:23 »
Parancsolj. #include <a_samp> #include <lethaldudb2> #pragma dynamic 145000 /* |===============================================| | --== LethaL Adminscript ==-- | | -== Version 4.2 ==-- | | ladmin4v2.pwn | |===============================================| */ //ladmin magyaritás by skullrider 08.08 //-----------------------------------------------------------------------------------// #define USE_MENUS // Comment to remove all menus. Uncomment to enable menus //#define DISPLAY_CONFIG // displays configuration in console window on filterscript load #define SAVE_LOGS // Comment if your server runs linux (logs wont be saved) #define ENABLE_SPEC // Comment if you are using a spectate system already #define USE_STATS // Comment to disable /stats #define ANTI_MINIGUN // Displays who has a minigun //#define USE_AREGISTER // Changes /register, /login etc to /areister, /alogin etc //#define HIDE_ADMINS // Displays number of admins online instead of level and names #define ENABLE_FAKE_CMDS // Comment to disable /fakechat, /fakedeath, /fakecmd commanads //-----------------------------------------------------------------------------------// #define MAX_WARNINGS 3 // /warn command #define MAX_REPORTS 7 #define MAX_CHAT_LINES 7 #define SPAM_MAX_MSGS 5 #define SPAM_TIMELIMIT 8 // SECONDS #define PING_MAX_EXCEEDS 4 #define PING_TIMELIMIT 60 // SECONDS #define MAX_FAIL_LOGINS 4 // Admin Area new AdminArea[6] = { 377, // X 170, // Y 1008, // Z 90, // Angle 3, // Interior 0 // Virtual World }; //-=Main colours=- #define COLOR_BLUE 0x0000FFAA #define COLOR_GREY 0xAFAFAFAA #define COLOR_GREEN 0x33AA33AA #define COLOR_YELLOW 0xFFFF00AA #define COLOR_WHITE 0xFFFFFFAA #define COLOR_WITHE 0xFFFFFFAA #define COLOR_PURPLE 0x9900FFAA #define COLOR_BROWN 0x993300AA #define COLOR_ORANGE 0xFF9933AA #define COLOR_CYAN 0x99FFFFAA #define COLOR_TAN 0xFFFFCCAA #define COLOR_PINK 0xFF66FFAA #define COLOR_KHAKI 0x999900AA #define COLOR_LIME 0x99FF00AA #define COLOR_BLACK 0x000000AA #define COLOR_TURQ 0x00A3C0AA #define COLOR_LIGHTBLUE 0x00BFFFAA #define COLOR_GREENISHGOLD 0xCCFFDD56 #define COLOR_LIGHTBLUEGREEN 0x0FFDD349 #define COLOR_NEUTRALBLUE 0xABCDEF01 #define COLOR_LIGHTCYAN 0xAAFFCC33 #define COLOR_LEMON 0xDDDD2357 #define COLOR_AQUA 0x7CFC00AA #define COLOR_WHITEYELLOW 0xFFE87DAA #define COLOR_BLUEAQUA 0x7E60FFAA #define COLOR_GREENYELLOWWHITE 0xCBFF45AA #define COLOR_DARKBLUE 0x15005EAA #define COLOR_RED 0xAA3333AA #define COLOR_ULTRARED 0xFF0606FF #define COLOR_WARNING 0xFB0000FF #define COLOR_VIOLET 0x8F698FFF #define COLOR_LIGHTRED 0xED0321AA #define blue 0x375FFFFF #define red 0xFF0000AA #define green 0x33FF33AA #define yellow 0xFFFF00AA #define grey 0xC0C0C0AA #define blue1 0x2641FEAA #define lightblue 0x33CCFFAA #define orange 0xFF9900AA #define black 0x2C2727AA #define COLOR_GREEN 0x33AA33AA #define COLOR_PINK 0xFF66FFAA #define COLOR_BLACK 0x000000AA #define COLOR_WHITE 0xFFFFFFAA #define COLOR_GREEN1 0x33AA33AA // DCMD #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, \"\")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1 // Caps #define UpperToLower(%1) for ( new ToLowerChar; ToLowerChar < strlen( %1 ); ToLowerChar ++ ) if ( %1[ ToLowerChar ]> 64 && %1[ ToLowerChar ] < 91 ) %1[ ToLowerChar ] += 32 // Spec #define ADMIN_SPEC_TYPE_NONE 0 #define ADMIN_SPEC_TYPE_PLAYER 1 #define ADMIN_SPEC_TYPE_VEHICLE 2 // Enums enum PlayerData { Registered, LoggedIn, Level, Muted, Caps, Jailed, JailTime, Frozen, FreezeTime, Kills, Deaths, hours, mins, secs, TotalTime, ConnectTime, MuteWarnings, Warnings, Spawned, TimesSpawned, God, GodCar, DoorsLocked, SpamCount, SpamTime, PingCount, PingTime, BotPing, pPing[PING_MAX_EXCEEDS], blip, blipS, pColour, pCar, SpecID, SpecType, bool:AllowedIn, FailLogin, }; new PlayerInfo[MAX_PLAYERS][PlayerData]; enum ServerData { MaxPing, ReadPMs, ReadCmds, MaxAdminLevel, AdminOnlySkins, AdminSkin, AdminSkin2, NameKick, PartNameKick, AntiBot, AntiSpam, AntiSwear, NoCaps, Locked, Password[128], GiveWeap, GiveMoney, ConnectMessages, AdminCmdMsg, AutoLogin, MaxMuteWarnings, DisableChat, MustLogin, MustRegister, }; new ServerInfo[serverData]; new Float:Pos[MAX_PLAYERS][4]; // rcon new Chat[MAX_CHAT_LINES][128]; //Timers new PingTimer; new GodTimer; new BlipTimer[MAX_PLAYERS]; new JailTimer[MAX_PLAYERS]; new FreezeTimer[MAX_PLAYERS]; new LockKickTimer[MAX_PLAYERS]; //Duel new CountDown = -1, cdt[MAX_PLAYERS] = -1; new InDuel[MAX_PLAYERS]; // Menus #if defined USE_MENUS new Menu:LMainMenu, Menu:AdminEnable, Menu:AdminDisable, Menu:LVehicles, Menu:twodoor, Menu:fourdoor, Menu:fastcar, Menu:Othercars, Menu:bikes, Menu:boats, Menu:planes, Menu:helicopters, Menu:XWeapons, Menu:XWeaponsBig, Menu:XWeaponsSmall, Menu:XWeaponsMore, Menu:LWeather,Menu:LTime, Menu:LTuneMenu, Menu:PaintMenu, Menu:LCars, Menu:LCars2, Menu:LTele, Menu:LasVenturasMenu, Menu:LosSantosMenu, Menu:SanFierroMenu, Menu:DesertMenu, Menu:FlintMenu, Menu:MountChiliadMenu, Menu:InteriorsMenu; #endif // Forbidden Names & Words new BadNames[100][100], // Whole Names BadNameCount = 0, BadPartNames[100][100], // Part of name BadPartNameCount = 0, ForbiddenWords[100][100], ForbiddenWordCount = 0; // Report new Reports[MAX_REPORTS][128]; // Ping Kick new PingPos; new VehicleNames[212][] = { \"Landstalker\",\"Bravura\",\"Buffalo\",\"Linerunner\",\"Pereniel\",\"Sentinel\",\"Dumper\",\"Firetruck\",\"Trashmaster\",\"Stretch\",\"Manana\",\"Infernus\", \"Voodoo\",\"Pony\",\"Mule\",\"Cheetah\",\"Ambulance\",\"Leviathan\",\"Moonbeam\",\"Esperanto\",\"Taxi\",\"Washington\",\"Bobcat\",\"Mr Whoopee\",\"BF Injection\", \"Hunter\",\"Premier\",\"Enforcer\",\"Securicar\",\"Banshee\",\"Predator\",\"Bus\",\"Rhino\",\"Barracks\",\"Hotknife\",\"Trailer\",\"Previon\",\"Coach\",\"Cabbie\", \"Stallion\",\"Rumpo\",\"RC Bandit\",\"Romero\",\"Packer\",\"Monster\",\"Admiral\",\"Squalo\",\"Seasparrow\",\"Pizzaboy\",\"Tram\",\"Trailer\",\"Turismo\",\"Speeder\", \"Reefer\",\"Tropic\",\"Flatbed\",\"Yankee\",\"Caddy\",\"Solair\",\"Berkley\'s RC Van\",\"Skimmer\",\"PCJ-600\",\"Faggio\",\"Freeway\",\"RC Baron\",\"RC Raider\", \"Glendale\",\"Oceanic\",\"Sanchez\",\"Sparrow\",\"Patriot\",\"Quad\",\"Coastguard\",\"Dinghy\",\"Hermes\",\"Sabre\",\"Rustler\",\"ZR3 50\",\"Walton\",\"Regina\", \"Comet\",\"BMX\",\"Burrito\",\"Camper\",\"Marquis\",\"Baggage\",\"Dozer\",\"Maverick\",\"News Chopper\",\"Rancher\",\"FBI Rancher\",\"Virgo\",\"Greenwood\", \"Jetmax\",\"Hotring\",\"Sandking\",\"Blista Compact\",\"Police Maverick\",\"Boxville\",\"Benson\",\"Mesa\",\"RC Goblin\",\"Hotring Racer A\",\"Hotring Racer B\", \"Bloodring Banger\",\"Rancher\",\"Super GT\",\"Elegant\",\"Journey\",\"Bike\",\"Mountain Bike\",\"Beagle\",\"Cropdust\",\"Stunt\",\"Tanker\",\"RoadTrain\", \"Nebula\",\"Majestic\",\"Buccaneer\",\"Shamal\",\"Hydra\",\"FCR-900\",\"NRG-500\",\"HPV1000\",\"Cement Truck\",\"Tow Truck\",\"Fortune\",\"Cadrona\",\"FBI Truck\", \"Willard\",\"Forklift\",\"Tractor\",\"Combine\",\"Feltzer\",\"Remington\",\"Slamvan\",\"Blade\",\"Freight\",\"Streak\",\"Vortex\",\"Vincent\",\"Bullet\",\"Clover\", \"Sadler\",\"Firetruck\",\"Hustler\",\"Intruder\",\"Primo\",\"Cargobob\",\"Tampa\",\"Sunrise\",\"Merit\",\"Utility\",\"Nevada\",\"Yosemite\",\"Windsor\",\"Monster A\", \"Monster B\",\"Uranus\",\"Jester\",\"Sultan\",\"Stratum\",\"Elegy\",\"Raindance\",\"RC Tiger\",\"Flash\",\"Tahoma\",\"Savanna\",\"Bandito\",\"Freight\",\"Trailer\", \"Kart\",\"Mower\",\"Duneride\",\"Sweeper\",\"Broadway\",\"Tornado\",\"AT-400\",\"DFT-30\",\"Huntley\",\"Stafford\",\"BF-400\",\"Newsvan\",\"Tug\",\"Trailer A\",\"Emperor\", \"Wayfarer\",\"Euros\",\"Hotdog\",\"Club\",\"Trailer B\",\"Trailer C\",\"Andromada\",\"Dodo\",\"RC Cam\",\"Launch\",\"Police Car (LSPD)\",\"Police Car (SFPD)\", \"Police Car (LVPD)\",\"Police Ranger\",\"Picador\",\"S.W.A.T. Van\",\"Alpha\",\"Phoenix\",\"Glendale\",\"Sadler\",\"Luggage Trailer A\",\"Luggage Trailer B\", \"Stair Trailer\",\"Boxville\",\"Farm Plow\",\"Utility Trailer\" }; //============================================================================== public OnFilterScriptInit() { print(\"\\n________________________________________\"); print(\"________________________________________\"); print(\" LAdmin Loading... \"); print(\"________________________________________\"); if(!fexist(\"ladmin/\")) { print(\"\\n\\n > WARNING: Folder Missing From Scriptfiles\\n\"); SetTimerEx(\"PrintWarning\",2500,0,\"s\",\"ladmin\"); return 1; } if(!fexist(\"ladmin/logs/\")) { print(\"\\n\\n > WARNING: Folder Missing From Scriptfiles\\n\"); SetTimerEx(\"PrintWarning\",2500,0,\"s\",\"ladmin/logs\"); return 1; } if(!fexist(\"ladmin/config/\")) { print(\"\\n\\n > WARNING: Folder Missing From Scriptfiles\\n\"); SetTimerEx(\"PrintWarning\",2500,0,\"s\",\"ladmin/config\"); return 1; } if(!fexist(\"ladmin/users/\")) { print(\"\\n\\n > WARNING: Folder Missing From Scriptfiles\\n\"); SetTimerEx(\"PrintWarning\",2500,0,\"s\",\"ladmin/users\"); return 1; } UpdateConfig(); #if defined DISPLAY_CONFIG ConfigInConsole(); #endif //===================== [ The Menus ]===========================// #if defined USE_MENUS LMainMenu = CreateMenu(\"F§ Men¬\", 2, 55.0, 200.0, 100.0, 80.0); SetMenuColumnHeader(LMainMenu, 0, \"V˜lassz egy opci¦t!\"); AddMenuItem(LMainMenu, 0, \"Aktiv˜l\"); AddMenuItem(LMainMenu, 0, \"Deaktiv˜l\"); AddMenuItem(LMainMenu, 0, \"Id§j˜r˜s\"); AddMenuItem(LMainMenu, 0, \"Szerver id§\"); AddMenuItem(LMainMenu, 0, \"Minden j˜rm«\"); AddMenuItem(LMainMenu, 0, \"Admin j˜rm«vek\"); AddMenuItem(LMainMenu, 0, \"Tuning Men¬\"); AddMenuItem(LMainMenu, 0, \"Fegyverek\"); AddMenuItem(LMainMenu, 0, \"Teleportok\"); AddMenuItem(LMainMenu, 0, \"Kil¾p\");// AdminEnable = CreateMenu(\"~b~Konfigur˜ci¦ós ~g~ Men¬\",2, 55.0, 200.0, 150.0, 80.0); SetMenuColumnHeader(AdminEnable, 0, \"Aktiv˜l\"); AddMenuItem(AdminEnable, 0, \"Anti k˜romkod˜s\"); AddMenuItem(AdminEnable, 0, \"Rossz n¾v kick\"); AddMenuItem(AdminEnable, 0, \"Anti Spam\"); AddMenuItem(AdminEnable, 0, \"Ping Kick\"); AddMenuItem(AdminEnable, 0, \"L˜tsz¦ parancsok\"); AddMenuItem(AdminEnable, 0, \"L˜tsz¦ PMek\"); AddMenuItem(AdminEnable, 0, \"Capital Letters\"); AddMenuItem(AdminEnable, 0, \"Kapcsol¦d˜si ¬zenetek\"); AddMenuItem(AdminEnable, 0, \"Admin Parancs ¬zenetek\"); AddMenuItem(AdminEnable, 0, \"Auto Login\"); AddMenuItem(AdminEnable, 0, \"Vissza\"); AdminDisable = CreateMenu(\"~b~Konfigur˜ci¦ós ~g~ Men¬\",2, 55.0, 200.0, 150.0, 80.0); SetMenuColumnHeader(AdminDisable, 0, \"Deaktiv˜l\"); AddMenuItem(AdminDisable, 0, \"Anti k˜romkod˜s\"); AddMenuItem(AdminDisable, 0, \"Rossz n¾v kick\"); AddMenuItem(AdminDisable, 0, \"Anti Spam\"); AddMenuItem(AdminDisable, 0, \"Ping Kick\"); AddMenuItem(AdminDisable, 0, \"L˜tsz¦ parancsok\"); AddMenuItem(AdminDisable, 0, \"L˜tsz¦ PMek\"); AddMenuItem(AdminDisable, 0, \"Capital Letters\"); AddMenuItem(AdminDisable, 0, \"Kapcsol¦d˜si ¬zenetek\"); AddMenuItem(AdminDisable, 0, \"Admin Parancs ¬zenetek\"); AddMenuItem(AdminDisable, 0, \"Auto bejelentkez¾s\"); AddMenuItem(AdminDisable, 0, \"Vissza\"); LWeather = CreateMenu(\"~b~Id§j˜r˜s ~g~ Men¬\",2, 55.0, 200.0, 100.0, 80.0); SetMenuColumnHeader(LWeather, 0, \"Id§j˜r˜s be˜ll¢t˜sa\"); AddMenuItem(LWeather, 0, \"Tiszta k¾k ¾g\"); AddMenuItem(LWeather, 0, \"Homokvihar\"); AddMenuItem(LWeather, 0, \"Vihar\"); AddMenuItem(LWeather, 0, \"K¨d¨s\"); AddMenuItem(LWeather, 0, \"Felh§s\"); AddMenuItem(LWeather, 0, \"Es§\"); AddMenuItem(LWeather, 0, \"Sz¬rke ¾g\"); AddMenuItem(LWeather, 0, \"Fekete/feh¾r ¾g\"); AddMenuItem(LWeather, 0, \"Z¨ld ¾g\"); AddMenuItem(LWeather, 0, \"Forr¦s˜g\"); AddMenuItem(LWeather, 0 ,\"Vissza\"); LTime = CreateMenu(\"~b~Id§ ~g~ Menu\", 2, 55.0, 200.0, 100.0, 80.0); SetMenuColumnHeader(LTime, 0, \"Szerver id§\"); AddMenuItem(LTime, 0, \"Reggel\"); AddMenuItem(LTime, 0, \"D¾l id§\"); AddMenuItem(LTime, 0, \"D¾lut˜n\"); AddMenuItem(LTime, 0, \"Este\"); AddMenuItem(LTime, 0, \"¾jszaka\"); AddMenuItem(LTime, 0, \"Vissza\"); LCars = CreateMenu(\"~b~Admin ~g~Aut¦k\", 2, 55.0, 150.0, 100.0, 80.0); SetMenuColumnHeader(LCars, 0, \"V˜lassz kocsit!\"); AddMenuItem(LCars, 0, \"Turismo\"); AddMenuItem(LCars, 0, \"Bandito\"); AddMenuItem(LCars, 0, \"Vortex\"); AddMenuItem(LCars, 0, \"NRG\"); AddMenuItem(LCars, 0, \"S.W.A.T\"); AddMenuItem(LCars, 0, \"Hunter\"); AddMenuItem(LCars, 0, \"Jetmax (cs¦nak)\"); AddMenuItem(LCars, 0, \"Rhino\"); AddMenuItem(LCars, 0, \"Monster Truck\"); AddMenuItem(LCars, 0, \"Sea Sparrow\"); AddMenuItem(LCars, 0, \"Tov˜bb\"); AddMenuItem(LCars, 0, \"Vissza\"); LCars2 = CreateMenu(\"~b~Admin ~g~Aut¦k\", 2, 55.0, 150.0, 100.0, 80.0); SetMenuColumnHeader(LCars2, 0, \"V˜lassz kocsit!\"); AddMenuItem(LCars2, 0, \"Dumper\"); AddMenuItem(LCars2, 0, \"RC Tank\"); AddMenuItem(LCars2, 0, \"RC Bandit\"); AddMenuItem(LCars2, 0, \"RC Baron\"); AddMenuItem(LCars2, 0, \"RC Goblin\"); AddMenuItem(LCars2, 0, \"RC Raider\"); AddMenuItem(LCars2, 0, \"RC Cam\"); AddMenuItem(LCars2, 0, \"Tram\"); AddMenuItem(LCars2, 0, \"Vissza\"); LTuneMenu = CreateMenu(\"~b~Tuning ~g~ Men¬\",2, 55.0, 200.0, 100.0, 80.0); SetMenuColumnHeader(LTuneMenu, 0, \"V˜lassz!\"); AddMenuItem(LTuneMenu,0,\"Nitro\"); AddMenuItem(LTuneMenu,0,\"Hidraulika\"); AddMenuItem(LTuneMenu,0,\"Wire Ker¾k\"); AddMenuItem(LTuneMenu,0,\"Twist Ker¾k\"); AddMenuItem(LTuneMenu,0,\"Access Ker¾k\"); AddMenuItem(LTuneMenu,0,\"Mega Ker¾k\"); AddMenuItem(LTuneMenu,0,\"Import Ker¾k\"); AddMenuItem(LTuneMenu,0,\"Atomic Ker¾k\"); AddMenuItem(LTuneMenu,0,\"Offroad Ker¾k\"); AddMenuItem(LTuneMenu,0,\"Classic Ker¾k\"); AddMenuItem(LTuneMenu,0,\"Fest§munk˜k\"); AddMenuItem(LTuneMenu,0,\"Vissza\"); PaintMenu = CreateMenu(\"~b~Fest§munka ~g~ Men¬\",2, 55.0, 200.0, 100.0, 80.0); SetMenuColumnHeader(PaintMenu, 0, \"V˜lassz!\"); AddMenuItem(PaintMenu,0,\"Fest§munka 1\"); AddMenuItem(PaintMenu,0,\"Fest§munka 2\"); AddMenuItem(PaintMenu,0,\"Fest§munka 3\"); AddMenuItem(PaintMenu,0,\"Fest§munka 4\"); AddMenuItem(PaintMenu,0,\"Fest§munka 5\"); AddMenuItem(PaintMenu,0,\"Fekete\"); AddMenuItem(PaintMenu,0,\"Feh¾r\"); AddMenuItem(PaintMenu,0,\"K¾k\"); AddMenuItem(PaintMenu,0,\"Pink\"); AddMenuItem(PaintMenu,0,\"Vissza\"); LVehicles = CreateMenu(\"~b~J˜rm« ~g~ Men¬\",2, 55.0, 200.0, 100.0, 80.0); SetMenuColumnHeader(LVehicles, 0, \"V˜lassz!\"); AddMenuItem(LVehicles,0,\"2-ajt¦s kocsik\"); AddMenuItem(LVehicles,0,\"4-ajt¦s kocsik\"); AddMenuItem(LVehicles,0,\"Gyors kocsik\"); AddMenuItem(LVehicles,0,\"Egy¾b kocsik\"); AddMenuItem(LVehicles,0,\"Motorok\"); AddMenuItem(LVehicles,0,\"Cs¦nakok\"); AddMenuItem(LVehicles,0,\"Rep¬l§k\"); AddMenuItem(LVehicles,0,\"Helikopterek\"); AddMenuItem(LVehicles,0,\"Vissza\"); twodoor = CreateMenu(\"~b~2-ajt¦s kocsik\",2, 55.0, 200.0, 100.0, 80.0); SetMenuColumnHeader(twodoor, 0, \"V˜lassz kocsit!\"); AddMenuItem(twodoor,0,\"Feltzer\");//533 AddMenuItem(twodoor,0,\"Stallion\");//139 AddMenuItem(twodoor,0,\"Windsor\");//555 AddMenuItem(twodoor,0,\"Bobcat\");//422 AddMenuItem(twodoor,0,\"Yosemite\");//554 AddMenuItem(twodoor,0,\"Broadway\");//575 AddMenuItem(twodoor,0,\"Blade\");//536 AddMenuItem(twodoor,0,\"Slamvan\");//535 AddMenuItem(twodoor,0,\"Tornado\");//576 AddMenuItem(twodoor,0,\"Bravura\");//401 AddMenuItem(twodoor,0,\"Fortune\");//526 AddMenuItem(twodoor,0,\"Vissza\"); fourdoor = CreateMenu(\"~b~4-ajt¦s kocsik\",2, 55.0, 200.0, 100.0, 80.0); SetMenuColumnHeader(fourdoor, 0, \"V˜lassz kocsit!\"); AddMenuItem(fourdoor,0,\"Perenniel\");//404 AddMenuItem(fourdoor,0,\"Tahoma\");//566 AddMenuItem(fourdoor,0,\"Voodoo\");//412 AddMenuItem(fourdoor,0,\"Admiral\");//445 AddMenuItem(fourdoor,0,\"Elegant\");//507 AddMenuItem(fourdoor,0,\"Glendale\");//466 AddMenuItem(fourdoor,0,\"Intruder\");//546 AddMenuItem(fourdoor,0,\"Merit\");//551 AddMenuItem(fourdoor,0,\"Oceanic\");//467 AddMenuItem(fourdoor,0,\"Premier\");//426 AddMenuItem(fourdoor,0,\"Sentinel\");//405 AddMenuItem(fourdoor,0,\"Vissza\"); fastcar = CreateMenu(\"~b~Gyors kocsik\",2, 55.0, 200.0, 100.0, 80.0); SetMenuColumnHeader(fastcar, 0, \"V˜lassz kocsit!\"); AddMenuItem(fastcar,0,\"Comet\");//480 AddMenuItem(fastcar,0,\"Buffalo\");//402 AddMenuItem(fastcar,0,\"Cheetah\");//415 AddMenuItem(fastcar,0,\"Euros\");//587 AddMenuItem(fastcar,0,\"Hotring Racer\");//494 AddMenuItem(fastcar,0,\"Infernus\");//411 AddMenuItem(fastcar,0,\"Phoenix\");//603 AddMenuItem(fastcar,0,\"Super GT\");//506 AddMenuItem(fastcar,0,\"Turismo\");//451 AddMenuItem(fastcar,0,\"ZR-350\");//477 AddMenuItem(fastcar,0,\"Bullet\");//541 AddMenuItem(fastcar,0,\"Vissza\"); Othercars = CreateMenu(\"~b~Egy¾b kocsik\",2, 55.0, 200.0, 100.0, 80.0); SetMenuColumnHeader(Othercars, 0, \"V˜lassz kocsit!\"); AddMenuItem(Othercars,0,\"Monster Truck\");//556 AddMenuItem(Othercars,0,\"Trashmaster\");//408 AddMenuItem(Othercars,0,\"Bus\");//431 AddMenuItem(Othercars,0,\"Coach\");//437 AddMenuItem(Othercars,0,\"Enforcer\");//427 AddMenuItem(Othercars,0,\"Rhino (Tank)\");//432 AddMenuItem(Othercars,0,\"S.W.A.T.Truck\");//601 AddMenuItem(Othercars,0,\"Cement Truck\");//524 AddMenuItem(Othercars,0,\"Flatbed\");//455 AddMenuItem(Othercars,0,\"BF Injection\");//424 AddMenuItem(Othercars,0,\"Dune\");//573 AddMenuItem(Othercars,0,\"Vissza\"); bikes = CreateMenu(\"~b~Motorok\",2, 55.0, 200.0, 100.0, 80.0); SetMenuColumnHeader(bikes, 0, \"V˜lassz motort!\"); AddMenuItem(bikes,0,\"BF-400\"); AddMenuItem(bikes,0,\"BMX\"); AddMenuItem(bikes,0,\"Faggio\"); AddMenuItem(bikes,0,\"FCR-900\"); AddMenuItem(bikes,0,\"Freeway\"); AddMenuItem(bikes,0,\"NRG-500\"); AddMenuItem(bikes,0,\"PCJ-600\"); AddMenuItem(bikes,0,\"Pizzaboy\"); AddMenuItem(bikes,0,\"Quad\"); AddMenuItem(bikes,0,\"Sanchez\"); AddMenuItem(bikes,0,\"Wayfarer\"); AddMenuItem(bikes,0,\"Vissza\"); boats = CreateMenu(\"~b~Cs¦nakok\",2, 55.0, 200.0, 100.0, 80.0); SetMenuColumnHeader(boats, 0, \"V˜lassz cs¦nakot!\"); AddMenuItem(boats,0,\"Coastguard\");//472 AddMenuItem(boats,0,\"Dingy\");//473 AddMenuItem(boats,0,\"Jetmax\");//493 AddMenuItem(boats,0,\"Launch\");//595 AddMenuItem(boats,0,\"Marquis\");//484 AddMenuItem(boats,0,\"Predator\");//430 AddMenuItem(boats,0,\"Reefer\");//453 AddMenuItem(boats,0,\"Speeder\");//452 AddMenuItem(boats,0,\"Squallo\");//446 AddMenuItem(boats,0,\"Tropic\");//454 AddMenuItem(boats,0,\"Vissza\"); planes = CreateMenu(\"~b~Rep¬l§k\",2, 55.0, 200.0, 100.0, 80.0); SetMenuColumnHeader(planes, 0, \"V˜lassz rep¬l§t!\"); AddMenuItem(planes,0,\"Andromada\");//592 AddMenuItem(planes,0,\"AT400\");//577 AddMenuItem(planes,0,\"Beagle\");//511 AddMenuItem(planes,0,\"Cropduster\");//512 AddMenuItem(planes,0,\"Dodo\");//593 AddMenuItem(planes,0,\"Hydra\");//520 AddMenuItem(planes,0,\"Nevada\");//553 AddMenuItem(planes,0,\"Rustler\");//476 AddMenuItem(planes,0,\"Shamal\");//519 AddMenuItem(planes,0,\"Skimmer\");//460 AddMenuItem(planes,0,\"Stuntplane\");//513 AddMenuItem(planes,0,\"Vissza\"); helicopters = CreateMenu(\"~b~Helikopterek\",2, 55.0, 200.0, 100.0, 80.0); SetMenuColumnHeader(helicopters, 0, \"V˜lassz helikoptert!\"); AddMenuItem(helicopters,0,\"Cargobob\");// AddMenuItem(helicopters,0,\"Hunter\");// AddMenuItem(helicopters,0,\"Leviathan\");// AddMenuItem(helicopters,0,\"Maverick\");// AddMenuItem(helicopters,0,\"News Chopper\");// AddMenuItem(helicopters,0,\"Police Maverick\");// AddMenuItem(helicopters,0,\"Raindance\");// AddMenuItem(helicopters,0,\"Seasparrow\");// AddMenuItem(helicopters,0,\"Sparrow\");// AddMenuItem(helicopters,0,\"Vissza\"); XWeapons = CreateMenu(\"~b~Fegyverek ~g~F§men¬\",2, 55.0, 200.0, 100.0, 80.0); SetMenuColumnHeader(XWeapons, 0, \"V˜lassz fegyvert!\"); AddMenuItem(XWeapons,0,\"Desert Eagle\");//0 AddMenuItem(XWeapons,0,\"M4\"); AddMenuItem(XWeapons,0,\"Sawnoff Shotgun\"); AddMenuItem(XWeapons,0,\"Combat Shotgun\"); AddMenuItem(XWeapons,0,\"UZI\"); AddMenuItem(XWeapons,0,\"Rocket Launcher\"); AddMenuItem(XWeapons,0,\"Minigun\");//6 AddMenuItem(XWeapons,0,\"Sniper Rifle\"); AddMenuItem(XWeapons,0,\"Nagy fegyverek\"); AddMenuItem(XWeapons,0,\"Kis fegyverek\");//9 AddMenuItem(XWeapons,0,\"Tov˜bb\"); AddMenuItem(XWeapons,0,\"Vissza\");//11 XWeaponsBig = CreateMenu(\"~b~Fegyverek ~g~Nagy fegyverek\",2, 55.0, 200.0, 100.0, 80.0); SetMenuColumnHeader(XWeaponsBig, 0, \"V˜lassz fegyvert!\"); AddMenuItem(XWeaponsBig,0,\"Shotgun\"); AddMenuItem(XWeaponsBig,0,\"AK-47\"); AddMenuItem(XWeaponsBig,0,\"Country Rifle\"); AddMenuItem(XWeaponsBig,0,\"HS Rocket Launcher\"); AddMenuItem(XWeaponsBig,0,\"Flamethrower\"); AddMenuItem(XWeaponsBig,0,\"SMG\"); AddMenuItem(XWeaponsBig,0,\"TEC9\"); AddMenuItem(XWeaponsBig,0,\"Vissza\"); XWeaponsSmall = CreateMenu(\"~b~Fegyverek ~g~Kis fegyverek\",2, 55.0, 200.0, 100.0, 80.0); SetMenuColumnHeader(XWeaponsBig, 0, \"V˜lassz fegyvert!\"); AddMenuItem(XWeaponsSmall,0,\"9mm\"); AddMenuItem(XWeaponsSmall,0,\"Silenced 9mm\"); AddMenuItem(XWeaponsSmall,0,\"Molotov Cocktail\"); AddMenuItem(XWeaponsSmall,0,\"Fire Extinguisher\"); AddMenuItem(XWeaponsSmall,0,\"Spraycan\"); AddMenuItem(XWeaponsSmall,0,\"Frag Grenades\"); AddMenuItem(XWeaponsSmall,0,\"Katana\"); AddMenuItem(XWeaponsSmall,0,\"Chainsaw\"); AddMenuItem(XWeaponsSmall,0,\"Vissza\"); XWeaponsMore = CreateMenu(\"~b~Fegyverek ~g~Egy¾b fegyverek\",2, 55.0, 200.0, 100.0, 80.0); SetMenuColumnHeader(XWeaponsBig, 0, \"V˜lassz fegyvert!\"); AddMenuItem(XWeaponsMore,0,\"Jetpack\"); AddMenuItem(XWeaponsMore,0,\"Knife\"); AddMenuItem(XWeaponsMore,0,\"Flowers\"); AddMenuItem(XWeaponsMore,0,\"Kamera\"); AddMenuItem(XWeaponsMore,0,\"Pool Cue\"); AddMenuItem(XWeaponsMore,0,\"Baseball Bat\"); AddMenuItem(XWeaponsMore,0,\"Golf Club\"); AddMenuItem(XWeaponsMore,0,\"MAX T¨lt¾ny\"); AddMenuItem(XWeaponsMore,0,\"Vissza\"); LTele = CreateMenu(\"Teleportok\", 2, 55.0, 200.0, 100.0, 80.0); SetMenuColumnHeader(LTele, 0, \"Hova menn¾l?\"); AddMenuItem(LTele, 0, \"Las Venturas\");//0 AddMenuItem(LTele, 0, \"Los Santos\");//1 AddMenuItem(LTele, 0, \"San Fierro\");//2 AddMenuItem(LTele, 0, \"The Desert\");//3 AddMenuItem(LTele, 0, \"Flint Country\");//4 AddMenuItem(LTele, 0, \"Mount Chiliad\");//5 AddMenuItem(LTele, 0, \"Interiorok\");//6 AddMenuItem(LTele, 0, \"Vissza\");//8 LasVenturasMenu = CreateMenu(\"Las Venturas\", 2, 55.0, 200.0, 100.0, 80.0); SetMenuColumnHeader(LasVenturasMenu, 0, \"Hova menn¾l?\"); AddMenuItem(LasVenturasMenu, 0, \"The Strip\");//0 AddMenuItem(LasVenturasMenu, 0, \"Come-A-Lot\");//1 AddMenuItem(LasVenturasMenu, 0, \"LV Airport\");//2 AddMenuItem(LasVenturasMenu, 0, \"KACC Military Fuels\");//3 AddMenuItem(LasVenturasMenu, 0, \"Yellow Bell Golf Club\");//4 AddMenuItem(LasVenturasMenu, 0, \"Baseball Stadion\");//5 AddMenuItem(LasVenturasMenu, 0, \"Vissza\");//6 LosSantosMenu = CreateMenu(\"Los Santos\", 2, 55.0, 200.0, 100.0, 80.0); SetMenuColumnHeader(LosSantosMenu, 0, \"Hova menn¾l?\"); AddMenuItem(LosSantosMenu, 0, \"Ganton\");//0 AddMenuItem(LosSantosMenu, 0, \"LS Airport\");//1 AddMenuItem(LosSantosMenu, 0, \"Ocean Docks\");//2 AddMenuItem(LosSantosMenu, 0, \"Pershing Square\");//3 AddMenuItem(LosSantosMenu, 0, \"Verdant Bluffs\");//4 AddMenuItem(LosSantosMenu, 0, \"Santa Maria Beach\");//5 AddMenuItem(LosSantosMenu, 0, \"Mulholland\");//6 AddMenuItem(LosSantosMenu, 0, \"Richman\");//7 AddMenuItem(LosSantosMenu, 0, \"Vissza\");//8 SanFierroMenu = CreateMenu(\"San Fierro\", 2, 55.0, 200.0, 100.0, 80.0); SetMenuColumnHeader(SanFierroMenu, 0, \"Hova menn¾l?\"); AddMenuItem(SanFierroMenu, 0, \"SF Station\");//0 AddMenuItem(SanFierroMenu, 0, \"SF Airport\");//1 AddMenuItem(SanFierroMenu, 0, \"Ocean Flats\");//2 AddMenuItem(SanFierroMenu, 0, \"Avispa Country Club\");//3 AddMenuItem(SanFierroMenu, 0, \"Easter Basin (dokkok)\");//4 AddMenuItem(SanFierroMenu, 0, \"Esplanade North\");//5 AddMenuItem(SanFierroMenu, 0, \"Battery Point\");//6 AddMenuItem(SanFierroMenu, 0, \"Vissza\");//7 DesertMenu = CreateMenu(\"The Desert\", 2, 55.0, 200.0, 100.0, 80.0); SetMenuColumnHeader(DesertMenu, 0, \"Hova menn¾l?\"); AddMenuItem(DesertMenu, 0, \"Aircraft Graveyard\");//0 AddMenuItem(DesertMenu, 0, \"Area 51\");//1 AddMenuItem(DesertMenu, 0, \"The Big Ear\");//2 AddMenuItem(DesertMenu, 0, \"The Sherman Dam\");//3 AddMenuItem(DesertMenu, 0, \"Las Barrancas\");//4 AddMenuItem(DesertMenu, 0, \"El Quebrados\");//5 AddMenuItem(DesertMenu, 0, \"Octane Springs\");//6 AddMenuItem(DesertMenu, 0, \"Vissza\");//7 FlintMenu = CreateMenu(\"Flint Country\", 2, 55.0, 200.0, 100.0, 80.0); SetMenuColumnHeader(FlintMenu, 0, \"Hova menn¾l?\"); AddMenuItem(FlintMenu, 0, \"The Lake\");//0 AddMenuItem(FlintMenu, 0, \"Leafy Hollow\");//1 AddMenuItem(FlintMenu, 0, \"The Farm\");//2 AddMenuItem(FlintMenu, 0, \"Shady Cabin\");//3 AddMenuItem(FlintMenu, 0, \"Flint Range\");//4 AddMenuItem(FlintMenu, 0, \"Becon Hill\");//5 AddMenuItem(FlintMenu, 0, \"Fallen Tree\");//6 AddMenuItem(FlintMenu, 0, \"Vissza\");//7 MountChiliadMenu = CreateMenu(\"Mount Chiliad\", 2, 55.0, 200.0, 100.0, 80.0); SetMenuColumnHeader(MountChiliadMenu, 0, \"Hova menn¾l?\"); AddMenuItem(MountChiliadMenu, 0, \"Chiliad Jump\");//0 AddMenuItem(MountChiliadMenu, 0, \"Bottom Of Chiliad\");//1 AddMenuItem(MountChiliadMenu, 0, \"Legmagasabb pont\");//2 AddMenuItem(MountChiliadMenu, 0, \"Chiliad Path\");//3 AddMenuItem(MountChiliadMenu, 0, \"Vissza\");//7 InteriorsMenu = CreateMenu(\"Interiorok\", 2, 55.0, 200.0, 130.0, 80.0); SetMenuColumnHeader(InteriorsMenu, 0, \"Hova menn¾l?\"); AddMenuItem(InteriorsMenu, 0, \"Planning Department\");//0 AddMenuItem(InteriorsMenu, 0, \"LV PD\");//1 AddMenuItem(InteriorsMenu, 0, \"Pizza Stack\");//2 AddMenuItem(InteriorsMenu, 0, \"RC Battlefield\");//3 AddMenuItem(InteriorsMenu, 0, \"Caligula\'s Casino\");//4 AddMenuItem(InteriorsMenu, 0, \"Big Smoke\'s Crack Palace\");//5 AddMenuItem(InteriorsMenu, 0, \"Madd Dogg\'s Mansion\");//6 AddMenuItem(InteriorsMenu, 0, \"Dirtbike Stadium\");//7 AddMenuItem(InteriorsMenu, 0, \"Vice Stadium (duel)\");//8 AddMenuItem(InteriorsMenu, 0, \"Ammu-nation\");//9 AddMenuItem(InteriorsMenu, 0, \"Atrium\");//7 AddMenuItem(InteriorsMenu, 0, \"Vissza\");//8 #endif for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)) OnPlayerConnect(i); for(new i = 1; i < MAX_CHAT_LINES; i++) Chat = \"<none>\"; for(new i = 1; i < MAX_REPORTS; i++) Reports = \"<none>\"; PingTimer = SetTimer(\"PingKick\",5000,1); GodTimer = SetTimer(\"GodUpdate\",2000,1); new year,month,day; getdate(year, month, day); new hour,minute,second; gettime(hour,minute,second); print(\"________________________________________\"); print(\" LAdmin Version 4.2 \"); print(\" Loaded \"); print(\"________________________________________\"); printf(\" Date: %d/%d/%d Time: %d:%d :%d \",day,month,year, hour, minute, second); print(\"________________________________________\"); print(\"________________________________________\\n\"); return 1; } //============================================================================== public OnFilterScriptExit() { KillTimer(PingTimer); KillTimer(GodTimer); #if defined USE_MENUS DestroyAllMenus(); #endif new year,month,day; getdate(year, month, day); new hour,minute,second; gettime(hour,minute,second); print(\"\\n________________________________________\"); print(\"________________________________________\"); print(\" LAdmin Unloaded \"); print(\"________________________________________\"); printf(\" Date: %d/%d/%d Time: %d:%d :%d \",day,month,year, hour, minute, second); print(\"________________________________________\"); print(\"________________________________________\\n\"); return 1; } //============================================================================== public OnPlayerConnect(playerid) { PlayerInfo[playerid][Deaths] = 0; PlayerInfo[playerid][Kills] = 0; PlayerInfo[playerid][Jailed] = 0; PlayerInfo[playerid][Frozen] = 0; PlayerInfo[playerid][Level] = 0; PlayerInfo[playerid][LoggedIn] = 0; PlayerInfo[playerid][Registered] = 0; PlayerInfo[playerid][God] = 0; PlayerInfo[playerid][GodCar] = 0; PlayerInfo[playerid][TimesSpawned] = 0; PlayerInfo[playerid][Muted] = 0; PlayerInfo[playerid][MuteWarnings] = 0; PlayerInfo[playerid][Warnings] = 0; PlayerInfo[playerid][Caps] = 0; PlayerInfo[playerid][DoorsLocked] = 0; PlayerInfo[playerid][pCar] = -1; for(new i; i<PING_MAX_EXCEEDS; i++) PlayerInfo[playerid][pPing] = 0; PlayerInfo[playerid][spamCount] = 0; PlayerInfo[playerid][spamTime] = 0; PlayerInfo[playerid][PingCount] = 0; PlayerInfo[playerid][PingTime] = 0; PlayerInfo[playerid][FailLogin] = 0; PlayerInfo[playerid][ConnectTime] = gettime(); //------------------------------------------------------ new PlayerName[MAX_PLAYER_NAME], string[128], str[128], file[256]; GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME); new tmp3[50]; GetPlayerIp(playerid,tmp3,50); //----------------------------------------------------- if(ServerInfo[ConnectMessages] == 1) { new pAKA[256]; pAKA = dini_Get(\"ladmin/config/aka.txt\",tmp3); if (strlen(pAKA) < 3) format(str,sizeof(str),\"*** %s (%d) csatlakozott a szerverhez\", PlayerName, playerid); else if (!strcmp(pAKA,PlayerName,true)) format(str,sizeof(str),\"*** %s (%d) csatlakozott a szerverhez\", PlayerName, playerid); else format(str,sizeof(str),\"*** %s (%d) csatlakozott a szerverhez (aka %s)\", PlayerName, playerid, pAKA ); for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && playerid != i) { if(PlayerInfo[Level] > 2) SendClientMessage(i,grey,str); else { format(string,sizeof(string),\"*** %s (%d) csatlakozott a szerverhez\", PlayerName, playerid); SendClientMessage(i,grey,string); } } } //----------------------------------------------------- if (dUserINT(PlayerName2(playerid)).(\"banned\") == 1) { SendClientMessage(playerid, red, \"Ez a név bannolva van a szerverrõl!\"); format(string,sizeof(string),\"%s ID:%d Kirúgva. Indok: Név bannolva van a szerverrõl!\",PlayerName,playerid); SendClientMessageToAll(grey, string); print(string); SaveToFile(\"KickLog\",string); Kick(playerid); } //----------------------------------------------------- if(ServerInfo[NameKick] == 1) { for(new s = 0; s < BadNameCount; s++) { if(!strcmp(BadNames,PlayerName,true)) { SendClientMessage(playerid,red, \"A neved feketelistán van ezért kirúgtak!\"); format(string,sizeof(string),\"%s ID:%d kirúgva. (Indok: Tiltott név)\",PlayerName,playerid); SendClientMessageToAll(grey, string); print(string); SaveToFile(\"KickLog\",string); Kick(playerid); return 1; } } } //----------------------------------------------------- if(ServerInfo[PartNameKick] == 1) { for(new s = 0; s < BadPartNameCount; s++) { new pos; while((pos = strfind(PlayerName,BadPartNames,true)) != -1) for(new i = pos, j = pos + strlen(BadPartNames); i < j; i++) { SendClientMessage(playerid,red, \"A neved nincs engedélyezve a szerveren ezért kirúgtak\"); format(string,sizeof(string),\"%s ID:%d kirúgva. (Indok: Tíltott név)\",PlayerName,playerid); SendClientMessageToAll(grey, string); print(string); SaveToFile(\"KickLog\",string); Kick(playerid); return 1; } } } //----------------------------------------------------- if(ServerInfo[Locked] == 1) { PlayerInfo[playerid][AllowedIn] = false; SendClientMessage(playerid,red,\"A szerver zárva! Van 20 másodperced hogy beírd a jelszót, külömben kirúgnak!\"); SendClientMessage(playerid,red,\"Használd: /password [jelszó]\"); LockKickTimer[playerid] = SetTimerEx(\"AutoKick\", 20000, 0, \"i\", playerid); } //----------------------------------------------------- if(strlen(dini_Get(\"ladmin/config/aka.txt\", tmp3)) == 0) dini_Set(\"ladmin/config/aka.txt\", tmp3, PlayerName); else { if( strfind( dini_Get(\"ladmin/config/aka.txt\", tmp3), PlayerName, true) == -1 ) { format(string,sizeof(string),\"%s,%s\", dini_Get(\"ladmin/config/aka.txt\",tmp3), PlayerName); dini_Set(\"ladmin/config/aka.txt\", tmp3, string); } } //----------------------------------------------------- if(!udb_Exists(PlayerName2(playerid))) SendClientMessage(playerid,orange, \"FELHASZNÁLÓ: Ezen a szerveren még nem regisztráltál használd /register [jelszó] \"); else { PlayerInfo[playerid][Registered] = 1; format(file,sizeof(file),\"/ladmin/users/%s.sav\",udb_encode(PlayerName)); new tmp2[256]; tmp2 = dini_Get(file,\"ip\"); if( (!strcmp(tmp3,tmp2,true)) && (ServerInfo[AutoLogin] == 1) ) { LoginPlayer(playerid); if(PlayerInfo[playerid][Level] > 0) { format(string,sizeof(string),\"FELHASZNÁLÓ: Autómatikusan bejelentkeztél! (Szint %d)\", PlayerInfo[playerid][Level] ); SendClientMessage(playerid,green,string); } else SendClientMessage(playerid,green,\"FELHASZNÁLÓ: Autómatikusan belelentkeztél jó játékot!\"); } else SendClientMessage(playerid, green, \"FELHASZNÁLÓ: Ez a felhasználónév már regisztrálva van kérlek jelentkezz be /login [jelszó]\"); } return 1; } //============================================================================== forward AutoKick(playerid); public AutoKick(playerid) { if( IsPlayerConnected(playerid) && ServerInfo[Locked] == 1 && PlayerInfo[playerid][AllowedIn] == false) { new string[128]; SendClientMessage(playerid,grey,\"Automatikusan kirúgott a szerver . Indok: Szerver Zárva\"); format(string,sizeof(string),\"%s ID:%d Autómatikusan kirúgva. Indok: Szerver Zárva\",PlayerName2(playerid),playerid); SaveToFile(\"KickLog\",string); Kick(playerid); SendClientMessageToAll(grey, string); print(string); } return 1; } //============================================================================== public OnPlayerDisconnect(playerid, reason) { new PlayerName[MAX_PLAYER_NAME], str[128]; GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); if(ServerInfo[ConnectMessages] == 1) { switch (reason) { case 0: format(str, sizeof(str), \"*** %s (%d) Kilépett a szerverrõl (Idõtullépés)\", PlayerName, playerid); case 1: format(str, sizeof(str), \"*** %s (%d) Kilépett a szerverrõl (Kilépés)\", PlayerName, playerid); case 2: format(str, sizeof(str), \"*** %s (%d) Kilépett a szerverrõl (Kirúgva/Bannolva)\", PlayerName, playerid); } SendClientMessageToAll(grey, str); } if(PlayerInfo[playerid][LoggedIn] == 1) SavePlayer(playerid); if(udb_Exists(PlayerName2(playerid))) dUserSetINT(PlayerName2(playerid)).(\"loggedin\",0); PlayerInfo[playerid][LoggedIn] = 0; PlayerInfo[playerid][Level] = 0; PlayerInfo[playerid][Jailed] = 0; PlayerInfo[playerid][Frozen] = 0; if(PlayerInfo[playerid][Jailed] == 1) KillTimer( JailTimer[playerid] ); if(PlayerInfo[playerid][Frozen] == 1) KillTimer( FreezeTimer[playerid] ); if(ServerInfo[Locked] == 1) KillTimer( LockKickTimer[playerid] ); if(PlayerInfo[playerid][pCar] != -1) CarDeleter(PlayerInfo[playerid][pCar]); #if defined ENABLE_SPEC for(new x=0; x<MAX_PLAYERS; x++) if(GetPlayerState(x) == PLAYER_STATE_SPECTATING && PlayerInfo AdvanceSpectate(x); #endif return 1; } forward DelayKillPlayer(playerid); public DelayKillPlayer(playerid) { SetPlayerHealth(playerid,0.0); ForceClassSelection(playerid); } //============================================================================== public OnPlayerSpawn(playerid) { if(ServerInfo[Locked] == 1 && PlayerInfo[playerid][AllowedIn] == false) { GameTextForPlayer(playerid,\"~r~Szerver lez˜rva!~n~ Írd be a jelsz¦t amint spawnolt˜l!~n~ /password <jelsz¦>\",4000,3); SetTimerEx(\"DelayKillPlayer\", 2500,0,\"d\",playerid); return 1; } if(ServerInfo[MustLogin] == 1 && PlayerInfo[playerid][Registered] == 1 && PlayerInfo[playerid][LoggedIn] == 0) { GameTextForPlayer(playerid,\"~r~Jelentkezz be spawn el¨tt!\",4000,3); SetTimerEx(\"DelayKillPlayer\", 2500,0,\"d\",playerid); return 1; } if(ServerInfo[MustRegister] == 1 && PlayerInfo[playerid][Registered] == 0) { GameTextForPlayer(playerid,\"~r~Regisztr˜lj be spawn el¨tt!\",4000,3); SetTimerEx(\"DelayKillPlayer\", 2500,0,\"d\",playerid); return 1; } PlayerInfo[playerid][spawned] = 1; if(PlayerInfo[playerid][Frozen] == 1) { TogglePlayerControllable(playerid,false); return SendClientMessage(playerid,red,\"Mivel elmenekültél a büntetésed elõl, ezért még midig le vagy fagyasztva!\"); } if(PlayerInfo[playerid][Jailed] == 1) { SetTimerEx(\"JailPlayer\",3000,0,\"d\",playerid); return SendClientMessage(playerid,red,\"Mivel elmenekültél a büntetésed elõl, ezért még midig börtönben vagy!\"); } if(ServerInfo[AdminOnlySkins] == 1) { if( (GetPlayerSkin(playerid) == ServerInfo[AdminSkin]) || (GetPlayerSkin(playerid) == ServerInfo[AdminSkin2]) ) { if(PlayerInfo[playerid][Level] >= 1) GameTextForPlayer(playerid,\"~b~Szevasz ADMIN!\",3000,1); else { GameTextForPlayer(playerid,\"r~Ezt a skint csak~n~ADMINOK~n~haszn˜lhatj˜k!\",4000,1); SetTimerEx(\"DelayKillPlayer\", 2500,0,\"d\",playerid); return 1; } } } if((dUserINT(PlayerName2(playerid)).(\"UseSkin\")) == 1) if((PlayerInfo[playerid][Level] >= 1) && (PlayerInfo[playerid][LoggedIn] == 1)) SetPlayerSkin(playerid,(dUserINT(PlayerName2(playerid)).(\"FavSkin\")) ); if(ServerInfo[GiveWeap] == 1) { if(PlayerInfo[playerid][LoggedIn] == 1) { PlayerInfo[playerid][TimesSpawned]++; if(PlayerInfo[playerid][TimesSpawned] == 1) { GivePlayerWeapon(playerid, dUserINT(PlayerName2(playerid)).(\"weap1\"), dUserINT(PlayerName2(playerid)).(\"weap1ammo\") ); GivePlayerWeapon(playerid, dUserINT(PlayerName2(playerid)).(\"weap2\"), dUserINT(PlayerName2(playerid)).(\"weap2ammo\") ); GivePlayerWeapon(playerid, dUserINT(PlayerName2(playerid)).(\"weap3\"), dUserINT(PlayerName2(playerid)).(\"weap3ammo\") ); GivePlayerWeapon(playerid, dUserINT(PlayerName2(playerid)).(\"weap4\"), dUserINT(PlayerName2(playerid)).(\"weap4ammo\") ); GivePlayerWeapon(playerid, dUserINT(PlayerName2(playerid)).(\"weap5\"), dUserINT(PlayerName2(playerid)).(\"weap5ammo\") ); GivePlayerWeapon(playerid, dUserINT(PlayerName2(playerid)).(\"weap6\"), dUserINT(PlayerName2(playerid)).(\"weap6ammo\") ); } } } return 1; } //============================================================================== public OnPlayerDeath(playerid, killerid, reason) { #if defined USE_STATS PlayerInfo[playerid][Deaths]++; #endif InDuel[playerid] = 0; if(IsPlayerConnected(killerid) && killerid != INVALID_PLAYER_ID) { #if defined USE_STATS PlayerInfo[killerid][Kills]++; #endif if(InDuel[playerid] == 1 && InDuel[killerid] == 1) { GameTextForPlayer(playerid,\"Loser !\",3000,3); GameTextForPlayer(killerid,\"Winner !\",3000,3); InDuel[killerid] = 0; SetPlayerPos(killerid, 0.0, 0.0, 0.0); SpawnPlayer(killerid); } else if(InDuel[playerid] == 1 && InDuel[killerid] == 0) { GameTextForPlayer(playerid,\"Loser !\",3000,3); } } #if defined ENABLE_SPEC for(new x=0; x<MAX_PLAYERS; x++) if(GetPlayerState(x) == PLAYER_STATE_SPECTATING && PlayerInfo AdvanceSpectate(x); #endif return 1; } //============================================================================== public OnPlayerText(playerid, text[]) { if(text[0] == \'#\' && PlayerInfo[playerid][Level] >= 1) { new string[128]; GetPlayerName(playerid,string,sizeof(string)); format(string,sizeof(string),\"Admin Chat: %s: %s\",string,text[1]); MessageToAdmins(green,string); return 0; } if(ServerInfo[DisableChat] == 1) { SendClientMessage(playerid,red,\"Chat levan tíltva\"); return 0; } if(PlayerInfo[playerid][Muted] == 1) { PlayerInfo[playerid][MuteWarnings]++; new string[128]; if(PlayerInfo[playerid][MuteWarnings] < ServerInfo[MaxMuteWarnings]) { format(string, sizeof(string),\"Figyelem: Te most lelettél némitva ha még is írsz akkor kickelve leszel. (%d / %d)\", PlayerInfo[playerid][MuteWarnings], ServerInfo[MaxMuteWarnings] ); SendClientMessage(playerid,red,string); } else { SendClientMessage(playerid,red,\"Figyelmeztetve lettél most kirúg a szerver!\"); format(string, sizeof(string),\"***%s (ID %d) kirúgva (indok: írt miközbe némítva volt)\", PlayerName2(playerid), playerid); SendClientMessageToAll(grey,string); SaveToFile(\"KickLog\",string); Kick(playerid); } return 0; } if(ServerInfo[AntiSpam] == 1 && (PlayerInfo[playerid][Level] == 0 && !IsPlayerAdmin(playerid)) ) { if(PlayerInfo[playerid][spamCount] == 0) PlayerInfo[playerid][spamTime] = TimeStamp(); PlayerInfo[playerid][spamCount]++; if(TimeStamp() - PlayerInfo[playerid][spamTime] > SPAM_TIMELIMIT) { // Its OK your messages were far enough apart PlayerInfo[playerid][spamCount] = 0; PlayerInfo[playerid][spamTime] = TimeStamp(); } else if(PlayerInfo[playerid][spamCount] == SPAM_MAX_MSGS) { new string[64]; format(string,sizeof(string),\"%s kirúgta a szerver Indok: (Flood/Spam megszegés)\", PlayerName2(playerid)); SendClientMessageToAll(grey,string); print(string); SaveToFile(\"KickLog\",string); Kick(playerid); } else if(PlayerInfo[playerid][spamCount] == SPAM_MAX_MSGS-1) { SendClientMessage(playerid,red,\"Anti Spamolás! következõre kirúg a szerver!.\"); return 0; } } if(ServerInfo[AntiSwear] == 1 && PlayerInfo[playerid][Level] < ServerInfo[MaxAdminLevel]) for(new s = 0; s < ForbiddenWordCount; s++) { new pos; while((pos = strfind(text,ForbiddenWords,true)) != -1) for(new i = pos, j = pos + strlen(ForbiddenWords); i < j; i++) text = \'*\'; } if(PlayerInfo[playerid][Caps] == 1) UpperToLower(text); if(ServerInfo[NoCaps] == 1) UpperToLower(text); for(new i = 1; i < MAX_CHAT_LINES-1; i++) Chat = Chat[i+1]; new ChatSTR[128]; GetPlayerName(playerid,ChatSTR,sizeof(ChatSTR)); format(ChatSTR,128,\"[lchat]%s: %s\",ChatSTR, text[0] ); Chat[MAX_CHAT_LINES-1] = ChatSTR; return 1; } //============================================================================== public OnPlayerPrivmsg(playerid, recieverid, text[]) { if(ServerInfo[ReadPMs] == 1 && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) { new string[128],recievername[MAX_PLAYER_NAME]; GetPlayerName(playerid, string, sizeof(string)); GetPlayerName(recieverid, recievername, sizeof(recievername)); format(string, sizeof(string), \"***PM: %s To %s: %s\", string, recievername, text); for (new a = 0; a < MAX_PLAYERS; a++) if (IsPlayerConnected(a) && (PlayerInfo[a][Level] >= ServerInfo[MaxAdminLevel]) && a != playerid) SendClientMessage(a, grey, string); } if(PlayerInfo[playerid][Muted] == 1) { new string[128]; PlayerInfo[playerid][MuteWarnings]++; if(PlayerInfo[playerid][MuteWarnings] < ServerInfo[MaxMuteWarnings]) { format(string, sizeof(string),\"Figyelem: Te most lelettél némitva ha még is írsz akkor kickelve leszel (Figyelmeztetések: %d/%d)\", PlayerInfo[playerid][MuteWarnings], ServerInfo[MaxMuteWarnings] ); SendClientMessage(playerid,red,string); } else { SendClientMessage(playerid,red,\"Figyelmeztetve lettél most kirúg a szerver!\"); GetPlayerName(playerid, string, sizeof(string)); format(string, sizeof(string),\"%s [iD %d] kirúgta a szerver írt miközbe némítva volt!\", string, playerid); SendClientMessageToAll(grey,string); SaveToFile(\"KickLog\",string); Kick(playerid); } return 0; } return 1; } forward HighLight(playerid); public HighLight(playerid) { if(!IsPlayerConnected(playerid)) return 1; if(PlayerInfo[playerid][blipS] == 0) { SetPlayerColor(playerid, 0xFF0000AA); PlayerInfo[playerid][blipS] = 1; } else { SetPlayerColor(playerid, 0x33FF33AA); PlayerInfo[playerid][blipS] = 0; } return 0; } //===================== [ DCMD Commands ]======================================= dcmd_giveweapon(playerid,params[]) { if(PlayerInfo[playerid][Level] >= 2) { new tmp[256], tmp2[256], tmp3[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index), tmp3 = strtok(params,Index); if(!strlen(tmp) || !strlen(tmp2)) return SendClientMessage(playerid, red, \"Használat: /giveweapon [playerid] [fegyver id/fegyver név] [töltény]\"); new player1 = strval(tmp), weap, ammo, WeapName[32], string[128]; if(!strlen(tmp3) || !IsNumeric(tmp3) || strval(tmp3) <= 0 || strval(tmp3) > 99999) ammo = 500; else ammo = strval(tmp3); if(!IsNumeric(tmp2)) weap = GetWeaponIDFromName(tmp2); else weap = strval(tmp2); if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) { if(!IsValidWeapon(weap)) return SendClientMessage(playerid,red,\"HIBA: rossz fegyver ID\"); CMDMessageToAdmins(playerid,\"GIVEWEAPON\"); GetWeaponName(weap,WeapName,32); format(string, sizeof(string), \"Te adtál \\\"%s\\\" nak %s (%d)-t lõszerrel\", PlayerName2(player1), WeapName, weap, ammo); SendClientMessage(playerid,blue,string); if(player1 != playerid) { format(string,sizeof(string),\"Adminisztrátor \\\"%s\\\" adott egy %s (%d)-t lõszerrel\", PlayerName2(playerid), WeapName, weap, ammo); SendClientMessage(player1,blue,string); } return GivePlayerWeapon(player1, weap, ammo); } else return SendClientMessage(playerid,red,\"HIBA: Ilyen játékos nem létezik\"); } else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 2-es szintû adminnak kéne lenned!\"); } dcmd_sethealth(playerid,params[]) { if(PlayerInfo[playerid][Level] >= 3) { new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index); if(!strlen(tmp) || !strlen(tmp2) || !IsNumeric(tmp2)) return SendClientMessage(playerid, red, \"Használat: /sethealth [playerid] [életerõ]\"); if(strval(tmp2) < 0 || strval(tmp2) > 100 && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid, red, \"HIBA: rossz életszám\"); new player1 = strval(tmp), health = strval(tmp2), string[128]; if(PlayerInfo[player1][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,\"HIBA: Ezt a parancsot te nem használhatod magasabb szintû admin ellen\"); if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) { CMDMessageToAdmins(playerid,\"SETHEALTH\"); format(string, sizeof(string), \"Te átállítottad \\\"%s\'s\\\"-nak az életét \'%d-ra\", pName(player1), health); SendClientMessage(playerid,blue,string); if(player1 != playerid) { format(string,sizeof(string),\"Adminisztrátor \\\"%s\\\" átállította az életed \'%d\'-ra\", pName(playerid), health); SendClientMessage(player1,blue,string); } return SetPlayerHealth(player1, health); } else return SendClientMessage(playerid,red,\"HIBA: Ilyen játékos nem létezik\"); } else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 3-as szintû adminnak kéne lenned!\"); } dcmd_setarmour(playerid,params[]) { if(PlayerInfo[playerid][Level] >= 3) { new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index); if(!strlen(tmp) || !strlen(tmp2) || !IsNumeric(tmp2)) return SendClientMessage(playerid, red, \"Használat: /setarmour [playerid] [páncél]\"); if(strval(tmp2) < 0 || strval(tmp2) > 100 && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid, red, \"HIBA: rossz páncélszám\"); new player1 = strval(tmp), armour = strval(tmp2), string[128]; if(PlayerInfo[player1][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,\"HIBA: Ezt a parancsot te nem használhatod magasabb szintû admin ellen\"); if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) { CMDMessageToAdmins(playerid,\"SETARMOUR\"); format(string, sizeof(string), \"Te átállítottad \\\"%s\'s\\\"-nak a páncélját \'%d-ra\", pName(player1), armour); SendClientMessage(playerid,blue,string); if(player1 != playerid) { format(string,sizeof(string),\"Adminisztrátor \\\"%s\\\" átállította a páncélod \'%d\'-ra\", pName(playerid), armour); SendClientMessage(player1,blue,string); } return SetPlayerArmour(player1, armour); } else return SendClientMessage(playerid,red,\"HIBA: Ilyen játékos nem létezik\"); } else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 3-as szintû adminnak kéne lenned!\"); } dcmd_setcash(playerid,params[]) { if(PlayerInfo[playerid][Level] >= 3) { new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index); if(!strlen(tmp) || !strlen(tmp2) || !IsNumeric(tmp2)) return SendClientMessage(playerid, red, \"Használat: /setcash [playerid] [összeg]\"); new player1 = strval(tmp), cash = strval(tmp2), string[128]; if(PlayerInfo[player1][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,\"HIBA: Ezt a parancsot te nem használhatod magasabb szintû admin ellen\"); if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) { CMDMessageToAdmins(playerid,\"SETCASH\"); format(string, sizeof(string), \"Te átállítottad \\\"%s\'s\\\"-nak a pénzét \'$%d-re\", pName(player1), cash); SendClientMessage(playerid,blue,string); if(player1 != playerid) { format(string,sizeof(string),\"Adminisztrátor \\\"%s\\\" átállította a pénzed \'$%d\'-ra\", pName(playerid), cash); SendClientMessage(player1,blue,string); } ResetPlayerMoney(player1); return GivePlayerMoney(player1, cash); } else return SendClientMessage(playerid,red,\"HIBA: Ilyen játékos nem létezik\"); } else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 3-as szintû adminnak kéne lenned!\"); } dcmd_setscore(playerid,params[]) { if(PlayerInfo[playerid][Level] >= 3) { new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index); if(!strlen(tmp) || !strlen(tmp2) || !IsNumeric(tmp2)) return SendClientMessage(playerid, red, \"Használat: /setscore [playerid] [pontok]\"); new player1 = strval(tmp), score = strval(tmp2), string[128]; if(PlayerInfo[player1][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,\"HIBA: Ezt a parancsot te nem használhatod magasabb szintû admin ellen\"); if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) { CMDMessageToAdmins(playerid,\"SETSCORE\"); format(string, sizeof(string), \"Te átállítottad \\\"%s\'s\\\"-nak a pontját \'%d\'-ra\", pName(player1), score); SendClientMessage(playerid,blue,string); if(player1 != playerid) { format(string,sizeof(string),\"Adminisztrátor \\\"%s\\\" átállította pontjaidat \'%d\'-ra\", pName(playerid), score); SendClientMessage(player1,blue,string); } return SetPlayerScore(player1, score); } else return SendClientMessage(playerid,red,\"HIBA: Ilyen játékos nem létezik\"); } else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 3-as szintû adminnak kéne lenned!\"); } dcmd_setskin(playerid,params[]) { if(PlayerInfo[playerid][Level] >= 3) { new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index); if(!strlen(tmp) || !strlen(tmp2) || !IsNumeric(tmp2)) return SendClientMessage(playerid, red, \"Használat: /setskin [playerid] [skin id]\"); new player1 = strval(tmp), skin = strval(tmp2), string[128]; if(!IsValidSkin(skin)) return SendClientMessage(playerid, red, \"HIBA: rossz skin id\"); if(PlayerInfo[player1][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,\"HIBA: Ezt a parancsot te nem használhatod magasabb szintû admin ellen\"); if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) { CMDMessageToAdmins(playerid,\"SETSKIN\"); format(string, sizeof(string), \"Te átállítottad \\\"%s\'s\\\"-nek a skinjét \'%d-ra\", pName(player1), skin); SendClientMessage(playerid,blue,string); if(player1 != playerid) { format(string,sizeof(string),\"Adminisztrátor \\\"%s\\\" átállította skined \'%d\'-re\", pName(playerid), skin); SendClientMessage(player1,blue,string); } return SetPlayerSkin(player1, skin); } else return SendClientMessage(playerid,red,\"HIBA: Ilyen játékos nem létezik\"); } else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 3-as szintû adminnak kéne lenned!\"); } dcmd_setwanted(playerid,params[]) { if(PlayerInfo[playerid][Level] >= 3) { new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index); if(!strlen(tmp) || !strlen(tmp2) || !IsNumeric(tmp2)) return SendClientMessage(playerid, red, \"Használat: /setwanted [playerid] [körözési szint]\"); new player1 = strval(tmp), wanted = strval(tmp2), string[128]; // if(wanted > 6) return SendClientMessage(playerid, red, \"HIBA: Rossz körözési szint\"); if(PlayerInfo[player1][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,\"HIBA: Ezt a parancsot te nem használhatod magasabb szintû admin ellen\"); if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) { CMDMessageToAdmins(playerid,\"SETWANTED\"); format(string, sizeof(string), \"Te átállítottad \\\"%s\'s\\\" a körözési szintjét \'%d-re\", pName(player1), wanted); SendClientMessage(playerid,blue,string); if(player1 != playerid) { format(string,sizeof(string),\"Administrator \\\"%s\\\" átállította a körözési szinted \'%d\'-re\", pName(playerid), wanted); SendClientMessage(player1,blue,string); } return SetPlayerWantedLevel(player1, wanted); } else return SendClientMessage(playerid,red,\"HIBA: Ilyen játékos nem létezik\"); } else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 3-as szintû adminnak kéne lenned!\"); } dcmd_setname(playerid,params[]) { if(PlayerInfo[playerid][Level] >= 3 || IsPlayerAdmin(playerid)) { new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index); if(!strlen(tmp) || !strlen(tmp2)) return SendClientMessage(playerid, red, \"Használat: /setname [playerid] [új név]\"); new player1 = strval(tmp), length = strlen(tmp2), string[128]; if(length < 3 || length > MAX_PLAYER_NAME) return SendClientMessage(playerid,red,\"Hiba: rosz név nagyság\"); if(PlayerInfo[player1][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,\"HIBA: Ezt a parancsot te nem használhatod magasabb szintû admin ellen\"); if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) { CMDMessageToAdmins(playerid,\"SETNAME\"); format(string, sizeof(string), \"Te átállítotatd \\\"%s\'s\\\" a nevét \\\"%s\\\"-re\", pName(player1), tmp2); SendClientMessage(playerid,blue,string); if(player1 != playerid) { format(string,sizeof(string),\"Adminisztrátor \\\"%s\\\" átállította a neved \\\"%s\\\"-re \", pName(playerid), tmp2); SendClientMessage(player1,blue,string); } SetPlayerName(player1, tmp2); return OnPlayerConnect(player1); } else return SendClientMessage(playerid,red,\"HIBA: Ilyen játékos nem létezik\"); } else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 3-as szintû adminnak kéne lenned!\"); } dcmd_setcolour(playerid,params[]) { if(PlayerInfo[playerid][Level] >= 2) { new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index); if(!strlen(tmp) || !strlen(tmp2) || !IsNumeric(tmp2)) { SendClientMessage(playerid, red, \"Használat: /setcolour [playerid] [szín]\"); return SendClientMessage(playerid, red, \"Színek: 0=fekete 1=fehér 2=piros 3=narancs 4=sárga 5=zöld 6=kék 7=lila 8=barna 9=rózsaszin\"); } new player1 = strval(tmp), Colour = strval(tmp2), string[128], colour[24]; if(Colour > 9) return SendClientMessage(playerid, red, \"Színek: 0=fekete 1=fehér 2=piros 3=narancs 4=sárga 5=zöld 6=kék 7=lila 8=barna 9=rózsaszin\"); if(PlayerInfo[player1][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,\"HIBA: Ezt a parancsot te nem használhatod magasabb szintû admin ellen\"); if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) { CMDMessageToAdmins(playerid,\"SETCOLOUR\"); switch (Colour) { case 0: { SetPlayerColor(player1,black); colour = \"fekete\"; } case 1: { SetPlayerColor(player1,COLOR_WHITE); colour = \"fehér\"; } case 2: { SetPlayerColor(player1,red); colour = \"piros\"; } case 3: { SetPlayerColor(player1,orange); colour = \"narancs\"; } case 4: { SetPlayerColor(player1,orange); colour = \"sárga\"; } case 5: { SetPlayerColor(player1,COLOR_GREEN1); colour = \"zöld\"; } case 6: { SetPlayerColor(player1,COLOR_BLUE); colour = \"Blue\"; } case 7: { SetPlayerColor(player1,COLOR_PURPLE); colour = \"lila\"; } case 8: { SetPlayerColor(player1,COLOR_BROWN); colour = \"barna\"; } case 9: { SetPlayerColor(player1,COLOR_PINK); colour = \"rózsaszín\"; } } if(player1 != playerid) { format(string,sizeof(string),\"Adminisztrátor \\\"%s\\\" átállította a szined \'%s\'-re \", pName(playerid), colour); SendClientMessage(player1,blue,string); } format(string, sizeof(string), \"Te átállítottad \\\"%s\'s\\\" a szinét \'%s\'-re \", pName(player1), colour); return SendClientMessage(playerid,blue,string); } else return SendClientMessage(playerid,red,\"HIBA: Ilyen játékos nem létezik\"); } else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 2-es szintû adminnak kéne lenned!\"); } dcmd_setweather(playerid,params[]) { if(PlayerInfo[playerid][Level] >= 3) { new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index); if(!strlen(tmp) || !strlen(tmp2) || !IsNumeric(tmp2)) return SendClientMessage(playerid, red, \"Használat: /setweather [playerid] [idõjárás id]\"); new player1 = strval(tmp), weather = strval(tmp2), string[128]; if(PlayerInfo[player1][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,\"HIBA: Ezt a parancsot te nem használhatod magasabb szintû admin ellen\"); if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) { CMDMessageToAdmins(playerid,\"SETWEATHER\"); format(string, sizeof(string), \"Te átállítottad \\\"%s\'s\\\"-nek az idõjárását \'%d-ra\", pName(player1), weather); SendClientMessage(playerid,blue,string); if(player1 != playerid) { format(string,sizeof(string),\"Adminisztrátor \\\"%s\\\" átállította az idõjárásod \'%d\'-ra\", pName(playerid), weather); SendClientMessage(player1,blue,string); } SetPlayerWeather(player1,weather); PlayerPlaySound(player1,1057,0.0,0.0,0.0); return PlayerPlaySound(playerid,1057,0.0,0.0,0.0); } else return SendClientMessage(playerid,red,\"HIBA: Ilyen játékos nem létezik\"); } else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 3-as szintû adminnak kéne lenned!\"); } dcmd_settime(playerid,params[]) { if(PlayerInfo[playerid][Level] >= 3) { new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index); if(!strlen(tmp) || !strlen(tmp2) || !IsNumeric(tmp2)) return SendClientMessage(playerid, red, \"Használat: /settime [playerid] [óra]\"); new player1 = strval(tmp), time = strval(tmp2), string[128]; if(PlayerInfo[player1][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,\"HIBA: Ezt a parancsot te nem használhatod magasabb szintû admin ellen\"); if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) { CMDMessageToAdmins(playerid,\"SETTIME\"); format(string, sizeof(string), \"Te átállítottad \\\"%s\'s\\\"-nak az idejét %d:00-ra\", pName(player1), time); SendClientMessage(playerid,blue,string); if(player1 != playerid) { format(string,sizeof(string),\"Adminisztrátor \\\"%s\\\" átállította az idõdet to %d:00-ra\", pName(playerid), time); SendClientMessage(player1,blue,string); } PlayerPlaySound(player1,1057,0.0,0.0,0.0); return SetPlayerTime(player1, time, 0); } else return SendClientMessage(playerid,red,\"HIBA: Ilyen játékos nem létezik\"); } else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 3-as szintû adminnak kéne lenned!\"); } dcmd_setworld(playerid,params[]) { if(PlayerInfo[playerid][Level] >= 3) { new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index); if(!strlen(tmp) || !strlen(tmp2) || !IsNumeric(tmp2)) return SendClientMessage(playerid, red, \"Használat: /setworld [playerid] [virtual world]\"); new player1 = strval(tmp), time = strval(tmp2), string[128]; if(PlayerInfo[player1][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,\"HIBA: Ezt a parancsot te nem használhatod magasabb szintû admin ellen\"); if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) { CMDMessageToAdmins(playerid,\"SETWORLD\"); format(string, sizeof(string), \"Te átállítottad \\\"%s\'s\\\"-nek a virtuális világját \'%d\'-ra\", pName(player1), time); SendClientMessage(playerid,blue,string); if(player1 != playerid) { format(string,sizeof(string),\"Adminisztrátor \\\"%s\\\" átállította a viruális világodat \'%d\'-ra \", pName(playerid), time); SendClientMessage(player1,blue,string); } PlayerPlaySound(player1,1057,0.0,0.0,0.0); return SetPlayerVirtualWorld(player1, time); } else return SendClientMessage(playerid,red,\"HIBA: Ilyen játékos nem létezik\"); } else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 3-as szintû adminnak kéne lenned!\"); } dcmd_setinterior(playerid,params[]) { if(PlayerInfo[playerid][Level] >= 3) { new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index); if(!strlen(tmp) || !strlen(tmp2) || !IsNumeric(tmp2)) return SendClientMessage(playerid, red, \"Használat: /setinterior [playerid] [interior]\"); new player1 = strval(tmp), time = strval(tmp2), string[128]; if(PlayerInfo[player1][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,\"HIBA: Ezt a parancsot te nem használhatod magasabb szintû admin ellen!\"); if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) { CMDMessageToAdmins(playerid,\"SETINTERIOR\"); format(string, sizeof(string), \"Te átállítottad \\\"%s\'s\\\"-nak az interiorát \'%d\'-ra \", pName(player1), time); SendClientMessage(playerid,blue,string); if(player1 != playerid) { format(string,sizeof(string),\"Adminisztrátor \\\"%s\\\" átállította az interiorod \'%d\'-ra \", pName(playerid), time); SendClientMessage(player1,blue,string); } PlayerPlaySound(player1,1057,0.0,0.0,0.0); return SetPlayerInterior(player1, time); } else return SendClientMessage(playerid,red,\"HIBA: Ilyen játékos nem létezik\"); } else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 3-as szintû adminnak kéne lenned!\"); } dcmd_setmytime(playerid,params[]) { if(PlayerInfo[playerid][Level] >= 1) { if(!strlen(params)) return SendClientMessage(playerid, red, \"Használat: /setmytime [óra]\"); new time = strval(params), string[128]; CMDMessageToAdmins(playerid,\"SETMYTIME\"); format(string,sizeof(string),\"Beállíottad az idõdet %d:00\", time); SendClientMessage(playerid,blue,string); return SetPlayerTime(playerid, time, 0); } else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 1-es szintû adminnak kéne lenned!\"); } d
216
« Dátum: 2012. július 20. - 15:15:39 »
Üdv a fórumon
Ezzel egy kicsit elkéstél, én nem most érkeztem csak frissítettem a Bemutatkozást :laugh:
217
« Dátum: 2012. július 20. - 15:14:36 »
ezt vedd ki: gPlayerCitySelection[playerid] = -1; gPlayerHasCitySelected[playerid] = 0; gPlayerLastCitySelectionTick[playerid] = GetTickCount();
warning 203: symbol is never used: \"gArmySpawns\"
warning 203: symbol is never used: \"gMedicalSpawns\"
warning 203: symbol is never used: \"lastanimid\"
warning 203: symbol is never used: \"thisanimid\"
[/quote] Ezek azért vannak, mert nem használod a változókat.
218
« Dátum: 2012. július 20. - 14:03:15 »
Filterscriptben?
219
« Dátum: 2012. július 20. - 12:27:22 »
Angol
220
« Dátum: 2012. július 20. - 12:24:42 »
Én úgy vagyok vele, hogy elõször letöltöm és, ha megtetszik az adott játék és van neki multiplayer része akkor megveszem, de általában Steamen szoktam vásárolni. Mostani Steames játékaim - Counter Strike 1.6 - Left4Dead 2 - Counter Strike Condition Zero - És még egyéb kisebb játék ami egy packban volt. És még majd meg akarom venni a Counter Strike Sourcet.
221
« Dátum: 2012. július 19. - 23:51:26 »
Muszáj a fél oldalt beidézni?
Igen.
222
« Dátum: 2012. július 19. - 23:44:38 »
Ebben Minden hiba. #include <a_samp> #define DIALOG_2 (2) public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_2) { if(response == 1) { switch(listitem) { case 0: SendClientMessage(playerid,-1,\"Kiválasztottad a Valami1-et!\"); case 1: SendClientMessage(playerid,-1,\"Kiválasztottad a Valami2-et!\"); case 2: SendClientMessage(playerid,-1,\"Kiválasztottad a Valami3-et!\"); } } } return 1; }
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(\"/clan\", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid, DIALOG_2, DIALOG_STYLE_LIST, \"asd\",\"Valami 1\\nValami2\\nValami3\",\"Rendben\",\"Mégse\"); return 1; } return 1; }
223
« Dátum: 2012. július 19. - 21:06:32 »
Töröld ezeket: Float:x,Float:y,Float:z
224
« Dátum: 2012. július 19. - 21:04:40 »
Gábor mindig így adja meg a változók neveit.
És minden változónak ugyan olyan nevet is ad?? :laugh:
225
« Dátum: 2012. július 19. - 21:03:58 »
Szép munka, tetszik
Köszi.
Oldalak: 1 ... 13 14 [15] 16 17 ... 104
|