Szerző Téma: Ladmin4v2 /flip parancs mindenkinek + /car parancs hiba  (Megtekintve 1133 alkalommal)

Ladmin4v2 /flip parancs mindenkinek + /car parancs hiba
« Dátum: 2012. augusztus 05. - 01:41:00 »
0 Show voters
Hali
Elösször leírom mi is lenne aza /car parancs hiba..
Hát mikor beirom hogy /car elegy (PL) akkor lehozza.. és ha meginnt beirom /car sultan (PL) akkor eltûnik az elegy ugyebár.. De vanmikor nem tûnik el :S mi a probléma?
Ebbe kéne átírni hogy mindenki tudja használni a /flip parancsot
 
 #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) Kifagyott a szerverrõl (Nem fizette be a netet)\", 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) Ki lett dobva 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
  • [specID] == playerid)

               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
  • [specID] == playerid)

       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\")

 
[mod]CODE tagek használata kötelezõ[/mod]
« Utoljára szerkesztve: 2012. augusztus 05. - 09:49:57 írta kadaradam »

Nem elérhető Szilard

  • Adminisztrátor
  • 1832
    • Profil megtekintése
Ladmin4v2 /flip parancs mindenkinek + /car parancs hiba
« Válasz #1 Dátum: 2012. augusztus 05. - 14:55:07 »
0 Show voters
Csak én nem látom ebben a /flip és a /car parancsot?

Ladmin4v2 /flip parancs mindenkinek + /car parancs hiba
« Válasz #2 Dátum: 2012. augusztus 05. - 16:45:35 »
0 Show voters
Idézetet írta: Szilard00 date=1344171307\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"25543\" data-ipsquote-contentclass=\"forums_Topic
Csak én nem látom ebben a /flip és a /car parancsot?
 
Én sem, és azért, mert túl hosszú, és a felét levette az SMF  :whistle:

Ladmin4v2 /flip parancs mindenkinek + /car parancs hiba
« Válasz #3 Dátum: 2012. augusztus 05. - 17:59:42 »
0 Show voters
Nem tudtok esetleg felrakni egy ladmin4v2 amiben ez megvan oldva ?:S

Nem elérhető Szilard

  • Adminisztrátor
  • 1832
    • Profil megtekintése
Ladmin4v2 /flip parancs mindenkinek + /car parancs hiba
« Válasz #4 Dátum: 2012. augusztus 05. - 21:31:35 »
0 Show voters
Idézetet írta: TengeriMalac date=1344177935\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"25543\" data-ipsquote-contentclass=\"forums_Topic


Csak én nem látom ebben a /flip és a /car parancsot?
 
Én sem, és azért, mert túl hosszú, és a felét levette az SMF  :whistle:
 
[/quote]
Gondoltam.
Feltöltenéd pastebin-re, vagy bemásolnád csak a 2 parancsot?

Ladmin4v2 /flip parancs mindenkinek + /car parancs hiba
« Válasz #5 Dátum: 2012. augusztus 06. - 23:34:05 »
0 Show voters
Flip
 
dcmd_flip(playerid,params[]) {
    if(PlayerInfo[playerid][Level] >= 2 || IsPlayerAdmin(playerid)) {
    if(!strlen(params)) {
    if(IsPlayerInAnyVehicle(playerid)) {
   new VehicleID, Float:X, Float:Y, Float:Z, Float:Angle; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid);
   GetVehicleZAngle(VehicleID, Angle);   SetVehiclePos(VehicleID, X, Y, Z); SetVehicleZAngle(VehicleID, Angle); SetVehicleHealth(VehicleID,1000.0);
   CMDMessageToAdmins(playerid,\"FLIP\"); return SendClientMessage(playerid, blue,\"Kocsid helyreálitva ha mást is akarsz /flip [playerid]\");
   } else return SendClientMessage(playerid,red,\"HIBA: nem vagy kocsiba. Ha mást akarsz helyreállítani /flip [playerid]\");
}
    new player1, playername[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME], string[128];
    player1 = strval(params);
    if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID && player1 != playerid) {
   CMDMessageToAdmins(playerid,\"FLIP\");
   if (IsPlayerInAnyVehicle(player1)) {
      new VehicleID, Float:X, Float:Y, Float:Z, Float:Angle; GetPlayerPos(player1, X, Y, Z); VehicleID = GetPlayerVehicleID(player1);
      GetVehicleZAngle(VehicleID, Angle);   SetVehiclePos(VehicleID, X, Y, Z); SetVehicleZAngle(VehicleID, Angle); SetVehicleHealth(VehicleID,1000.0);
      CMDMessageToAdmins(playerid,\"FLIP\");
      GetPlayerName(player1, playername, sizeof(playername));      GetPlayerName(playerid, adminname, sizeof(adminname));
      format(string,sizeof(string),\"Adminisztrátor %s helyreállította a kocsid\",adminname); SendClientMessage(player1,blue,string);
      format(string,sizeof(string),\"Te helyreállítottad %s\'s-nak a jármûvét\", playername);
      return SendClientMessage(playerid, blue,string);
   } else return SendClientMessage(playerid,red,\"HIBA: a játékos nem ül jármûben\");
} else return SendClientMessage(playerid, red, \"Játékos nincs csatlakozva vagy magadat akartad\");
} else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 2-es szintû adminnak kéne lenned!\");
}

 
Car
 
dcmd_flip(playerid,params[]) {
    if(PlayerInfo[playerid][Level] >= 2 || IsPlayerAdmin(playerid)) {
    if(!strlen(params)) {
    if(IsPlayerInAnyVehicle(playerid)) {
   new VehicleID, Float:X, Float:Y, Float:Z, Float:Angle; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid);
   GetVehicleZAngle(VehicleID, Angle);   SetVehiclePos(VehicleID, X, Y, Z); SetVehicleZAngle(VehicleID, Angle); SetVehicleHealth(VehicleID,1000.0);
   CMDMessageToAdmins(playerid,\"FLIP\"); return SendClientMessage(playerid, blue,\"Kocsid helyreálitva ha mást is akarsz /flip [playerid]\");
   } else return SendClientMessage(playerid,red,\"HIBA: nem vagy kocsiba. Ha mást akarsz helyreállítani /flip [playerid]\");
}
    new player1, playername[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME], string[128];
    player1 = strval(params);
    if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID && player1 != playerid) {
   CMDMessageToAdmins(playerid,\"FLIP\");
   if (IsPlayerInAnyVehicle(player1)) {
      new VehicleID, Float:X, Float:Y, Float:Z, Float:Angle; GetPlayerPos(player1, X, Y, Z); VehicleID = GetPlayerVehicleID(player1);
      GetVehicleZAngle(VehicleID, Angle);   SetVehiclePos(VehicleID, X, Y, Z); SetVehicleZAngle(VehicleID, Angle); SetVehicleHealth(VehicleID,1000.0);
      CMDMessageToAdmins(playerid,\"FLIP\");
      GetPlayerName(player1, playername, sizeof(playername));      GetPlayerName(playerid, adminname, sizeof(adminname));
      format(string,sizeof(string),\"Adminisztrátor %s helyreállította a kocsid\",adminname); SendClientMessage(player1,blue,string);
      format(string,sizeof(string),\"Te helyreállítottad %s\'s-nak a jármûvét\", playername);
      return SendClientMessage(playerid, blue,string);
   } else return SendClientMessage(playerid,red,\"HIBA: a játékos nem ül jármûben\");
} else return SendClientMessage(playerid, red, \"Játékos nincs csatlakozva vagy magadat akartad\");
} else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 2-es szintû adminnak kéne lenned!\");
}

Nem elérhető Szilard

  • Adminisztrátor
  • 1832
    • Profil megtekintése
Ladmin4v2 /flip parancs mindenkinek + /car parancs hiba
« Válasz #6 Dátum: 2012. augusztus 07. - 07:33:19 »
+1 Show voters

Nem elérhető Benceee

  • 4785
    • Profil megtekintése
Ladmin4v2 /flip parancs mindenkinek + /car parancs hiba
« Válasz #7 Dátum: 2012. augusztus 07. - 07:34:38 »
+1 Show voters
Idézetet írta: siklosikrisz date=1344288845\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"25543\" data-ipsquote-contentclass=\"forums_Topic
Flip
 
dcmd_flip(playerid,params[]) {
    if(PlayerInfo[playerid][Level] >= 2 || IsPlayerAdmin(playerid)) {
    if(!strlen(params)) {
    if(IsPlayerInAnyVehicle(playerid)) {
   new VehicleID, Float:X, Float:Y, Float:Z, Float:Angle; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid);
   GetVehicleZAngle(VehicleID, Angle);   SetVehiclePos(VehicleID, X, Y, Z); SetVehicleZAngle(VehicleID, Angle); SetVehicleHealth(VehicleID,1000.0);
   CMDMessageToAdmins(playerid,\"FLIP\"); return SendClientMessage(playerid, blue,\"Kocsid helyreálitva ha mást is akarsz /flip [playerid]\");
   } else return SendClientMessage(playerid,red,\"HIBA: nem vagy kocsiba. Ha mást akarsz helyreállítani /flip [playerid]\");
}
    new player1, playername[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME], string[128];
    player1 = strval(params);
    if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID && player1 != playerid) {
   CMDMessageToAdmins(playerid,\"FLIP\");
   if (IsPlayerInAnyVehicle(player1)) {
      new VehicleID, Float:X, Float:Y, Float:Z, Float:Angle; GetPlayerPos(player1, X, Y, Z); VehicleID = GetPlayerVehicleID(player1);
      GetVehicleZAngle(VehicleID, Angle);   SetVehiclePos(VehicleID, X, Y, Z); SetVehicleZAngle(VehicleID, Angle); SetVehicleHealth(VehicleID,1000.0);
      CMDMessageToAdmins(playerid,\"FLIP\");
      GetPlayerName(player1, playername, sizeof(playername));      GetPlayerName(playerid, adminname, sizeof(adminname));
      format(string,sizeof(string),\"Adminisztrátor %s helyreállította a kocsid\",adminname); SendClientMessage(player1,blue,string);
      format(string,sizeof(string),\"Te helyreállítottad %s\'s-nak a jármûvét\", playername);
      return SendClientMessage(playerid, blue,string);
   } else return SendClientMessage(playerid,red,\"HIBA: a játékos nem ül jármûben\");
} else return SendClientMessage(playerid, red, \"Játékos nincs csatlakozva vagy magadat akartad\");
} else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 2-es szintû adminnak kéne lenned!\");
}

 
Car
 
dcmd_flip(playerid,params[]) {
    if(PlayerInfo[playerid][Level] >= 2 || IsPlayerAdmin(playerid)) {
    if(!strlen(params)) {
    if(IsPlayerInAnyVehicle(playerid)) {
   new VehicleID, Float:X, Float:Y, Float:Z, Float:Angle; GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid);
   GetVehicleZAngle(VehicleID, Angle);   SetVehiclePos(VehicleID, X, Y, Z); SetVehicleZAngle(VehicleID, Angle); SetVehicleHealth(VehicleID,1000.0);
   CMDMessageToAdmins(playerid,\"FLIP\"); return SendClientMessage(playerid, blue,\"Kocsid helyreálitva ha mást is akarsz /flip [playerid]\");
   } else return SendClientMessage(playerid,red,\"HIBA: nem vagy kocsiba. Ha mást akarsz helyreállítani /flip [playerid]\");
}
    new player1, playername[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME], string[128];
    player1 = strval(params);
    if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID && player1 != playerid) {
   CMDMessageToAdmins(playerid,\"FLIP\");
   if (IsPlayerInAnyVehicle(player1)) {
      new VehicleID, Float:X, Float:Y, Float:Z, Float:Angle; GetPlayerPos(player1, X, Y, Z); VehicleID = GetPlayerVehicleID(player1);
      GetVehicleZAngle(VehicleID, Angle);   SetVehiclePos(VehicleID, X, Y, Z); SetVehicleZAngle(VehicleID, Angle); SetVehicleHealth(VehicleID,1000.0);
      CMDMessageToAdmins(playerid,\"FLIP\");
      GetPlayerName(player1, playername, sizeof(playername));      GetPlayerName(playerid, adminname, sizeof(adminname));
      format(string,sizeof(string),\"Adminisztrátor %s helyreállította a kocsid\",adminname); SendClientMessage(player1,blue,string);
      format(string,sizeof(string),\"Te helyreállítottad %s\'s-nak a jármûvét\", playername);
      return SendClientMessage(playerid, blue,string);
   } else return SendClientMessage(playerid,red,\"HIBA: a játékos nem ül jármûben\");
} else return SendClientMessage(playerid, red, \"Játékos nincs csatlakozva vagy magadat akartad\");
} else return SendClientMessage(playerid,red,\"HIBA: Ehez a parancshoz legalább 2-es szintû adminnak kéne lenned!\");
}

 

A car parancs helyett megint a /flip parancsot másoltad be.

Ladmin4v2 /flip parancs mindenkinek + /car parancs hiba
« Válasz #8 Dátum: 2012. augusztus 07. - 12:10:15 »
0 Show voters
bocs :D xd tém át zárom

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal