Szerző Téma: Alap FreeRoam?!  (Megtekintve 2358 alkalommal)

Alap FreeRoam?!
« Dátum: 2013. március 01. - 20:21:06 »
+3 Show voters
Sziasztok.
Ez a legelsõ modom gondoltam publikálom nyugodtan használjátok fel nekem már csak porosodik a gépemen.
Parancsokat meg találjátok a Modban vagy ha elinditjátok a servert akkor /help ...
Valamiért nem rakja fel a Codeba rendesen néhol ki marad egy TAB.
De innen le tölthetitek rendesen. http://www.solidfiles.com/d/d19e1e4eb3/
Az egész szerver mappát fel töltöttem.  :)
 

////////////////////////////////////////////////////////////////////////////////
//                                                                            //
//                              FreeRoam Mode by: Lockett                     //
//                                                                            //
////////////////////////////////////////////////////////////////////////////////
#include            <    a_samp      >
#include            <   fixchars   >
#include             <   sscanf2      >
#include             <    zcmd      >
#include            <   streamer   >
#include             <    foreach   >
#include             <   YSI\\y_ini   >
 
#include \"../include/gl_common.inc\"
#define radiodialog 1
#define skincseredialog 2
///////////////////////////Drog azonosítók//////////////////////////////////////
#define DROG_NINCS  3
#define DROG_VAN    4
#define DROGY       5
#define DROGN       6
#define DIALOG_FIGHT 7
//////////////////////////////////Checkpoint////////////////////////////////////
new DROGCP, DROGFEL;
////////////////////////////////////***/////////////////////////////////////////
new playing[MAX_PLAYERS]; //Rádió
forward CarRespawn(); // Kocsi Respawn
///////////////////////////////////Színek///////////////////////////////////////
 
#define COLOR_PINK             0xFF66FFAA
#define COLOR_RED             0xFF0000AA
#define COLOR_LIGHTBLUE       0x33CCFFAA
#define COLOR_LIME             0x99FF00AA
#define COLOR_YELLOW          0xFFFF00AA
#define COLOR_WHITE          0xFFFFFFAA
#define COLOR_ORANGE          0xF97804FF
#define COLOR_BLUE             0x33AAFFFF
#define COLOR_GREEN            0x33AA33AA
 
////////////////////////////////////***/////////////////////////////////////////
main()
{
print(\"***********************************\");
print(\"*       Mode v0.1 by Lockett      *\");
print(\"***********************************\");
}
 
public OnGameModeInit()
{
UsePlayerPedAnims();
SetGameModeText(\"v0.1\");
AddPlayerClass(29,-343.6651,1542.7242,75.5625,177.6608,0,0,0,0,0,0);
    SetTimer(\"CarRespawn\", 900000, 1); // 60000 ( 1 min )
////////////////////////////////////Drog/////////////////////////////////////////
    DROGCP = CreateDynamicCP(-1104.8046,-1617.5413,76.3672, 2, -1, -1, -1, 200);
    DROGFEL = CreateDynamicCP(-1074.3137,-1625.3157,76.3672, 2, -1, -1, -1, 200);
///////////////////////////////Kocsik,Mappolás//////////////////////////////////
 
AddStaticVehicle(562,-317.9400,1514.8885,75.0201,0.1458,92,1);       // Elegy Kezdõ
      AddStaticVehicle(475,-330.3975,1514.9534,75.0181,0.2305,36,1);       // Sabre Kezdõ
AddStaticVehicle(411,-324.1790,1515.1188,75.0865,1.2593,92,92);    // Infernus Kezdõ
AddStaticVehicle(522,-348.4968,1519.7211,75.1317,177.3217,0,0);    // NRG Kezdõ
AddStaticVehicle(522,-348.7860,1515.2699,75.1158,356.0487,0,0);    // NRG Kezdõ
AddStaticVehicle(444,-351.0979,1543.7803,75.9338,176.3907,1,1);    // Monster Kezdõ
AddStaticVehicle(541,-314.3450,1541.5317,75.1874,178.6656,0,6);    // Bulett Kezdõ
AddStaticVehicle(562,-333.7443,1535.8164,75.2212,91.0050,86,86);    // Elegy Kezdõ
 
/////////////////////////////////Drog Map///////////////////////////////////////
CreateObject(669, -1075.00, -1618.91, 62.40,   0.00, 0.00, 90.00);
CreateObject(3409, -1068.46, -1626.39, 75.34,   356.86, 0.00, 3.14);
CreateObject(3409, -1068.57, -1631.15, 75.34,   356.86, 0.00, 3.14);
CreateObject(3409, -1068.58, -1621.78, 75.34,   356.86, 0.00, 3.14);
CreateObject(3261, -1052.38, -1622.98, 75.36,   356.86, 0.00, 3.14);
CreateObject(3261, -1074.75, -1625.73, 75.36,   0.00, 0.00, 0.00);
CreateObject(3374, -1099.49, -1621.09, 76.84,   0.00, 0.00, 0.00);
CreateObject(3374, -1099.43, -1625.28, 76.84,   0.00, 0.00, 0.00);
CreateObject(14782, -1117.38, -1615.31, 76.38,   0.00, 0.00, 0.00);
CreateObject(2314, -1099.39, -1614.80, 75.39,   0.00, 0.00, 0.00);
CreateObject(2314, -1102.53, -1614.80, 75.39,   0.00, 0.00, 0.00);
CreateObject(1575, -1101.17, -1614.65, 75.88,   0.00, 0.00, 0.00);
CreateObject(1318, -1096.79, -1615.36, 76.25,   0.00, 0.00, 0.00);
CreateObject(1318, -1077.11, -1624.52, 76.25,   0.00, 0.00, 0.00);
CreateObject(3261, -1074.75, -1628.73, 75.36,   0.00, 0.00, 0.00);
CreateObject(3261, -1074.75, -1631.75, 75.36,   0.00, 0.00, 0.00);
CreateObject(3261, -1074.75, -1634.75, 75.36,   0.00, 0.00, 0.00);
CreateObject(3261, -1074.73, -1622.68, 75.36,   0.00, 0.00, 0.00);
CreateObject(2314, -1105.67, -1614.80, 75.39,   0.00, 0.00, 0.00);
CreateObject(669, -1073.89, -1622.10, 62.40,   0.00, 0.00, 90.00);
CreateObject(669, -1074.11, -1623.08, 62.40,   0.00, 0.00, 90.00);
CreateObject(669, -1074.27, -1624.41, 62.40,   0.00, 0.00, 171.00);
CreateObject(7073, -327.24, 1547.26, 92.73,   0.00, 0.00, -88.00);
CreateObject(1262, -302.21, 1507.33, 76.34,   0.00, 0.00, 0.00);
CreateObject(1214, -302.27, 1507.18, 74.38,   0.00, 0.00, 0.00);
CreateObject(3249, -356.44, 1517.57, 74.58,   0.00, 0.00, 89.44);
CreateObject(7392, -348.03, 1514.25, 85.92,   0.00, 0.00, 0.00);
////////////////////////////////////***/////////////////////////////////////////
return 1;
}
public OnGameModeExit()
{
return 1;
}
////////////////////////////////Kocsi Respawn///////////////////////////////////
public CarRespawn()
{
    for ( new vid = 0; vid < MAX_VEHICLES; vid ++ )
    {
        if ( !IsVehicleOccupied ( vid ) )
        {
            SetVehicleToRespawn ( vid );
        }
    }
    SendClientMessageToAll(COLOR_GREEN,\"[sERVER] Minden használaton kívüli jármû helyre lett állítva\");
    return 1;
}
stock IsVehicleOccupied(vehicleid)
{
   for ( new i = 0; i < MAX_PLAYERS; i++ )
   {
      if ( IsPlayerInVehicle ( i, vehicleid ) ) return 1;
   }
   return 0;
}
////////////////////////////////////***/////////////////////////////////////////
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,0.4886,-239.3074,5.4297);
SetPlayerCameraPos(playerid,0.3394,-243.8046,5.4297);
SetPlayerCameraLookAt(playerid,0.4886,-239.3074,5.4297);
return 1;
}
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, \"Üdvözlöm a Szerveren!\");
    SendClientMessage(playerid, COLOR_LIGHTBLUE, \"Segitségért Használd a /help Parancsot!\");
    SendClientMessage(playerid, COLOR_LIGHTBLUE, \"Jó Szórakozást!\");
    SendClientMessage(playerid, COLOR_ORANGE, \"Jármû Lekéréshez: /v [Jármû Név/ID] [szín 1] [szín 2]\");
    SendClientMessage(playerid, COLOR_ORANGE, \"Skin Cseréléshez Használd Ezt a Parancsot: /skincsere\");
SetPVarInt(playerid, \"Drog\", DROG_NINCS);
SetPVarInt(playerid, \"Felszed\", DROGN);
/////////////////////////////////////Remove/////////////////////////////////////
RemoveBuildingForPlayer(playerid, 16615, -389.7656, 1515.1641, 74.5547, 0.25);
RemoveBuildingForPlayer(playerid, 16137, -389.7656, 1515.1641, 74.5547, 0.25);
////////////////////////////////////***/////////////////////////////////////////
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
SetPVarInt(playerid, \"Drog\", DROG_NINCS);
SetPVarInt(playerid, \"Felszed\", DROGN);
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
/////////////////////////////////Kocsi Javitó///////////////////////////////////
 
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
RepairVehicle(GetPlayerVehicleID(playerid));
return 1;
}
////////////////////////////////////***/////////////////////////////////////////
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
return 0;
}
////////////////////////////////////***/////////////////////////////////////////
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
return 0;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success)
        {
          new strin[128];
            format(strin, sizeof(strin), \"[HIBA]Nincs Ilyen Parancs\", cmdtext);
           SendClientMessage(playerid,COLOR_RED, strin);
       }
        return 1;
    }
public OnPlayerCommandText(playerid, cmdtext[])
{
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
SendClientMessage(playerid, COLOR_BLUE, \"Tuning: /tune\");
SendClientMessage(playerid, COLOR_BLUE, \"Rádió: /radio\");
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
RemoveVehicleComponent(vehicleid, 1010);
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
////////////////////////////////Jármû Lekérõ////////////////////////////////////
new Float: fPos[ 4 ];
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\"
};
 
stock GetVehicleModelIDFromName( vname[] )
{
for( new i = 0; i < sizeof( VehicleNames ); i++ )
{
if ( strfind( VehicleNames[ i ], vname, true) != -1 )
{
    return i + 400;
}
}
return -1;
}
stock IsNumeric( string22[] )
{
for( new i = 0, j = strlen( string22 ); i < j; i++)
{
    if( string22[ i ] > \'9\' || string22[ i ] < \'0\')
    return 0;
}
return 1;
}
CMD:v( playerid, params[] )
{
new
szCarName[ 64 + 1 ],
szCarSpawn[ 70 + 1 ],
iCarID,
iCarColor[ 2 ],
iNowVeh;
 
if( sscanf( params, \"s[64]D(127)D(127)\", szCarName, iCarColor[ 0 ], iCarColor[ 1 ] ) )
return SendClientMessage( playerid, COLOR_BLUE, \"Használat: /v [Jármû Név/ID] [szín 1] [szín 2] )\" );
if( !IsNumeric( szCarName ) )
{
iCarID = GetVehicleModelIDFromName( szCarName );
}
else
{
iCarID = strval( szCarName );
}
if( iCarID < 400 || iCarID > 611 ) return SendClientMessage( playerid, COLOR_RED, \"[HIBA] Hibás jármû ID, vagy név.\" );
if( iCarColor[ 0 ] < 0 || iCarColor[ 0 ] > 256 ) return SendClientMessage( playerid, COLOR_RED, \"[HIBA] Érvénytelen jármû szín ID. ( 1 - 255 )\" );
    if( iCarColor[ 1 ] < 0 || iCarColor[ 1 ] > 256 ) return SendClientMessage( playerid, COLOR_RED, \"[HIBA] Érvénytelen jármû szín ID. ( 1 - 255 )\" );
    if( iCarColor[ 0 ] == 127 ) iCarColor[ 0 ] = random( 126 );
if( iCarColor[ 1 ] == 127 ) iCarColor[ 1 ] = random( 126 );
if( GetPVarInt( playerid, \"SpawnedVehicle\" ) != INVALID_VEHICLE_ID )
{
       DestroyVehicle( GetPVarInt( playerid, \"SpawnedVehicle\" ) );
    }
GetPlayerPos( playerid, fPos[ 0 ], fPos[ 1 ], fPos[ 2 ] );
GetPlayerFacingAngle( playerid, fPos[ 3 ] );
iNowVeh = CreateVehicle( iCarID, fPos[ 0 ], fPos[ 1 ], fPos[ 2 ], fPos[ 3 ], iCarColor[ 0 ], iCarColor[ 1 ], -1 );
SetPVarInt( playerid, \"SpawnedVehicle\", iNowVeh );
LinkVehicleToInterior( iNowVeh, GetPlayerInterior( playerid ) );
SetVehicleVirtualWorld( iNowVeh, GetPlayerVirtualWorld( playerid ) );
    PutPlayerInVehicle( playerid, iNowVeh, 0 );
format( szCarSpawn, sizeof( szCarSpawn ), \"~w~Jármû lerakva! Név: ~r~~h~%s~w~, Model ID: ~r~~h~%d~w~.\", VehicleNames[ iCarID - 400 ], iCarID );
    return 1;
}
///////////////////////////////////***///////////////////////////////////////////
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER || !CheckNitro(GetPlayerVehicleID(playerid))) return false; else   if ((((newkeys & (4)) == (4)) && ((oldkeys & (4)) != (4)))) AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); else if ((((newkeys & (4)) != (4)) && ((oldkeys & (4)) == (4)))) RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1010);
return 1;
}
CheckNitro(vid)
{
    new NoNitro[] = { 522,481,441,468,448,446,513,521,510,430,520,476,463 }; // unknown
for(new e = 0; e < sizeof(NoNitro); e++) if(GetVehicleModel(vid) == NoNitro[e]) return false;
return true;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
////////////////////////////////////Harc Style//////////////////////////////////
    if(dialogid == DIALOG_FIGHT)
    {
        if(response)
        {
                      if(listitem == 0)
                        {
                             SetPlayerFightingStyle(playerid, FIGHT_STYLE_NORMAL);
                                SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Harc Styles Beállítva erre: Normal\");
                        }
                        if(listitem == 1)
                        {
                                SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING);
                                SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Harc Styles Beállítva erre: Boxing\");
                        }
                        if(listitem == 2)
                        {
                                SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD);
                                SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Harc Styles Beállítva erre: KneeHead\");
                        }
                        if(listitem == 4)
                        {
                                SetPlayerFightingStyle(playerid, FIGHT_STYLE_GRABKICK);
                                SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Harc Styles Beállítva erre: GrabKick\");
                        }
                        if(listitem == 5)
                        {
                                SetPlayerFightingStyle(playerid,  FIGHT_STYLE_ELBOW);
                                SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Harc Styles Beállítva erre: Normal Elbow\");
                        }
        }
        return 1;
    }
////////////////////////////////////Rádió///////////////////////////////////////
if(dialogid == radiodialog)
{
if(listitem == 0)
   {
            if(playing[playerid] == 1)
            {
         playing[playerid] = 0;
             SendClientMessage(playerid, COLOR_RED, \"[server] Rádió Leállitva\");
         StopAudioStreamForPlayer(playerid);
            }
            else
         {
            }
   }
if(listitem == 1)
   {
            playing[playerid] = 1;
         SendClientMessage(playerid, COLOR_ORANGE, \"[server] Rádió Elinditva\");
                PlayAudioStreamForPlayer(playerid, \"http://blackbeats.fm/listen.m3u\");
   }
if(listitem == 2)
   {
            playing[playerid] = 1;
                  SendClientMessage(playerid, COLOR_ORANGE, \"[server] Rádió Elinditva\");
           PlayAudioStreamForPlayer(playerid, \"http://lazaradio.hu:8100/mulatos.mp3.m3u\");
   }
if(listitem == 3)
   {
            playing[playerid] = 1;
         SendClientMessage(playerid, COLOR_ORANGE, \"[server] Rádió Elinditva\");
           PlayAudioStreamForPlayer(playerid, \"http://stereofm.hu/inc/balaton_playlist.m3u\");
}
return 1;
}
///////////////////////////////Fegyver Lekérõ///////////////////////////////////
if(dialogid == 1987)
{
if(listitem == 0)
{
if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
GivePlayerWeapon(playerid,22,500);
GivePlayerMoney(playerid,0);
SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Colt tipusú fegyvert\");
}
    if(listitem == 1)
    {
    if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
    GivePlayerWeapon(playerid,23,500);
    GivePlayerMoney(playerid,0);
    SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Silencedet \");
    }
    if(listitem == 2)
    {
    if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
    GivePlayerWeapon(playerid,25,500);
    GivePlayerMoney(playerid,0);
    SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Shotgunt \");
    }
    if(listitem == 3)
    {
    if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
    GivePlayerWeapon(playerid,28,500);
    GivePlayerMoney(playerid,0);
    SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Uzi-t\");
    }
    if(listitem == 4)
    {
    if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
    GivePlayerWeapon(playerid,29,500);
    GivePlayerMoney(playerid,0);
    SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy MP5-öt \");
    }
    if(listitem == 5)
    {
    if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
    GivePlayerWeapon(playerid,30,500);
    GivePlayerMoney(playerid,0);
    SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Ak47-et \");
    }
    if(listitem == 6)
    {
    if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
    GivePlayerWeapon(playerid,31,500);
    GivePlayerMoney(playerid,0);
    SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy M4-et \");
    }
    if(listitem == 7)
    {
    if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
    GivePlayerWeapon(playerid,32,500);
    GivePlayerMoney(playerid,0);
    SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy TEC 9-et\");
    }
    if(listitem == 8)
    {
    if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! ]\");
    GivePlayerWeapon(playerid,33,500);
    GivePlayerMoney(playerid,0);
    SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Riflet\");
    }
    if(listitem == 9)
    {
    if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
    GivePlayerWeapon(playerid,34,500);
    GivePlayerMoney(playerid,0);
    SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Snipert\");
    }
    if(listitem == 10)
    {
    if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
    GivePlayerWeapon(playerid,41,500);
    GivePlayerMoney(playerid,0);
    SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Spray-t \");
    }
    if(listitem == 11)
    {
    if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed!\");
    GivePlayerWeapon(playerid,42,500);
    GivePlayerMoney(playerid,0);
    SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy poroltót \");
    }
    if(listitem == 12)
    {
    if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! []\");
    GivePlayerWeapon(playerid,46,1);
    GivePlayerMoney(playerid,0);
    SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy ejtõernyõt \");
    }
    if(listitem == 13)
    {
    if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
    GivePlayerWeapon(playerid,17,25);
    GivePlayerMoney(playerid,0);
    SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Füst gáz-t\");
    }
    if(listitem == 14)
    {
    if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
    GivePlayerWeapon(playerid,8,1);
    GivePlayerMoney(playerid,0);
    SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Katanát \");
    }
    if(listitem == 15)
    {
    if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed!\");
    GivePlayerWeapon(playerid,18,75);
    GivePlayerMoney(playerid,0);
    SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Molotov koktélt \");
    }
return 1;
}
////////////////////////////////Skincsere///////////////////////////////////////
#pragma tabsize 0
if(dialogid == skincseredialog)
{
if(!response)
{
   SendClientMessage(playerid, COLOR_RED, \"[HIBA]Nem történt skin változtatás!\");
   return 1;
   }
   if(strval(inputtext) >=0)
   {
    if(strval(inputtext) <=299)
    {
        SetPlayerSkin(playerid, strval(inputtext));
    } else
    {
       SendClientMessage(playerid, COLOR_RED, \"[HIBA]Ez a skin ID nem található válassz másikat!\");
    }
   } else
   {
      SendClientMessage(playerid, COLOR_RED, \"[HIBA]Ez a skin ID nem található válassz másikat!\");
   }
}
return 1;
}
/////////////////////////////////////////***////////////////////////////////////
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
////////////////////////////////Teleportok//////////////////////////////////////
CMD:lv(playerid, params[]) {
    if(IsPlayerInAnyVehicle(playerid) == 1) {
    SetPlayerInterior(playerid, 0);
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
    SetVehiclePos(GetPlayerVehicleID(playerid),2326.9124,1395.6553,42.8203);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Las Venturas-ba\");
    SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
    LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
    } else {
    RemovePlayerFromVehicle(playerid);
    SetPlayerPos(playerid,2326.9124,1395.6553,42.8203);
    SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Las Venturas-ba\");
SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    }
    } else {
    SetPlayerPos(playerid,2326.9124,1395.6553,42.8203);
    SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Las Venturas-ba\");
    SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid, 0);
    }
    return 1;
    }
CMD:ls(playerid, params[]) {
    if(IsPlayerInAnyVehicle(playerid) == 1) {
    SetPlayerInterior(playerid, 0);
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
    SetVehiclePos(GetPlayerVehicleID(playerid),2304.1643,-1642.7743,14.5374);
    SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Los Santos-ba\");
SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
    LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
    } else {
    RemovePlayerFromVehicle(playerid);
    SetPlayerPos(playerid,2304.1643,-1642.7743,14.5374);
    SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Los Santos-ba\");
SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    }
    } else {
    SetPlayerPos(playerid,2304.1643,-1642.7743,14.5374);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Los Santos-ba\");
SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid, 0);
    }
    return 1;
    }
CMD:sf(playerid, params[]) {
    if(IsPlayerInAnyVehicle(playerid) == 1) {
    SetPlayerInterior(playerid, 0);
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
    SetVehiclePos(GetPlayerVehicleID(playerid),-1988.2336,178.8083,27.5391);
    SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál San Fiero-ba\");
SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
    LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
    } else {
    RemovePlayerFromVehicle(playerid);
    SetPlayerPos(playerid,-1988.2336,178.8083,27.5391);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál San Fiero-ba\");
SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    }
    } else {
    SetPlayerPos(playerid,-1988.2336,178.8083,27.5391);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál San Fiero-ba\");
    SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid, 0);
    }
    return 1;
    }
CMD:lvair(playerid, params[]) {
    if(IsPlayerInAnyVehicle(playerid) == 1) {
    SetPlayerInterior(playerid, 0);
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
    SetVehiclePos(GetPlayerVehicleID(playerid),1315.9454,1303.0953,10.8203);
    SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Las Venturas-i reptérre\");
SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
    LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
    } else {
    RemovePlayerFromVehicle(playerid);
    SetPlayerPos(playerid,1315.9454,1303.0953,10.8203);
    SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Las Venturas-i reptérre\");
SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    }
    } else {
    SetPlayerPos(playerid,1315.9454,1303.0953,10.8203);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Las Venturas-i reptérre\");
SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid, 0);
    }
    return 1;
    }
CMD:lsair(playerid, params[]) {
    if(IsPlayerInAnyVehicle(playerid) == 1) {
    SetPlayerInterior(playerid, 0);
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
    SetVehiclePos(GetPlayerVehicleID(playerid),1914.9293,-2251.8259,13.5469);
    SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Los Santos-i reptérre\");
SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
    LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
    } else {
    RemovePlayerFromVehicle(playerid);
    SetPlayerPos(playerid,1914.9293,-2251.8259,13.5469);
    SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Los Santos-i reptérre\");
SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    }
    } else {
    SetPlayerPos(playerid,1914.9293,-2251.8259,13.5469);
    SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Los Santos-i reptérre\");
SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid, 0);
    }
    return 1;
    }
CMD:sfair(playerid, params[]) {
    if(IsPlayerInAnyVehicle(playerid) == 1) {
    SetPlayerInterior(playerid, 0);
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
    SetVehiclePos(GetPlayerVehicleID(playerid),-1553.7771,-240.2939,14.1484);
    SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a San Fiero-i reptérre\");
SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
    LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
    } else {
    RemovePlayerFromVehicle(playerid);
    SetPlayerPos(playerid,-1553.7771,-240.2939,14.1484);
    SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a San Fiero-i reptérre\");
SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    }
    } else {
    SetPlayerPos(playerid,-1553.7771,-240.2939,14.1484);
    SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a San Fiero-i reptérre\");
SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid, 0);
    }
    return 1;
    }
CMD:pa(playerid, params[]) {
    if(IsPlayerInAnyVehicle(playerid) == 1) {
    SetPlayerInterior(playerid, 0);
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
    SetVehiclePos(GetPlayerVehicleID(playerid),2408.2493,90.8666,26.4740);
    SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Palomino-ba\");
SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
    LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
    } else {
    RemovePlayerFromVehicle(playerid);
    SetPlayerPos(playerid,2408.2493,90.8666,26.4740);
    SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Palomino-ba\");
SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    }
    } else {
    SetPlayerPos(playerid,2408.2493,90.8666,26.4740);
    SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Palomino-ba\");
    SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid, 0);
    }
    return 1;
    }
CMD:fc(playerid, params[]) {
    if(IsPlayerInAnyVehicle(playerid) == 1) {
    SetPlayerInterior(playerid, 0);
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
    SetVehiclePos(GetPlayerVehicleID(playerid),-197.1303,1212.2777,19.7422);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Fort Carson-ba\");
SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
    LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
    } else {
    RemovePlayerFromVehicle(playerid);
    SetPlayerPos(playerid,-197.1303,1212.2777,19.7422);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Fort Carson-ba\");
    SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    }
    } else {
    SetPlayerPos(playerid,-197.1303,1212.2777,19.7422);
    SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Fort Carson-ba\");
    SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid, 0);
    }
    return 1;
    }
CMD:bb(playerid, params[]) {
    if(IsPlayerInAnyVehicle(playerid) == 1) {
    SetPlayerInterior(playerid, 0);
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
    SetVehiclePos(GetPlayerVehicleID(playerid),214.1872,-146.6117,1.5859);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Blueberry-be\");
SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
    LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
    } else {
    RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Blueberry-be\");
SetPlayerPos(playerid,214.1872,-146.6117,1.5859);
    SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    }
    } else {
    SetPlayerPos(playerid,214.1872,-146.6117,1.5859);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Blueberry-be\");
    SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid, 0);
    }
    return 1;
    }
CMD:kezdohely(playerid, params[]) {
    if(IsPlayerInAnyVehicle(playerid) == 1) {
    SetPlayerInterior(playerid, 0);
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
    SetVehiclePos(GetPlayerVehicleID(playerid),-342.9536,1514.7717,75.3594);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Kezdõhely-re\");
SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
    LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
    } else {
    RemovePlayerFromVehicle(playerid);
    SetPlayerPos(playerid,-342.9536,1514.7717,75.3594);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Kezdõhely-re\");
    SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    }
    } else {
    SetPlayerPos(playerid,-342.9536,1514.7717,75.3594);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Kezdõhely-re\");
    SetPlayerFacingAngle(playerid, 50.8647);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid, 0);
    }
    return 1;
}
 
///////////////////////////////Dialog [HELP..]//////////////////////////////////
 
CMD:help(playerid, params[])
{
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, \"Segitseg\", \"\\n /teleport - Teleportok\\n /parancs [2] - Parancsok\\n\", \"Rendben\", \"\");
    return 1;
}
CMD:teleport(playerid, params[])
{
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, \"Teleportok\", \"/lv /ls /sf /sfair\\n /lsair /pa /bb\\n /lvair /fc /kezdohely \", \"Rendben\", \"\");
    return 1;
}
CMD:parancs(playerid, params[])
{
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, \"Parancsok\", \"/radio /skincsere /fegyver\\n/fight /tune /drogtelep\\n/v [Jármû Név/ID] [szín 1] [szín 2]\", \"Rendben\", \"\");
    return 1;
}
CMD:parancs2(playerid, params[])
{
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, \"Parancsok\", \"Még Nincs Kész!\", \"Rendben\", \"\");
    return 1;
}
 
//////////////////////////////CMD Parancsok/////////////////////////////////////
CMD:skincsere(playerid, params[])
{
   ShowPlayerDialog(playerid, skincseredialog, DIALOG_STYLE_INPUT, \"Skin Valto\", \"Ird be a skin ID-t\", \"Valaszt\", \"Kilep\");
    return 1;
}
CMD:fegyver(playerid, params[])
{
   ShowPlayerDialog(playerid,1987,DIALOG_STYLE_LIST,\"Fegyverek\",\"Colt\\nSilenced\\nShotgun\\nUzi\\nMP5\\nAK47\\nM4\\nTec 9\\nRifle\\nMesterlövész\\nSray\\nPorolto\\nEjtõernyõ\\nFüst gáz\\nKatana\\nMolotov koktél\",\"Megvesz\",\"Kilépés\");
    return 1;
}
CMD:radio(playerid, params[])
{
   ShowPlayerDialog(playerid, radiodialog, DIALOG_STYLE_LIST, \"Rádió\", \"Kikapcsolás\\nLockett FM\\nCigány Rádió\\nRise FM\", \"Valaszt\", \"Kilep\");
   return 1;
}
CMD:fight(playerid, params[])
{
   ShowPlayerDialog(playerid, DIALOG_FIGHT, DIALOG_STYLE_LIST, \"Harc Styles\", \"Normal\\nBoxing\\nKneeHead\\nGrabKick\\nElbow\", \"Kiválaszt\", \"Mégse\");
   return 1;
}
/////////////////////////////////////Drog Parancsok/////////////////////////////
CMD:drogtelep(playerid, params[])
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
          new tmpcar = GetPlayerVehicleID(playerid);
          SetVehiclePos(tmpcar, -1085.9890,-1630.2303,76.3672);
          LinkVehicleToInterior(tmpcar, 0);
          SetPlayerVirtualWorld(playerid, 0);
        }
        else
        {
          SetPlayerPos(playerid, -1085.9890,-1630.2303,76.3672);
        }
        return 1;
    }
CMD:felszed(playerid, params[])
    {
   if(GetPVarInt(playerid, \"Drog\") == DROG_NINCS)
       {
           if(IsPlayerInDynamicCP(playerid, DROGFEL))
           {
      SetPVarInt(playerid, \"Felszed\", DROGY);
      SendClientMessage(playerid, COLOR_GREEN, \"[sERVER]Felszedted a Canabist! Menj a Következõ Checkpointhoz!\");
           }
           else SendClientMessage(playerid, COLOR_RED, \"[HIBA]Nem Vagy a Felszedõ Checkpointban!\");
       }
       else SendClientMessage(playerid, COLOR_RED, \"[HIBA]Van már Canabisod!\");
       return 1;
    }
 
CMD:drogcsinal(playerid, params[])
    {
  if(GetPVarInt(playerid, \"Drog\") == DROG_NINCS)
          {
              if(GetPVarInt(playerid, \"Felszed\") == DROGY)
              {
                if(!IsPlayerInDynamicCP(playerid, DROGCP)) return SendClientMessage(playerid, COLOR_RED, \"[HIBA]Nem Vagy a Checkpointba!\");
      SetPVarInt(playerid, \"Drog\", DROG_VAN);
                TogglePlayerControllable(playerid, 0);
                SetTimerEx(\"drogcsin\",4000,0,\"i\",playerid);
                SetTimerEx(\"drogido\",300000,0,\"i\",playerid);
      SendClientMessage(playerid, COLOR_PINK, \"[sERVER]Drogot Készítesz.....\");
              }
              else SendClientMessage(playerid, COLOR_RED, \"[HIBA]Nem Szedtél Fel Canabist!\");
          }
          else SendClientMessage(playerid, COLOR_PINK, \"[sERVER]Ne Legyél Drogfüggõ, Pár Perc Múlva Újra Csinálhatsz!\");
          return 1;
    }
CMD:besziv(playerid, params[])
    {
   if(GetPVarInt(playerid, \"Drog\") ==  DROG_VAN)
            {
      SetPlayerDrunkLevel(playerid, 50000);
      SetPlayerWeather(playerid, 203);
      SetPVarInt(playerid, \"Drog\", DROG_NINCS);
               SetTimerEx(\"bead\",60000,0,\"i\",playerid);
      SendClientMessage(playerid, COLOR_PINK, \"[sERVER]Most Aztán Szépen Reccsen Vagy! *.*\");
            }
            else SendClientMessage(playerid, COLOR_RED, \"[HIBA]Nincs Drogod!\");
            return 1;
    }
CMD:drogelad(playerid, params[])
    {
        if(GetPVarInt(playerid, \"Drog\") ==  DROG_VAN)
        {
 
              new
                       string[128],
                       name[MAX_PLAYER_NAME],
                       name2[MAX_PLAYER_NAME],
                       PID;
              if(sscanf(params, \"u\", PID)) return SendClientMessage(playerid, COLOR_BLUE, \"Használat: /drogelad <ID/Játékos név>\");
              if(PID == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, \"[HIBA]Rossz ID/Név!\");
  GetPlayerName(playerid, name, MAX_PLAYER_NAME);
  GetPlayerName(PID, name2, MAX_PLAYER_NAME);
          format(string, sizeof(string), \"%s[sERVER] Elakar adni neked drogot $50000-ért, ha megakarod venni, akkor /megvesz <ID>\", name);
          SendClientMessage(PID, COLOR_GREEN, string);
          format(string, sizeof(string), \"[sERVER] Elakarsz adni %s-nak/nek drogot!\", name2);
          SendClientMessage(playerid, COLOR_GREEN, string);
        }
        else SendClientMessage(playerid, COLOR_RED, \"[HIBA]Nincsen drogod!\");
        return 1;
    }
CMD:drogmegvesz(playerid, params[])
    {
        if(GetPVarInt(playerid, \"Drog\") ==  DROG_NINCS)
        {
              new
                       string[128],
                       name[MAX_PLAYER_NAME],
                       name2[MAX_PLAYER_NAME],
                       PID;
              if(sscanf(params, \"u\", PID)) return SendClientMessage(playerid, COLOR_BLUE, \"Használat: /drogmegvesz <ID/Játékos név>\");
              if(PID == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, \"[HIBA]Rossz ID/Név!\");
              if(GetPVarInt(PID, \"Drog\") == DROG_NINCS) return SendClientMessage(playerid, COLOR_RED, \"[HIBA]Nincs drog az illetõnél!\");
              SetPVarInt(playerid, \"Drog\", DROG_VAN);
              SetPVarInt(PID, \"Drog\", DROG_NINCS);
              GivePlayerMoney(playerid, -50000);
              GivePlayerMoney(PID, 50000);
 
              GetPlayerName(playerid,name, MAX_PLAYER_NAME);
              format(string, sizeof(string), \"[sERVER]%s Megvette tõled a drogot!\", name);
              SendClientMessage(PID, COLOR_GREEN, string);
              GetPlayerName(PID, name2, MAX_PLAYER_NAME);
              format(string, sizeof(string), \"[sERVER]%s-tõl/tól Megvetted a drogot!\", name2);
              SendClientMessage(playerid, COLOR_GREEN, string);
        }
        else SendClientMessage(playerid, COLOR_RED, \"[HIBA]Van már drogot!\");
        return 1;
    }
 
public OnPlayerEnterDynamicCP(playerid, checkpointid)
    {
        if(checkpointid == DROGCP) return SendClientMessage(playerid, COLOR_BLUE, \"[sERVER]Ha Drogot Szeretnél Csinálni, Akkor /drogcsinal!\");
        if(checkpointid == DROGFEL) return SendClientMessage(playerid, COLOR_BLUE, \"[sERVER]Ha Felszeretnéd Szedni a Canabist, akkor /felszed \");
        return 1;
    }
 
////////////////// Drog timerekhez kapcsolódó eljárások/////////////////////////
    forward bead(playerid);
    public bead(playerid)
    {
            SetPlayerDrunkLevel(playerid, 0);
          SetPlayerWeather(playerid, 2);
            SendClientMessage(playerid, COLOR_GREEN, \"[sERVER]Már nem vagy beszívva, aztán óvatosan a füvezéssel!\");
        return 1;
    }
    forward drogido(playerid);
    public drogido(playerid)
    {
            SetPVarInt(playerid, \"Drog\", DROG_NINCS);
            SendClientMessage(playerid, COLOR_GREEN, \"[sERVER]Ember, mostmár újra csinálhatsz drogot.\");
        return 1;
    }
    forward drogcsin(playerid);
    public drogcsin(playerid)
    {
        SetPVarInt(playerid, \"Drog\", DROG_VAN);
        TogglePlayerControllable(playerid, 1);
        SendClientMessage(playerid, COLOR_GREEN, \"[sERVER]Csináltál Drogot! Ha eladni akarod, akkor /drogelad, ha elszívni, akkor /besziv!\");
        return 1;
    }
///////////////////////////////////////***//////////////////////////////////////
 
« Utoljára szerkesztve: 2013. március 01. - 20:48:38 írta Lockett »

Alap FreeRoam?!
« Válasz #1 Dátum: 2013. március 01. - 20:31:10 »
0 Show voters
Király a mod tetszik.
De azért képeket rakhatnál ki.
 
Üdvözlöm a Szerveren![/quote]
Ezt ki cseréltem ere: {11BF17}Üdvüzölek a {FF0000}FreeRoam {11BF17}szerveren.

Alap FreeRoam?!
« Válasz #2 Dátum: 2013. március 01. - 20:45:29 »
0 Show voters
Idézetet írta: citromhun date=1362166270\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"34320\" data-ipsquote-contentclass=\"forums_Topic
Király a mod tetszik.
De azért képeket rakhatnál ki.
 
Üdvözlöm a Szerveren!
Ezt ki cseréltem ere: {11BF17}Üdvüzölek a {FF0000}FreeRoam {11BF17}szerveren.
 
[/quote]
Köszönöm. Mindjárt teszek ki képet.

Nem elérhető Suspect

  • 64
  • ♥•M4•♥
    • Profil megtekintése
Alap FreeRoam?!
« Válasz #3 Dátum: 2013. március 02. - 07:26:41 »
0 Show voters
Azt most hogy érted,hogy pár Code hiba van benne?

Alap FreeRoam?!
« Válasz #4 Dátum: 2013. március 02. - 09:12:47 »
0 Show voters
Kód: Pawn [Kijelölés]
        AddPlayerClass(29,-343.6651,1542.7242,75.5625,177.6608,0,0,0,0,0,0);
    SetTimer(\"CarRespawn\", 900000, 1); // 60000 ( 1 min )
[/quote]
[/quote]
Hát igy elvan csúszva de csak itt a forumon ha letöltöd akkor semmi baja.  ;D

Alap FreeRoam?!
« Válasz #5 Dátum: 2013. március 02. - 09:37:58 »
0 Show voters
Kijavítottam a feltûnõ hibákat.
1 error maradt benne, azzal nem tudok mit kezdeni, és
1 warning, mert a YSI egy kalap jóság.
 
////////////////////////////////////////////////////////////////////////////////
//                                                         //
//                       FreeRoam Mode by: Lockett                //
//                                                         //
////////////////////////////////////////////////////////////////////////////////
#include                        <      a_samp       >
#include                        <      fixchars      >
#include                        <      sscanf2       >
#include                        <      zcmd         >
#include                        <      streamer      >
#include                        <      foreach      >
#include                        <      YSI\\y_ini      >
 
//#include \"../include/gl_common.inc\"
#define radiodialog 1
#define skincseredialog 2
///////////////////////////Drog azonosítók//////////////////////////////////////
#define DROG_NINCS  3
#define DROG_VAN   4
#define DROGY      5
#define DROGN      6
#define DIALOG_FIGHT 7
///////////////////////////////////Színek///////////////////////////////////////
#define COLOR_PINK                       0xFF66FFAA
#define COLOR_RED                        0xFF0000AA
#define COLOR_LIGHTBLUE             0x33CCFFAA
#define COLOR_LIME                       0x99FF00AA
#define COLOR_YELLOW               0xFFFF00AA
#define COLOR_WHITE                0xFFFFFFAA
#define COLOR_ORANGE               0xF97804FF
#define COLOR_BLUE                       0x33AAFFFF
#define COLOR_GREEN                      0x33AA33AA
//////////////////////////////////Checkpoint////////////////////////////////////
new DROGCP, DROGFEL;
////////////////////////////////////***/////////////////////////////////////////
new playing[MAX_PLAYERS]; //Rádió
new Float: fPos[ 4 ];
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\"
};
forward CarRespawn(); // Kocsi Respawn
 
////////////////////////////////////***/////////////////////////////////////////
main()
{
print(\"***********************************\");
print(\"*      Mode v0.1 by Lockett     *\");
print(\"***********************************\");
}
 
public OnGameModeInit()
{
UsePlayerPedAnims();
SetGameModeText(\"v0.1\");
AddPlayerClass(29,-343.6651,1542.7242,75.5625,177.6608,0,0,0,0,0,0);
SetTimer(\"CarRespawn\", 900000, 1); // 60000 ( 1 min )
////////////////////////////////////Drog/////////////////////////////////////////
DROGCP = CreateDynamicCP(-1104.8046,-1617.5413,76.3672, 2, -1, -1, -1, 200);
DROGFEL = CreateDynamicCP(-1074.3137,-1625.3157,76.3672, 2, -1, -1, -1, 200);
///////////////////////////////Kocsik,Mappolás//////////////////////////////////
 
AddStaticVehicle(562,-317.9400,1514.8885,75.0201,0.1458,92,1);        // Elegy Kezdõ
AddStaticVehicle(475,-330.3975,1514.9534,75.0181,0.2305,36,1);         // Sabre Kezdõ
AddStaticVehicle(411,-324.1790,1515.1188,75.0865,1.2593,92,92);       // Infernus Kezdõ
AddStaticVehicle(522,-348.4968,1519.7211,75.1317,177.3217,0,0);       // NRG Kezdõ
AddStaticVehicle(522,-348.7860,1515.2699,75.1158,356.0487,0,0);       // NRG Kezdõ
AddStaticVehicle(444,-351.0979,1543.7803,75.9338,176.3907,1,1);       // Monster Kezdõ
AddStaticVehicle(541,-314.3450,1541.5317,75.1874,178.6656,0,6);       // Bulett Kezdõ
AddStaticVehicle(562,-333.7443,1535.8164,75.2212,91.0050,86,86);      // Elegy Kezdõ
 
/////////////////////////////////Drog Map///////////////////////////////////////
CreateObject(669, -1075.00, -1618.91, 62.40,   0.00, 0.00, 90.00);
CreateObject(3409, -1068.46, -1626.39, 75.34,   356.86, 0.00, 3.14);
CreateObject(3409, -1068.57, -1631.15, 75.34,   356.86, 0.00, 3.14);
CreateObject(3409, -1068.58, -1621.78, 75.34,   356.86, 0.00, 3.14);
CreateObject(3261, -1052.38, -1622.98, 75.36,   356.86, 0.00, 3.14);
CreateObject(3261, -1074.75, -1625.73, 75.36,   0.00, 0.00, 0.00);
CreateObject(3374, -1099.49, -1621.09, 76.84,   0.00, 0.00, 0.00);
CreateObject(3374, -1099.43, -1625.28, 76.84,   0.00, 0.00, 0.00);
CreateObject(14782, -1117.38, -1615.31, 76.38,   0.00, 0.00, 0.00);
CreateObject(2314, -1099.39, -1614.80, 75.39,   0.00, 0.00, 0.00);
CreateObject(2314, -1102.53, -1614.80, 75.39,   0.00, 0.00, 0.00);
CreateObject(1575, -1101.17, -1614.65, 75.88,   0.00, 0.00, 0.00);
CreateObject(1318, -1096.79, -1615.36, 76.25,   0.00, 0.00, 0.00);
CreateObject(1318, -1077.11, -1624.52, 76.25,   0.00, 0.00, 0.00);
CreateObject(3261, -1074.75, -1628.73, 75.36,   0.00, 0.00, 0.00);
CreateObject(3261, -1074.75, -1631.75, 75.36,   0.00, 0.00, 0.00);
CreateObject(3261, -1074.75, -1634.75, 75.36,   0.00, 0.00, 0.00);
CreateObject(3261, -1074.73, -1622.68, 75.36,   0.00, 0.00, 0.00);
CreateObject(2314, -1105.67, -1614.80, 75.39,   0.00, 0.00, 0.00);
CreateObject(669, -1073.89, -1622.10, 62.40,   0.00, 0.00, 90.00);
CreateObject(669, -1074.11, -1623.08, 62.40,   0.00, 0.00, 90.00);
CreateObject(669, -1074.27, -1624.41, 62.40,   0.00, 0.00, 171.00);
CreateObject(7073, -327.24, 1547.26, 92.73,   0.00, 0.00, -88.00);
CreateObject(1262, -302.21, 1507.33, 76.34,   0.00, 0.00, 0.00);
CreateObject(1214, -302.27, 1507.18, 74.38,   0.00, 0.00, 0.00);
CreateObject(3249, -356.44, 1517.57, 74.58,   0.00, 0.00, 89.44);
CreateObject(7392, -348.03, 1514.25, 85.92,   0.00, 0.00, 0.00);
////////////////////////////////////***/////////////////////////////////////////
return 1;
}
public OnGameModeExit()
{
return 1;
}
////////////////////////////////Kocsi Respawn///////////////////////////////////
public CarRespawn()
{
for ( new vid = 0; vid < MAX_VEHICLES; vid ++ )
{
if ( !IsVehicleOccupied ( vid ) )
{
   SetVehicleToRespawn ( vid );
}
}
SendClientMessageToAll(COLOR_GREEN,\"[sERVER] Minden használaton kívüli jármû helyre lett állítva\");
return 1;
}
stock IsVehicleOccupied(vehicleid)
{
      for ( new i = 0; i < MAX_PLAYERS; i++ )
      {
if ( IsPlayerInVehicle ( i, vehicleid ) ) return 1;
      }
return 0;
}
////////////////////////////////////***/////////////////////////////////////////
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,0.4886,-239.3074,5.4297);
SetPlayerCameraPos(playerid,0.3394,-243.8046,5.4297);
SetPlayerCameraLookAt(playerid,0.4886,-239.3074,5.4297);
return 1;
}
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, \"Üdvözlöm a Szerveren!\");
SendClientMessage(playerid, COLOR_LIGHTBLUE, \"Segitségért Használd a /help Parancsot!\");
SendClientMessage(playerid, COLOR_LIGHTBLUE, \"Jó Szórakozást!\");
SendClientMessage(playerid, COLOR_ORANGE, \"Jármû Lekéréshez: /v [Jármû Név/ID] [szín 1] [szín 2]\");
SendClientMessage(playerid, COLOR_ORANGE, \"Skin Cseréléshez Használd Ezt a Parancsot: /skincsere\");
SetPVarInt(playerid, \"Drog\", DROG_NINCS);
SetPVarInt(playerid, \"Felszed\", DROGN);
/////////////////////////////////////Remove/////////////////////////////////////
RemoveBuildingForPlayer(playerid, 16615, -389.7656, 1515.1641, 74.5547, 0.25);
RemoveBuildingForPlayer(playerid, 16137, -389.7656, 1515.1641, 74.5547, 0.25);
////////////////////////////////////***/////////////////////////////////////////
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
SetPVarInt(playerid, \"Drog\", DROG_NINCS);
SetPVarInt(playerid, \"Felszed\", DROGN);
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
/////////////////////////////////Kocsi Javitó///////////////////////////////////
 
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
RepairVehicle(vehicleid);
return 1;
}
////////////////////////////////////***/////////////////////////////////////////
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
return 0;
}
////////////////////////////////////***/////////////////////////////////////////
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
return 0;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success)
{
new strin[128];
format(strin, sizeof(strin), \"[HIBA]Nincs Ilyen Parancs\", cmdtext);
SendClientMessage(playerid,COLOR_RED, strin);
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
SendClientMessage(playerid, COLOR_BLUE, \"Tuning: /tune\");
SendClientMessage(playerid, COLOR_BLUE, \"Rádió: /radio\");
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
RemoveVehicleComponent(vehicleid, 1010);
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
////////////////////////////////Jármû Lekérõ////////////////////////////////////
stock GetVehicleModelIDFromName( vname[] )
{
for( new i = 0; i < sizeof( VehicleNames ); i++ )
{
if ( strfind( VehicleNames[ i ], vname, true) != -1 )
{
   return i + 400;
}
}
return -1;
}
stock IsNumeric( string22[] )
{
for( new i = 0, j = strlen( string22 ); i < j; i++)
{
if( string22[ i ] > \'9\' || string22[ i ] < \'0\')
return 0;
}
return 1;
}
CMD:v( playerid, params[] )
{
new
   szCarName[ 64 + 1 ],
   szCarSpawn[ 70 + 1 ],
   iCarID,
   iCarColor[ 2 ],
   iNowVeh;
 
if( sscanf( params, \"s[64]D(127)D(127)\", szCarName, iCarColor[ 0 ], iCarColor[ 1 ] ) )
   return SendClientMessage( playerid, COLOR_BLUE, \"Használat: /v [Jármû Név/ID] [szín 1] [szín 2] )\" );
if( !IsNumeric( szCarName ) )
{
iCarID = GetVehicleModelIDFromName( szCarName );
}
else
{
iCarID = strval( szCarName );
}
if( iCarID < 400 || iCarID > 611 ) return SendClientMessage( playerid, COLOR_RED, \"[HIBA] Hibás jármû ID, vagy név.\" );
if( iCarColor[ 0 ] < 0 || iCarColor[ 0 ] > 256 ) return SendClientMessage( playerid, COLOR_RED, \"[HIBA] Érvénytelen jármû szín ID. ( 1 - 255 )\" );
if( iCarColor[ 1 ] < 0 || iCarColor[ 1 ] > 256 ) return SendClientMessage( playerid, COLOR_RED, \"[HIBA] Érvénytelen jármû szín ID. ( 1 - 255 )\" );
if( iCarColor[ 0 ] == 127 ) iCarColor[ 0 ] = random( 126 );
if( iCarColor[ 1 ] == 127 ) iCarColor[ 1 ] = random( 126 );
if( GetPVarInt( playerid, \"SpawnedVehicle\" ) != INVALID_VEHICLE_ID )
{
DestroyVehicle( GetPVarInt( playerid, \"SpawnedVehicle\" ) );
}
GetPlayerPos( playerid, fPos[ 0 ], fPos[ 1 ], fPos[ 2 ] );
GetPlayerFacingAngle( playerid, fPos[ 3 ] );
iNowVeh = CreateVehicle( iCarID, fPos[ 0 ], fPos[ 1 ], fPos[ 2 ], fPos[ 3 ], iCarColor[ 0 ], iCarColor[ 1 ], -1 );
SetPVarInt( playerid, \"SpawnedVehicle\", iNowVeh );
LinkVehicleToInterior( iNowVeh, GetPlayerInterior( playerid ) );
SetVehicleVirtualWorld( iNowVeh, GetPlayerVirtualWorld( playerid ) );
PutPlayerInVehicle( playerid, iNowVeh, 0 );
format( szCarSpawn, sizeof( szCarSpawn ), \"~w~Jármû lerakva! Név: ~r~~h~%s~w~, Model ID: ~r~~h~%d~w~.\", VehicleNames[ iCarID - 400 ], iCarID );
return 1;
}
///////////////////////////////////***///////////////////////////////////////////
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER || !CheckNitro(GetPlayerVehicleID(playerid))) return false; else if ((((newkeys & (4)) == (4)) && ((oldkeys & (4)) != (4)))) AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); else if ((((newkeys & (4)) != (4)) && ((oldkeys & (4)) == (4)))) RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1010);
return 1;
}
stock CheckNitro(vid)
{
new NoNitro[] = { 522,481,441,468,448,446,513,521,510,430,520,476,463 }; // unknown
for(new e = 0; e < sizeof(NoNitro); e++) if(GetVehicleModel(vid) == NoNitro[e]) return false;
return true;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
////////////////////////////////////Harc Style//////////////////////////////////
if(dialogid == DIALOG_FIGHT)
{
if(response)
{
   if(listitem == 0)
   {
      SetPlayerFightingStyle(playerid, FIGHT_STYLE_NORMAL);
      SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Harc Styles Beállítva erre: Normal\");
   }
   if(listitem == 1)
   {
      SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING);
      SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Harc Styles Beállítva erre: Boxing\");
   }
   if(listitem == 2)
   {
      SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD);
      SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Harc Styles Beállítva erre: KneeHead\");
   }
   if(listitem == 4)
   {
      SetPlayerFightingStyle(playerid, FIGHT_STYLE_GRABKICK);
      SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Harc Styles Beállítva erre: GrabKick\");
   }
   if(listitem == 5)
   {
      SetPlayerFightingStyle(playerid,  FIGHT_STYLE_ELBOW);
      SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Harc Styles Beállítva erre: Normal Elbow\");
   }
}
return 1;
}
////////////////////////////////////Rádió///////////////////////////////////////
if(dialogid == radiodialog)
{
if(listitem == 0)
{
   if(playing[playerid] == 1)
   {
      playing[playerid] = 0;
      SendClientMessage(playerid, COLOR_RED, \"[server] Rádió Leállitva\");
      StopAudioStreamForPlayer(playerid);
   }
   else return 1;
}
if(listitem == 1)
{
   playing[playerid] = 1;
   SendClientMessage(playerid, COLOR_ORANGE, \"[server] Rádió Elinditva\");
   PlayAudioStreamForPlayer(playerid, \"http://blackbeats.fm/listen.m3u\");
}
if(listitem == 2)
{
   playing[playerid] = 1;
   SendClientMessage(playerid, COLOR_ORANGE, \"[server] Rádió Elinditva\");
   PlayAudioStreamForPlayer(playerid, \"http://lazaradio.hu:8100/mulatos.mp3.m3u\");
}
if(listitem == 3)
{
   playing[playerid] = 1;
   SendClientMessage(playerid, COLOR_ORANGE, \"[server] Rádió Elinditva\");
   PlayAudioStreamForPlayer(playerid, \"http://stereofm.hu/inc/balaton_playlist.m3u\");
}
return 1;
}
///////////////////////////////Fegyver Lekérõ///////////////////////////////////
if(dialogid == 1987)
{
if(listitem == 0)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
   GivePlayerWeapon(playerid,22,500);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Colt tipusú fegyvert\");
}
if(listitem == 1)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
   GivePlayerWeapon(playerid,23,500);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Silencedet \");
}
if(listitem == 2)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
   GivePlayerWeapon(playerid,25,500);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Shotgunt \");
}
if(listitem == 3)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
   GivePlayerWeapon(playerid,28,500);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Uzi-t\");
}
if(listitem == 4)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
   GivePlayerWeapon(playerid,29,500);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy MP5-öt \");
}
if(listitem == 5)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
   GivePlayerWeapon(playerid,30,500);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Ak47-et \");
}
if(listitem == 6)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
   GivePlayerWeapon(playerid,31,500);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy M4-et \");
}
if(listitem == 7)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
   GivePlayerWeapon(playerid,32,500);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy TEC 9-et\");
}
if(listitem == 8)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! ]\");
   GivePlayerWeapon(playerid,33,500);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Riflet\");
}
if(listitem == 9)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
   GivePlayerWeapon(playerid,34,500);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Snipert\");
}
if(listitem == 10)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
   GivePlayerWeapon(playerid,41,500);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Spray-t \");
}
if(listitem == 11)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed!\");
   GivePlayerWeapon(playerid,42,500);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy poroltót \");
}
if(listitem == 12)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! []\");
   GivePlayerWeapon(playerid,46,1);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy ejtõernyõt \");
}
if(listitem == 13)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
   GivePlayerWeapon(playerid,17,25);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Füst gáz-t\");
}
if(listitem == 14)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
   GivePlayerWeapon(playerid,8,1);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Katanát \");
}
if(listitem == 15)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed!\");
   GivePlayerWeapon(playerid,18,75);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Molotov koktélt \");
}
return 1;
}
////////////////////////////////Skincsere///////////////////////////////////////
if(dialogid == skincseredialog)
{
if(!response)
{
   SendClientMessage(playerid, COLOR_RED, \"[HIBA]Nem történt skin változtatás!\");
   return 1;
}
if(strval(inputtext) >=0)
{
   if(strval(inputtext) <=299)
   {
      SetPlayerSkin(playerid, strval(inputtext));
   }
   else
   {
      SendClientMessage(playerid, COLOR_RED, \"[HIBA]Ez a skin ID nem található válassz másikat!\");
   }
}
else
{
SendClientMessage(playerid, COLOR_RED, \"[HIBA]Ez a skin ID nem található válassz másikat!\");
}
}
return 0;
}
/////////////////////////////////////////***////////////////////////////////////
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
////////////////////////////////Teleportok//////////////////////////////////////
CMD:lv(playerid, params[]) {
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
   SetVehiclePos(GetPlayerVehicleID(playerid),2326.9124,1395.6553,42.8203);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Las Venturas-ba\");
   SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
   LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
   RemovePlayerFromVehicle(playerid);
   SetPlayerPos(playerid,2326.9124,1395.6553,42.8203);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Las Venturas-ba\");
   SetPlayerFacingAngle(playerid, 50.8647);
   SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,2326.9124,1395.6553,42.8203);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Las Venturas-ba\");
SetPlayerFacingAngle(playerid, 50.8647);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
return 1;
}
CMD:ls(playerid, params[]) {
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
   SetVehiclePos(GetPlayerVehicleID(playerid),2304.1643,-1642.7743,14.5374);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Los Santos-ba\");
   SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
   LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
   RemovePlayerFromVehicle(playerid);
   SetPlayerPos(playerid,2304.1643,-1642.7743,14.5374);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Los Santos-ba\");
        SetPlayerFacingAngle(playerid, 50.8647);
   SetCameraBehindPlayer(playerid);
   }
} else {
SetPlayerPos(playerid,2304.1643,-1642.7743,14.5374);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Los Santos-ba\");
SetPlayerFacingAngle(playerid, 50.8647);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
return 1;
}
CMD:sf(playerid, params[]) {
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
   SetVehiclePos(GetPlayerVehicleID(playerid),-1988.2336,178.8083,27.5391);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál San Fiero-ba\");
   SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
   LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
   RemovePlayerFromVehicle(playerid);
   SetPlayerPos(playerid,-1988.2336,178.8083,27.5391);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál San Fiero-ba\");
   SetPlayerFacingAngle(playerid, 50.8647);
   SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,-1988.2336,178.8083,27.5391);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál San Fiero-ba\");
SetPlayerFacingAngle(playerid, 50.8647);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
return 1;
}
CMD:lvair(playerid, params[]) {
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
   SetVehiclePos(GetPlayerVehicleID(playerid),1315.9454,1303.0953,10.8203);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Las Venturas-i reptérre\");
   SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
   LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
   RemovePlayerFromVehicle(playerid);
   SetPlayerPos(playerid,1315.9454,1303.0953,10.8203);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Las Venturas-i reptérre\");
   SetPlayerFacingAngle(playerid, 50.8647);
   SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,1315.9454,1303.0953,10.8203);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Las Venturas-i reptérre\");
SetPlayerFacingAngle(playerid, 50.8647);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
return 1;
}
CMD:lsair(playerid, params[]) {
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
   SetVehiclePos(GetPlayerVehicleID(playerid),1914.9293,-2251.8259,13.5469);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Los Santos-i reptérre\");
   SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
   LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
   RemovePlayerFromVehicle(playerid);
   SetPlayerPos(playerid,1914.9293,-2251.8259,13.5469);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Los Santos-i reptérre\");
   SetPlayerFacingAngle(playerid, 50.8647);
   SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,1914.9293,-2251.8259,13.5469);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Los Santos-i reptérre\");
SetPlayerFacingAngle(playerid, 50.8647);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
return 1;
}
CMD:sfair(playerid, params[]) {
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
   SetVehiclePos(GetPlayerVehicleID(playerid),-1553.7771,-240.2939,14.1484);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a San Fiero-i reptérre\");
   SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
   LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
   RemovePlayerFromVehicle(playerid);
   SetPlayerPos(playerid,-1553.7771,-240.2939,14.1484);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a San Fiero-i reptérre\");
   SetPlayerFacingAngle(playerid, 50.8647);
   SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,-1553.7771,-240.2939,14.1484);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a San Fiero-i reptérre\");
SetPlayerFacingAngle(playerid, 50.8647);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
return 1;
}
CMD:pa(playerid, params[]) {
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
   SetVehiclePos(GetPlayerVehicleID(playerid),2408.2493,90.8666,26.4740);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Palomino-ba\");
   SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
   LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
   RemovePlayerFromVehicle(playerid);
   SetPlayerPos(playerid,2408.2493,90.8666,26.4740);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Palomino-ba\");
   SetPlayerFacingAngle(playerid, 50.8647);
   SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,2408.2493,90.8666,26.4740);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Palomino-ba\");
SetPlayerFacingAngle(playerid, 50.8647);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
return 1;
}
CMD:fc(playerid, params[]) {
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
   SetVehiclePos(GetPlayerVehicleID(playerid),-197.1303,1212.2777,19.7422);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Fort Carson-ba\");
   SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
   LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
   RemovePlayerFromVehicle(playerid);
   SetPlayerPos(playerid,-197.1303,1212.2777,19.7422);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Fort Carson-ba\");
   SetPlayerFacingAngle(playerid, 50.8647);
   SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,-197.1303,1212.2777,19.7422);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Fort Carson-ba\");
SetPlayerFacingAngle(playerid, 50.8647);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
return 1;
}
CMD:bb(playerid, params[]) {
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
   SetVehiclePos(GetPlayerVehicleID(playerid),214.1872,-146.6117,1.5859);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Blueberry-be\");
   SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
   LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
   RemovePlayerFromVehicle(playerid);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Blueberry-be\");
   SetPlayerPos(playerid,214.1872,-146.6117,1.5859);
   SetPlayerFacingAngle(playerid, 50.8647);
   SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,214.1872,-146.6117,1.5859);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Blueberry-be\");
SetPlayerFacingAngle(playerid, 50.8647);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
return 1;
}
CMD:kezdohely(playerid, params[]) {
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
   SetVehiclePos(GetPlayerVehicleID(playerid),-342.9536,1514.7717,75.3594);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Kezdõhely-re\");
   SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
   LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
   RemovePlayerFromVehicle(playerid);
   SetPlayerPos(playerid,-342.9536,1514.7717,75.3594);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Kezdõhely-re\");
   SetPlayerFacingAngle(playerid, 50.8647);
   SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,-342.9536,1514.7717,75.3594);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Kezdõhely-re\");
SetPlayerFacingAngle(playerid, 50.8647);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
return 1;
}
 
///////////////////////////////Dialog [HELP..]//////////////////////////////////
 
CMD:help(playerid, params[])
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, \"Segitseg\", \"\\n /teleport - Teleportok\\n /parancs [2] - Parancsok\\n\", \"Rendben\", \"\");
return 1;
}
CMD:teleport(playerid, params[])
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, \"Teleportok\", \"/lv /ls /sf /sfair\\n /lsair /pa /bb\\n /lvair /fc /kezdohely \", \"Rendben\", \"\");
return 1;
}
CMD:parancs(playerid, params[])
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, \"Parancsok\", \"/radio /skincsere /fegyver\\n/fight /tune /drogtelep\\n/v [Jármû Név/ID] [szín 1] [szín 2]\", \"Rendben\", \"\");
return 1;
}
CMD:parancs2(playerid, params[])
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, \"Parancsok\", \"Még Nincs Kész!\", \"Rendben\", \"\");
return 1;
}
 
//////////////////////////////CMD Parancsok/////////////////////////////////////
CMD:skincsere(playerid, params[])
{
ShowPlayerDialog(playerid, skincseredialog, DIALOG_STYLE_INPUT, \"Skin Valto\", \"Ird be a skin ID-t\", \"Valaszt\", \"Kilep\");
return 1;
}
CMD:fegyver(playerid, params[])
{
ShowPlayerDialog(playerid,1987,DIALOG_STYLE_LIST,\"Fegyverek\",\"Colt\\nSilenced\\nShotgun\\nUzi\\nMP5\\nAK47\\nM4\\nTec 9\\nRifle\\nMesterlövész\\nSray\\nPorolto\\nEjtõernyõ\\nFüst gáz\\nKatana\\nMolotov koktél\",\"Megvesz\",\"Kilépés\");
return 1;
}
CMD:radio(playerid, params[])
{
ShowPlayerDialog(playerid, radiodialog, DIALOG_STYLE_LIST, \"Rádió\", \"Kikapcsolás\\nLockett FM\\nCigány Rádió\\nRise FM\", \"Valaszt\", \"Kilep\");
return 1;
}
CMD:fight(playerid, params[])
{
ShowPlayerDialog(playerid, DIALOG_FIGHT, DIALOG_STYLE_LIST, \"Harc Styles\", \"Normal\\nBoxing\\nKneeHead\\nGrabKick\\nElbow\", \"Kiválaszt\", \"Mégse\");
return 1;
}
/////////////////////////////////////Drog Parancsok/////////////////////////////
CMD:drogtelep(playerid, params[])
{
if(IsPlayerInAnyVehicle(playerid))
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, -1085.9890,-1630.2303,76.3672);
LinkVehicleToInterior(tmpcar, 0);
SetPlayerVirtualWorld(playerid, 0);
}
else
{
SetPlayerPos(playerid, -1085.9890,-1630.2303,76.3672);
}
return 1;
}
CMD:felszed(playerid, params[])
{
if(GetPVarInt(playerid, \"Drog\") == DROG_NINCS)
      {
      if(IsPlayerInDynamicCP(playerid, DROGFEL))
      {
   SetPVarInt(playerid, \"Felszed\", DROGY);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER]Felszedted a Canabist! Menj a Következõ Checkpointhoz!\");
      }
else SendClientMessage(playerid, COLOR_RED, \"[HIBA]Nem Vagy a Felszedõ Checkpointban!\");
}
else SendClientMessage(playerid, COLOR_RED, \"[HIBA]Van már Canabisod!\");
return 1;
}
 
CMD:drogcsinal(playerid, params[])
{
if(GetPVarInt(playerid, \"Drog\") == DROG_NINCS)
{
if(GetPVarInt(playerid, \"Felszed\") == DROGY)
{
   if(!IsPlayerInDynamicCP(playerid, DROGCP)) return SendClientMessage(playerid, COLOR_RED, \"[HIBA]Nem Vagy a Checkpointba!\");
   SetPVarInt(playerid, \"Drog\", DROG_VAN);
   TogglePlayerControllable(playerid, 0);
   SetTimerEx(\"drogcsin\",4000,0,\"i\",playerid);
   SetTimerEx(\"drogido\",300000,0,\"i\",playerid);
   SendClientMessage(playerid, COLOR_PINK, \"[sERVER]Drogot Készítesz.....\");
}
else SendClientMessage(playerid, COLOR_RED, \"[HIBA]Nem Szedtél Fel Canabist!\");
}
else SendClientMessage(playerid, COLOR_PINK, \"[sERVER]Ne Legyél Drogfüggõ, Pár Perc Múlva Újra Csinálhatsz!\");
return 1;
}
CMD:besziv(playerid, params[])
{
if(GetPVarInt(playerid, \"Drog\") ==  DROG_VAN)
{
SetPlayerDrunkLevel(playerid, 50000);
SetPlayerWeather(playerid, 203);
SetPVarInt(playerid, \"Drog\", DROG_NINCS);
SetTimerEx(\"bead\",60000,0,\"i\",playerid);
SendClientMessage(playerid, COLOR_PINK, \"[sERVER]Most Aztán Szépen Reccsen Vagy! *.*\");
}
else SendClientMessage(playerid, COLOR_RED, \"[HIBA]Nincs Drogod!\");
return 1;
}
CMD:drogelad(playerid, params[])
{
if(GetPVarInt(playerid, \"Drog\") ==  DROG_VAN)
{
new
string[128],
name[MAX_PLAYER_NAME],
name2[MAX_PLAYER_NAME],
PID;
if(sscanf(params, \"u\", PID)) return SendClientMessage(playerid, COLOR_BLUE, \"Használat: /drogelad <ID/Játékos név>\");
if(PID == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, \"[HIBA]Rossz ID/Név!\");
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
GetPlayerName(PID, name2, MAX_PLAYER_NAME);
format(string, sizeof(string), \"%s[sERVER] Elakar adni neked drogot $50000-ért, ha megakarod venni, akkor /megvesz <ID>\", name);
SendClientMessage(PID, COLOR_GREEN, string);
format(string, sizeof(string), \"[sERVER] Elakarsz adni %s-nak/nek drogot!\", name2);
SendClientMessage(playerid, COLOR_GREEN, string);
}
else SendClientMessage(playerid, COLOR_RED, \"[HIBA]Nincsen drogod!\");
return 1;
}
CMD:drogmegvesz(playerid, params[])
{
if(GetPVarInt(playerid, \"Drog\") ==  DROG_NINCS)
{
  new
         string[128],
         name[MAX_PLAYER_NAME],
         name2[MAX_PLAYER_NAME],
         PID;
  if(sscanf(params, \"u\", PID)) return SendClientMessage(playerid, COLOR_BLUE, \"Használat: /drogmegvesz <ID/Játékos név>\");
  if(PID == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, \"[HIBA]Rossz ID/Név!\");
  if(GetPVarInt(PID, \"Drog\") == DROG_NINCS) return SendClientMessage(playerid, COLOR_RED, \"[HIBA]Nincs drog az illetõnél!\");
  SetPVarInt(playerid, \"Drog\", DROG_VAN);
  SetPVarInt(PID, \"Drog\", DROG_NINCS);
  GivePlayerMoney(playerid, -50000);
  GivePlayerMoney(PID, 50000);
 
  GetPlayerName(playerid,name, MAX_PLAYER_NAME);
  format(string, sizeof(string), \"[sERVER]%s Megvette tõled a drogot!\", name);
  SendClientMessage(PID, COLOR_GREEN, string);
  GetPlayerName(PID, name2, MAX_PLAYER_NAME);
  format(string, sizeof(string), \"[sERVER]%s-tõl/tól Megvetted a drogot!\", name2);
  SendClientMessage(playerid, COLOR_GREEN, string);
}
else SendClientMessage(playerid, COLOR_RED, \"[HIBA]Van már drogot!\");
return 1;
}
 
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == DROGCP) return SendClientMessage(playerid, COLOR_BLUE, \"[sERVER]Ha Drogot Szeretnél Csinálni, Akkor /drogcsinal!\");
if(checkpointid == DROGFEL) return SendClientMessage(playerid, COLOR_BLUE, \"[sERVER]Ha Felszeretnéd Szedni a Canabist, akkor /felszed \");
return 1;
}
 
////////////////// Drog timerekhez kapcsolódó eljárások/////////////////////////
forward bead(playerid);
public bead(playerid)
{
SetPlayerDrunkLevel(playerid, 0);
SetPlayerWeather(playerid, 2);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER]Már nem vagy beszívva, aztán óvatosan a füvezéssel!\");
return 1;
}
forward drogido(playerid);
public drogido(playerid)
{
SetPVarInt(playerid, \"Drog\", DROG_NINCS);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER]Ember, mostmár újra csinálhatsz drogot.\");
return 1;
}
forward drogcsin(playerid);
public drogcsin(playerid)
{
SetPVarInt(playerid, \"Drog\", DROG_VAN);
TogglePlayerControllable(playerid, 1);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER]Csináltál Drogot! Ha eladni akarod, akkor /drogelad, ha elszívni, akkor /besziv!\");
return 1;
}
///////////////////////////////////////***//////////////////////////////////////

 


Legközelebb csak mûködõ kódot publikálj :)

Alap FreeRoam?!
« Válasz #6 Dátum: 2013. március 02. - 12:02:23 »
0 Show voters
Idézetet írta: TengeriMalac date=1362213478\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"34320\" data-ipsquote-contentclass=\"forums_Topic
Kijavítottam a feltûnõ hibákat.
1 error maradt benne, azzal nem tudok mit kezdeni, és
1 warning, mert a YSI egy kalap jóság.
 
////////////////////////////////////////////////////////////////////////////////
//                                                         //
//                       FreeRoam Mode by: Lockett                //
//                                                         //
////////////////////////////////////////////////////////////////////////////////
#include                        <      a_samp       >
#include                        <      fixchars      >
#include                        <      sscanf2       >
#include                        <      zcmd         >
#include                        <      streamer      >
#include                        <      foreach      >
#include                        <      YSI\\y_ini      >
 
//#include \"../include/gl_common.inc\"
#define radiodialog 1
#define skincseredialog 2
///////////////////////////Drog azonosítók//////////////////////////////////////
#define DROG_NINCS  3
#define DROG_VAN   4
#define DROGY      5
#define DROGN      6
#define DIALOG_FIGHT 7
///////////////////////////////////Színek///////////////////////////////////////
#define COLOR_PINK                       0xFF66FFAA
#define COLOR_RED                        0xFF0000AA
#define COLOR_LIGHTBLUE             0x33CCFFAA
#define COLOR_LIME                       0x99FF00AA
#define COLOR_YELLOW               0xFFFF00AA
#define COLOR_WHITE                0xFFFFFFAA
#define COLOR_ORANGE               0xF97804FF
#define COLOR_BLUE                       0x33AAFFFF
#define COLOR_GREEN                      0x33AA33AA
//////////////////////////////////Checkpoint////////////////////////////////////
new DROGCP, DROGFEL;
////////////////////////////////////***/////////////////////////////////////////
new playing[MAX_PLAYERS]; //Rádió
new Float: fPos[ 4 ];
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\"
};
forward CarRespawn(); // Kocsi Respawn
 
////////////////////////////////////***/////////////////////////////////////////
main()
{
print(\"***********************************\");
print(\"*      Mode v0.1 by Lockett     *\");
print(\"***********************************\");
}
 
public OnGameModeInit()
{
UsePlayerPedAnims();
SetGameModeText(\"v0.1\");
AddPlayerClass(29,-343.6651,1542.7242,75.5625,177.6608,0,0,0,0,0,0);
SetTimer(\"CarRespawn\", 900000, 1); // 60000 ( 1 min )
////////////////////////////////////Drog/////////////////////////////////////////
DROGCP = CreateDynamicCP(-1104.8046,-1617.5413,76.3672, 2, -1, -1, -1, 200);
DROGFEL = CreateDynamicCP(-1074.3137,-1625.3157,76.3672, 2, -1, -1, -1, 200);
///////////////////////////////Kocsik,Mappolás//////////////////////////////////
 
AddStaticVehicle(562,-317.9400,1514.8885,75.0201,0.1458,92,1);        // Elegy Kezdõ
AddStaticVehicle(475,-330.3975,1514.9534,75.0181,0.2305,36,1);         // Sabre Kezdõ
AddStaticVehicle(411,-324.1790,1515.1188,75.0865,1.2593,92,92);       // Infernus Kezdõ
AddStaticVehicle(522,-348.4968,1519.7211,75.1317,177.3217,0,0);       // NRG Kezdõ
AddStaticVehicle(522,-348.7860,1515.2699,75.1158,356.0487,0,0);       // NRG Kezdõ
AddStaticVehicle(444,-351.0979,1543.7803,75.9338,176.3907,1,1);       // Monster Kezdõ
AddStaticVehicle(541,-314.3450,1541.5317,75.1874,178.6656,0,6);       // Bulett Kezdõ
AddStaticVehicle(562,-333.7443,1535.8164,75.2212,91.0050,86,86);      // Elegy Kezdõ
 
/////////////////////////////////Drog Map///////////////////////////////////////
CreateObject(669, -1075.00, -1618.91, 62.40,   0.00, 0.00, 90.00);
CreateObject(3409, -1068.46, -1626.39, 75.34,   356.86, 0.00, 3.14);
CreateObject(3409, -1068.57, -1631.15, 75.34,   356.86, 0.00, 3.14);
CreateObject(3409, -1068.58, -1621.78, 75.34,   356.86, 0.00, 3.14);
CreateObject(3261, -1052.38, -1622.98, 75.36,   356.86, 0.00, 3.14);
CreateObject(3261, -1074.75, -1625.73, 75.36,   0.00, 0.00, 0.00);
CreateObject(3374, -1099.49, -1621.09, 76.84,   0.00, 0.00, 0.00);
CreateObject(3374, -1099.43, -1625.28, 76.84,   0.00, 0.00, 0.00);
CreateObject(14782, -1117.38, -1615.31, 76.38,   0.00, 0.00, 0.00);
CreateObject(2314, -1099.39, -1614.80, 75.39,   0.00, 0.00, 0.00);
CreateObject(2314, -1102.53, -1614.80, 75.39,   0.00, 0.00, 0.00);
CreateObject(1575, -1101.17, -1614.65, 75.88,   0.00, 0.00, 0.00);
CreateObject(1318, -1096.79, -1615.36, 76.25,   0.00, 0.00, 0.00);
CreateObject(1318, -1077.11, -1624.52, 76.25,   0.00, 0.00, 0.00);
CreateObject(3261, -1074.75, -1628.73, 75.36,   0.00, 0.00, 0.00);
CreateObject(3261, -1074.75, -1631.75, 75.36,   0.00, 0.00, 0.00);
CreateObject(3261, -1074.75, -1634.75, 75.36,   0.00, 0.00, 0.00);
CreateObject(3261, -1074.73, -1622.68, 75.36,   0.00, 0.00, 0.00);
CreateObject(2314, -1105.67, -1614.80, 75.39,   0.00, 0.00, 0.00);
CreateObject(669, -1073.89, -1622.10, 62.40,   0.00, 0.00, 90.00);
CreateObject(669, -1074.11, -1623.08, 62.40,   0.00, 0.00, 90.00);
CreateObject(669, -1074.27, -1624.41, 62.40,   0.00, 0.00, 171.00);
CreateObject(7073, -327.24, 1547.26, 92.73,   0.00, 0.00, -88.00);
CreateObject(1262, -302.21, 1507.33, 76.34,   0.00, 0.00, 0.00);
CreateObject(1214, -302.27, 1507.18, 74.38,   0.00, 0.00, 0.00);
CreateObject(3249, -356.44, 1517.57, 74.58,   0.00, 0.00, 89.44);
CreateObject(7392, -348.03, 1514.25, 85.92,   0.00, 0.00, 0.00);
////////////////////////////////////***/////////////////////////////////////////
return 1;
}
public OnGameModeExit()
{
return 1;
}
////////////////////////////////Kocsi Respawn///////////////////////////////////
public CarRespawn()
{
for ( new vid = 0; vid < MAX_VEHICLES; vid ++ )
{
if ( !IsVehicleOccupied ( vid ) )
{
   SetVehicleToRespawn ( vid );
}
}
SendClientMessageToAll(COLOR_GREEN,\"[sERVER] Minden használaton kívüli jármû helyre lett állítva\");
return 1;
}
stock IsVehicleOccupied(vehicleid)
{
      for ( new i = 0; i < MAX_PLAYERS; i++ )
      {
if ( IsPlayerInVehicle ( i, vehicleid ) ) return 1;
      }
return 0;
}
////////////////////////////////////***/////////////////////////////////////////
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,0.4886,-239.3074,5.4297);
SetPlayerCameraPos(playerid,0.3394,-243.8046,5.4297);
SetPlayerCameraLookAt(playerid,0.4886,-239.3074,5.4297);
return 1;
}
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, \"Üdvözlöm a Szerveren!\");
SendClientMessage(playerid, COLOR_LIGHTBLUE, \"Segitségért Használd a /help Parancsot!\");
SendClientMessage(playerid, COLOR_LIGHTBLUE, \"Jó Szórakozást!\");
SendClientMessage(playerid, COLOR_ORANGE, \"Jármû Lekéréshez: /v [Jármû Név/ID] [szín 1] [szín 2]\");
SendClientMessage(playerid, COLOR_ORANGE, \"Skin Cseréléshez Használd Ezt a Parancsot: /skincsere\");
SetPVarInt(playerid, \"Drog\", DROG_NINCS);
SetPVarInt(playerid, \"Felszed\", DROGN);
/////////////////////////////////////Remove/////////////////////////////////////
RemoveBuildingForPlayer(playerid, 16615, -389.7656, 1515.1641, 74.5547, 0.25);
RemoveBuildingForPlayer(playerid, 16137, -389.7656, 1515.1641, 74.5547, 0.25);
////////////////////////////////////***/////////////////////////////////////////
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
SetPVarInt(playerid, \"Drog\", DROG_NINCS);
SetPVarInt(playerid, \"Felszed\", DROGN);
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
/////////////////////////////////Kocsi Javitó///////////////////////////////////
 
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
RepairVehicle(vehicleid);
return 1;
}
////////////////////////////////////***/////////////////////////////////////////
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
return 0;
}
////////////////////////////////////***/////////////////////////////////////////
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
return 0;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success)
{
new strin[128];
format(strin, sizeof(strin), \"[HIBA]Nincs Ilyen Parancs\", cmdtext);
SendClientMessage(playerid,COLOR_RED, strin);
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
SendClientMessage(playerid, COLOR_BLUE, \"Tuning: /tune\");
SendClientMessage(playerid, COLOR_BLUE, \"Rádió: /radio\");
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
RemoveVehicleComponent(vehicleid, 1010);
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
////////////////////////////////Jármû Lekérõ////////////////////////////////////
stock GetVehicleModelIDFromName( vname[] )
{
for( new i = 0; i < sizeof( VehicleNames ); i++ )
{
if ( strfind( VehicleNames[ i ], vname, true) != -1 )
{
   return i + 400;
}
}
return -1;
}
stock IsNumeric( string22[] )
{
for( new i = 0, j = strlen( string22 ); i < j; i++)
{
if( string22[ i ] > \'9\' || string22[ i ] < \'0\')
return 0;
}
return 1;
}
CMD:v( playerid, params[] )
{
new
   szCarName[ 64 + 1 ],
   szCarSpawn[ 70 + 1 ],
   iCarID,
   iCarColor[ 2 ],
   iNowVeh;
 
if( sscanf( params, \"s[64]D(127)D(127)\", szCarName, iCarColor[ 0 ], iCarColor[ 1 ] ) )
   return SendClientMessage( playerid, COLOR_BLUE, \"Használat: /v [Jármû Név/ID] [szín 1] [szín 2] )\" );
if( !IsNumeric( szCarName ) )
{
iCarID = GetVehicleModelIDFromName( szCarName );
}
else
{
iCarID = strval( szCarName );
}
if( iCarID < 400 || iCarID > 611 ) return SendClientMessage( playerid, COLOR_RED, \"[HIBA] Hibás jármû ID, vagy név.\" );
if( iCarColor[ 0 ] < 0 || iCarColor[ 0 ] > 256 ) return SendClientMessage( playerid, COLOR_RED, \"[HIBA] Érvénytelen jármû szín ID. ( 1 - 255 )\" );
if( iCarColor[ 1 ] < 0 || iCarColor[ 1 ] > 256 ) return SendClientMessage( playerid, COLOR_RED, \"[HIBA] Érvénytelen jármû szín ID. ( 1 - 255 )\" );
if( iCarColor[ 0 ] == 127 ) iCarColor[ 0 ] = random( 126 );
if( iCarColor[ 1 ] == 127 ) iCarColor[ 1 ] = random( 126 );
if( GetPVarInt( playerid, \"SpawnedVehicle\" ) != INVALID_VEHICLE_ID )
{
DestroyVehicle( GetPVarInt( playerid, \"SpawnedVehicle\" ) );
}
GetPlayerPos( playerid, fPos[ 0 ], fPos[ 1 ], fPos[ 2 ] );
GetPlayerFacingAngle( playerid, fPos[ 3 ] );
iNowVeh = CreateVehicle( iCarID, fPos[ 0 ], fPos[ 1 ], fPos[ 2 ], fPos[ 3 ], iCarColor[ 0 ], iCarColor[ 1 ], -1 );
SetPVarInt( playerid, \"SpawnedVehicle\", iNowVeh );
LinkVehicleToInterior( iNowVeh, GetPlayerInterior( playerid ) );
SetVehicleVirtualWorld( iNowVeh, GetPlayerVirtualWorld( playerid ) );
PutPlayerInVehicle( playerid, iNowVeh, 0 );
format( szCarSpawn, sizeof( szCarSpawn ), \"~w~Jármû lerakva! Név: ~r~~h~%s~w~, Model ID: ~r~~h~%d~w~.\", VehicleNames[ iCarID - 400 ], iCarID );
return 1;
}
///////////////////////////////////***///////////////////////////////////////////
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER || !CheckNitro(GetPlayerVehicleID(playerid))) return false; else if ((((newkeys & (4)) == (4)) && ((oldkeys & (4)) != (4)))) AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); else if ((((newkeys & (4)) != (4)) && ((oldkeys & (4)) == (4)))) RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1010);
return 1;
}
stock CheckNitro(vid)
{
new NoNitro[] = { 522,481,441,468,448,446,513,521,510,430,520,476,463 }; // unknown
for(new e = 0; e < sizeof(NoNitro); e++) if(GetVehicleModel(vid) == NoNitro[e]) return false;
return true;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
////////////////////////////////////Harc Style//////////////////////////////////
if(dialogid == DIALOG_FIGHT)
{
if(response)
{
   if(listitem == 0)
   {
      SetPlayerFightingStyle(playerid, FIGHT_STYLE_NORMAL);
      SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Harc Styles Beállítva erre: Normal\");
   }
   if(listitem == 1)
   {
      SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING);
      SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Harc Styles Beállítva erre: Boxing\");
   }
   if(listitem == 2)
   {
      SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD);
      SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Harc Styles Beállítva erre: KneeHead\");
   }
   if(listitem == 4)
   {
      SetPlayerFightingStyle(playerid, FIGHT_STYLE_GRABKICK);
      SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Harc Styles Beállítva erre: GrabKick\");
   }
   if(listitem == 5)
   {
      SetPlayerFightingStyle(playerid,  FIGHT_STYLE_ELBOW);
      SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Harc Styles Beállítva erre: Normal Elbow\");
   }
}
return 1;
}
////////////////////////////////////Rádió///////////////////////////////////////
if(dialogid == radiodialog)
{
if(listitem == 0)
{
   if(playing[playerid] == 1)
   {
      playing[playerid] = 0;
      SendClientMessage(playerid, COLOR_RED, \"[server] Rádió Leállitva\");
      StopAudioStreamForPlayer(playerid);
   }
   else return 1;
}
if(listitem == 1)
{
   playing[playerid] = 1;
   SendClientMessage(playerid, COLOR_ORANGE, \"[server] Rádió Elinditva\");
   PlayAudioStreamForPlayer(playerid, \"http://blackbeats.fm/listen.m3u\");
}
if(listitem == 2)
{
   playing[playerid] = 1;
   SendClientMessage(playerid, COLOR_ORANGE, \"[server] Rádió Elinditva\");
   PlayAudioStreamForPlayer(playerid, \"http://lazaradio.hu:8100/mulatos.mp3.m3u\");
}
if(listitem == 3)
{
   playing[playerid] = 1;
   SendClientMessage(playerid, COLOR_ORANGE, \"[server] Rádió Elinditva\");
   PlayAudioStreamForPlayer(playerid, \"http://stereofm.hu/inc/balaton_playlist.m3u\");
}
return 1;
}
///////////////////////////////Fegyver Lekérõ///////////////////////////////////
if(dialogid == 1987)
{
if(listitem == 0)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
   GivePlayerWeapon(playerid,22,500);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Colt tipusú fegyvert\");
}
if(listitem == 1)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
   GivePlayerWeapon(playerid,23,500);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Silencedet \");
}
if(listitem == 2)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
   GivePlayerWeapon(playerid,25,500);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Shotgunt \");
}
if(listitem == 3)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
   GivePlayerWeapon(playerid,28,500);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Uzi-t\");
}
if(listitem == 4)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
   GivePlayerWeapon(playerid,29,500);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy MP5-öt \");
}
if(listitem == 5)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
   GivePlayerWeapon(playerid,30,500);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Ak47-et \");
}
if(listitem == 6)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
   GivePlayerWeapon(playerid,31,500);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy M4-et \");
}
if(listitem == 7)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
   GivePlayerWeapon(playerid,32,500);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy TEC 9-et\");
}
if(listitem == 8)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! ]\");
   GivePlayerWeapon(playerid,33,500);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Riflet\");
}
if(listitem == 9)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
   GivePlayerWeapon(playerid,34,500);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Snipert\");
}
if(listitem == 10)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
   GivePlayerWeapon(playerid,41,500);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Spray-t \");
}
if(listitem == 11)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed!\");
   GivePlayerWeapon(playerid,42,500);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy poroltót \");
}
if(listitem == 12)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! []\");
   GivePlayerWeapon(playerid,46,1);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy ejtõernyõt \");
}
if(listitem == 13)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
   GivePlayerWeapon(playerid,17,25);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Füst gáz-t\");
}
if(listitem == 14)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed! \");
   GivePlayerWeapon(playerid,8,1);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Katanát \");
}
if(listitem == 15)
{
   if(GetPlayerMoney(playerid) < 0) return SendClientMessage(playerid, -1, \"Nincs elég pénzed!\");
   GivePlayerWeapon(playerid,18,75);
   GivePlayerMoney(playerid,0);
   SendClientMessage(playerid,COLOR_GREEN,\"[sERVER]Vettél egy Molotov koktélt \");
}
return 1;
}
////////////////////////////////Skincsere///////////////////////////////////////
if(dialogid == skincseredialog)
{
if(!response)
{
   SendClientMessage(playerid, COLOR_RED, \"[HIBA]Nem történt skin változtatás!\");
   return 1;
}
if(strval(inputtext) >=0)
{
   if(strval(inputtext) <=299)
   {
      SetPlayerSkin(playerid, strval(inputtext));
   }
   else
   {
      SendClientMessage(playerid, COLOR_RED, \"[HIBA]Ez a skin ID nem található válassz másikat!\");
   }
}
else
{
SendClientMessage(playerid, COLOR_RED, \"[HIBA]Ez a skin ID nem található válassz másikat!\");
}
}
return 0;
}
/////////////////////////////////////////***////////////////////////////////////
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
////////////////////////////////Teleportok//////////////////////////////////////
CMD:lv(playerid, params[]) {
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
   SetVehiclePos(GetPlayerVehicleID(playerid),2326.9124,1395.6553,42.8203);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Las Venturas-ba\");
   SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
   LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
   RemovePlayerFromVehicle(playerid);
   SetPlayerPos(playerid,2326.9124,1395.6553,42.8203);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Las Venturas-ba\");
   SetPlayerFacingAngle(playerid, 50.8647);
   SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,2326.9124,1395.6553,42.8203);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Las Venturas-ba\");
SetPlayerFacingAngle(playerid, 50.8647);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
return 1;
}
CMD:ls(playerid, params[]) {
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
   SetVehiclePos(GetPlayerVehicleID(playerid),2304.1643,-1642.7743,14.5374);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Los Santos-ba\");
   SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
   LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
   RemovePlayerFromVehicle(playerid);
   SetPlayerPos(playerid,2304.1643,-1642.7743,14.5374);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Los Santos-ba\");
        SetPlayerFacingAngle(playerid, 50.8647);
   SetCameraBehindPlayer(playerid);
   }
} else {
SetPlayerPos(playerid,2304.1643,-1642.7743,14.5374);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Los Santos-ba\");
SetPlayerFacingAngle(playerid, 50.8647);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
return 1;
}
CMD:sf(playerid, params[]) {
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
   SetVehiclePos(GetPlayerVehicleID(playerid),-1988.2336,178.8083,27.5391);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál San Fiero-ba\");
   SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
   LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
   RemovePlayerFromVehicle(playerid);
   SetPlayerPos(playerid,-1988.2336,178.8083,27.5391);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál San Fiero-ba\");
   SetPlayerFacingAngle(playerid, 50.8647);
   SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,-1988.2336,178.8083,27.5391);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál San Fiero-ba\");
SetPlayerFacingAngle(playerid, 50.8647);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
return 1;
}
CMD:lvair(playerid, params[]) {
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
   SetVehiclePos(GetPlayerVehicleID(playerid),1315.9454,1303.0953,10.8203);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Las Venturas-i reptérre\");
   SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
   LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
   RemovePlayerFromVehicle(playerid);
   SetPlayerPos(playerid,1315.9454,1303.0953,10.8203);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Las Venturas-i reptérre\");
   SetPlayerFacingAngle(playerid, 50.8647);
   SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,1315.9454,1303.0953,10.8203);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Las Venturas-i reptérre\");
SetPlayerFacingAngle(playerid, 50.8647);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
return 1;
}
CMD:lsair(playerid, params[]) {
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
   SetVehiclePos(GetPlayerVehicleID(playerid),1914.9293,-2251.8259,13.5469);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Los Santos-i reptérre\");
   SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
   LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
   RemovePlayerFromVehicle(playerid);
   SetPlayerPos(playerid,1914.9293,-2251.8259,13.5469);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Los Santos-i reptérre\");
   SetPlayerFacingAngle(playerid, 50.8647);
   SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,1914.9293,-2251.8259,13.5469);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Los Santos-i reptérre\");
SetPlayerFacingAngle(playerid, 50.8647);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
return 1;
}
CMD:sfair(playerid, params[]) {
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
   SetVehiclePos(GetPlayerVehicleID(playerid),-1553.7771,-240.2939,14.1484);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a San Fiero-i reptérre\");
   SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
   LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
   RemovePlayerFromVehicle(playerid);
   SetPlayerPos(playerid,-1553.7771,-240.2939,14.1484);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a San Fiero-i reptérre\");
   SetPlayerFacingAngle(playerid, 50.8647);
   SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,-1553.7771,-240.2939,14.1484);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a San Fiero-i reptérre\");
SetPlayerFacingAngle(playerid, 50.8647);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
return 1;
}
CMD:pa(playerid, params[]) {
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
   SetVehiclePos(GetPlayerVehicleID(playerid),2408.2493,90.8666,26.4740);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Palomino-ba\");
   SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
   LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
   RemovePlayerFromVehicle(playerid);
   SetPlayerPos(playerid,2408.2493,90.8666,26.4740);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Palomino-ba\");
   SetPlayerFacingAngle(playerid, 50.8647);
   SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,2408.2493,90.8666,26.4740);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Palomino-ba\");
SetPlayerFacingAngle(playerid, 50.8647);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
return 1;
}
CMD:fc(playerid, params[]) {
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
   SetVehiclePos(GetPlayerVehicleID(playerid),-197.1303,1212.2777,19.7422);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Fort Carson-ba\");
   SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
   LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
   RemovePlayerFromVehicle(playerid);
   SetPlayerPos(playerid,-197.1303,1212.2777,19.7422);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Fort Carson-ba\");
   SetPlayerFacingAngle(playerid, 50.8647);
   SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,-197.1303,1212.2777,19.7422);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Fort Carson-ba\");
SetPlayerFacingAngle(playerid, 50.8647);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
return 1;
}
CMD:bb(playerid, params[]) {
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
   SetVehiclePos(GetPlayerVehicleID(playerid),214.1872,-146.6117,1.5859);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Blueberry-be\");
   SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
   LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
   RemovePlayerFromVehicle(playerid);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Blueberry-be\");
   SetPlayerPos(playerid,214.1872,-146.6117,1.5859);
   SetPlayerFacingAngle(playerid, 50.8647);
   SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,214.1872,-146.6117,1.5859);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál Blueberry-be\");
SetPlayerFacingAngle(playerid, 50.8647);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
return 1;
}
CMD:kezdohely(playerid, params[]) {
if(IsPlayerInAnyVehicle(playerid) == 1) {
SetPlayerInterior(playerid, 0);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
   SetVehiclePos(GetPlayerVehicleID(playerid),-342.9536,1514.7717,75.3594);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Kezdõhely-re\");
   SetVehicleZAngle(GetPlayerVehicleID(playerid), 50.8647);
   LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
} else {
   RemovePlayerFromVehicle(playerid);
   SetPlayerPos(playerid,-342.9536,1514.7717,75.3594);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Kezdõhely-re\");
   SetPlayerFacingAngle(playerid, 50.8647);
   SetCameraBehindPlayer(playerid);
}
} else {
SetPlayerPos(playerid,-342.9536,1514.7717,75.3594);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER] Elteleportáltál a Kezdõhely-re\");
SetPlayerFacingAngle(playerid, 50.8647);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
}
return 1;
}
 
///////////////////////////////Dialog [HELP..]//////////////////////////////////
 
CMD:help(playerid, params[])
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, \"Segitseg\", \"\\n /teleport - Teleportok\\n /parancs [2] - Parancsok\\n\", \"Rendben\", \"\");
return 1;
}
CMD:teleport(playerid, params[])
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, \"Teleportok\", \"/lv /ls /sf /sfair\\n /lsair /pa /bb\\n /lvair /fc /kezdohely \", \"Rendben\", \"\");
return 1;
}
CMD:parancs(playerid, params[])
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, \"Parancsok\", \"/radio /skincsere /fegyver\\n/fight /tune /drogtelep\\n/v [Jármû Név/ID] [szín 1] [szín 2]\", \"Rendben\", \"\");
return 1;
}
CMD:parancs2(playerid, params[])
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, \"Parancsok\", \"Még Nincs Kész!\", \"Rendben\", \"\");
return 1;
}
 
//////////////////////////////CMD Parancsok/////////////////////////////////////
CMD:skincsere(playerid, params[])
{
ShowPlayerDialog(playerid, skincseredialog, DIALOG_STYLE_INPUT, \"Skin Valto\", \"Ird be a skin ID-t\", \"Valaszt\", \"Kilep\");
return 1;
}
CMD:fegyver(playerid, params[])
{
ShowPlayerDialog(playerid,1987,DIALOG_STYLE_LIST,\"Fegyverek\",\"Colt\\nSilenced\\nShotgun\\nUzi\\nMP5\\nAK47\\nM4\\nTec 9\\nRifle\\nMesterlövész\\nSray\\nPorolto\\nEjtõernyõ\\nFüst gáz\\nKatana\\nMolotov koktél\",\"Megvesz\",\"Kilépés\");
return 1;
}
CMD:radio(playerid, params[])
{
ShowPlayerDialog(playerid, radiodialog, DIALOG_STYLE_LIST, \"Rádió\", \"Kikapcsolás\\nLockett FM\\nCigány Rádió\\nRise FM\", \"Valaszt\", \"Kilep\");
return 1;
}
CMD:fight(playerid, params[])
{
ShowPlayerDialog(playerid, DIALOG_FIGHT, DIALOG_STYLE_LIST, \"Harc Styles\", \"Normal\\nBoxing\\nKneeHead\\nGrabKick\\nElbow\", \"Kiválaszt\", \"Mégse\");
return 1;
}
/////////////////////////////////////Drog Parancsok/////////////////////////////
CMD:drogtelep(playerid, params[])
{
if(IsPlayerInAnyVehicle(playerid))
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, -1085.9890,-1630.2303,76.3672);
LinkVehicleToInterior(tmpcar, 0);
SetPlayerVirtualWorld(playerid, 0);
}
else
{
SetPlayerPos(playerid, -1085.9890,-1630.2303,76.3672);
}
return 1;
}
CMD:felszed(playerid, params[])
{
if(GetPVarInt(playerid, \"Drog\") == DROG_NINCS)
      {
      if(IsPlayerInDynamicCP(playerid, DROGFEL))
      {
   SetPVarInt(playerid, \"Felszed\", DROGY);
   SendClientMessage(playerid, COLOR_GREEN, \"[sERVER]Felszedted a Canabist! Menj a Következõ Checkpointhoz!\");
      }
else SendClientMessage(playerid, COLOR_RED, \"[HIBA]Nem Vagy a Felszedõ Checkpointban!\");
}
else SendClientMessage(playerid, COLOR_RED, \"[HIBA]Van már Canabisod!\");
return 1;
}
 
CMD:drogcsinal(playerid, params[])
{
if(GetPVarInt(playerid, \"Drog\") == DROG_NINCS)
{
if(GetPVarInt(playerid, \"Felszed\") == DROGY)
{
   if(!IsPlayerInDynamicCP(playerid, DROGCP)) return SendClientMessage(playerid, COLOR_RED, \"[HIBA]Nem Vagy a Checkpointba!\");
   SetPVarInt(playerid, \"Drog\", DROG_VAN);
   TogglePlayerControllable(playerid, 0);
   SetTimerEx(\"drogcsin\",4000,0,\"i\",playerid);
   SetTimerEx(\"drogido\",300000,0,\"i\",playerid);
   SendClientMessage(playerid, COLOR_PINK, \"[sERVER]Drogot Készítesz.....\");
}
else SendClientMessage(playerid, COLOR_RED, \"[HIBA]Nem Szedtél Fel Canabist!\");
}
else SendClientMessage(playerid, COLOR_PINK, \"[sERVER]Ne Legyél Drogfüggõ, Pár Perc Múlva Újra Csinálhatsz!\");
return 1;
}
CMD:besziv(playerid, params[])
{
if(GetPVarInt(playerid, \"Drog\") ==  DROG_VAN)
{
SetPlayerDrunkLevel(playerid, 50000);
SetPlayerWeather(playerid, 203);
SetPVarInt(playerid, \"Drog\", DROG_NINCS);
SetTimerEx(\"bead\",60000,0,\"i\",playerid);
SendClientMessage(playerid, COLOR_PINK, \"[sERVER]Most Aztán Szépen Reccsen Vagy! *.*\");
}
else SendClientMessage(playerid, COLOR_RED, \"[HIBA]Nincs Drogod!\");
return 1;
}
CMD:drogelad(playerid, params[])
{
if(GetPVarInt(playerid, \"Drog\") ==  DROG_VAN)
{
new
string[128],
name[MAX_PLAYER_NAME],
name2[MAX_PLAYER_NAME],
PID;
if(sscanf(params, \"u\", PID)) return SendClientMessage(playerid, COLOR_BLUE, \"Használat: /drogelad <ID/Játékos név>\");
if(PID == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, \"[HIBA]Rossz ID/Név!\");
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
GetPlayerName(PID, name2, MAX_PLAYER_NAME);
format(string, sizeof(string), \"%s[sERVER] Elakar adni neked drogot $50000-ért, ha megakarod venni, akkor /megvesz <ID>\", name);
SendClientMessage(PID, COLOR_GREEN, string);
format(string, sizeof(string), \"[sERVER] Elakarsz adni %s-nak/nek drogot!\", name2);
SendClientMessage(playerid, COLOR_GREEN, string);
}
else SendClientMessage(playerid, COLOR_RED, \"[HIBA]Nincsen drogod!\");
return 1;
}
CMD:drogmegvesz(playerid, params[])
{
if(GetPVarInt(playerid, \"Drog\") ==  DROG_NINCS)
{
  new
         string[128],
         name[MAX_PLAYER_NAME],
         name2[MAX_PLAYER_NAME],
         PID;
  if(sscanf(params, \"u\", PID)) return SendClientMessage(playerid, COLOR_BLUE, \"Használat: /drogmegvesz <ID/Játékos név>\");
  if(PID == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, \"[HIBA]Rossz ID/Név!\");
  if(GetPVarInt(PID, \"Drog\") == DROG_NINCS) return SendClientMessage(playerid, COLOR_RED, \"[HIBA]Nincs drog az illetõnél!\");
  SetPVarInt(playerid, \"Drog\", DROG_VAN);
  SetPVarInt(PID, \"Drog\", DROG_NINCS);
  GivePlayerMoney(playerid, -50000);
  GivePlayerMoney(PID, 50000);
 
  GetPlayerName(playerid,name, MAX_PLAYER_NAME);
  format(string, sizeof(string), \"[sERVER]%s Megvette tõled a drogot!\", name);
  SendClientMessage(PID, COLOR_GREEN, string);
  GetPlayerName(PID, name2, MAX_PLAYER_NAME);
  format(string, sizeof(string), \"[sERVER]%s-tõl/tól Megvetted a drogot!\", name2);
  SendClientMessage(playerid, COLOR_GREEN, string);
}
else SendClientMessage(playerid, COLOR_RED, \"[HIBA]Van már drogot!\");
return 1;
}
 
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == DROGCP) return SendClientMessage(playerid, COLOR_BLUE, \"[sERVER]Ha Drogot Szeretnél Csinálni, Akkor /drogcsinal!\");
if(checkpointid == DROGFEL) return SendClientMessage(playerid, COLOR_BLUE, \"[sERVER]Ha Felszeretnéd Szedni a Canabist, akkor /felszed \");
return 1;
}
 
////////////////// Drog timerekhez kapcsolódó eljárások/////////////////////////
forward bead(playerid);
public bead(playerid)
{
SetPlayerDrunkLevel(playerid, 0);
SetPlayerWeather(playerid, 2);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER]Már nem vagy beszívva, aztán óvatosan a füvezéssel!\");
return 1;
}
forward drogido(playerid);
public drogido(playerid)
{
SetPVarInt(playerid, \"Drog\", DROG_NINCS);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER]Ember, mostmár újra csinálhatsz drogot.\");
return 1;
}
forward drogcsin(playerid);
public drogcsin(playerid)
{
SetPVarInt(playerid, \"Drog\", DROG_VAN);
TogglePlayerControllable(playerid, 1);
SendClientMessage(playerid, COLOR_GREEN, \"[sERVER]Csináltál Drogot! Ha eladni akarod, akkor /drogelad, ha elszívni, akkor /besziv!\");
return 1;
}
///////////////////////////////////////***//////////////////////////////////////

 


Legközelebb csak mûködõ kódot publikálj :)
 
Nincsen benne hiba nállad volt a baj...
\"width=500http://kepfeltoltes.hu/130302/281356939n_vtelen_www.kepfeltoltes.hu_.jpg[/img]

Nem elérhető Beckham

  • 1693
  • Noresz
  • Discord: Noresz#4265
    • Profil megtekintése
    • OctansV Alt:v szervere
Alap FreeRoam?!
« Válasz #7 Dátum: 2013. március 02. - 20:28:48 »
0 Show voters
Na ez alap mód nem mint Aldoé :D

Alap FreeRoam?!
« Válasz #8 Dátum: 2013. március 02. - 21:26:20 »
0 Show voters
Hát Igen.!  :D

Nem elérhető Cappsy

  • Adminisztrátor
  • 2754
    • Profil megtekintése
Alap FreeRoam?!
« Válasz #9 Dátum: 2013. március 02. - 22:41:35 »
0 Show voters
Hát igen nem hülyeségbõl írtam amit írtam neki
Gratulálok ez tényleg kezdõ mód (jó értelembe)
ment a like XD

Alap FreeRoam?!
« Válasz #10 Dátum: 2013. március 03. - 09:28:04 »
0 Show voters
Idézetet írta: cappsy date=1362260495\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"34320\" data-ipsquote-contentclass=\"forums_Topic
Hát igen nem hülyeségbõl írtam amit írtam neki
Gratulálok ez tényleg kezdõ mód (jó értelembe)
ment a like XD
 
Köszönöm   :whistle: :thumbsup:

Alap FreeRoam?!
« Válasz #11 Dátum: 2013. március 03. - 20:12:29 »
0 Show voters
ezekszerint nem jó a YSI függvénykönyvtáram. :D jó tudni.

Alap FreeRoam?!
« Válasz #12 Dátum: 2013. március 04. - 19:23:29 »
0 Show voters
Idézetet írta: TengeriMalac date=1362337949\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"34320\" data-ipsquote-contentclass=\"forums_Topic
ezekszerint nem jó a YSI függvénykönyvtáram. :D jó tudni.
 
Na igen az lehet :D
Lehetséges hogy nem 0.3x-es a YSI-d  :D
« Utoljára szerkesztve: 2013. március 04. - 19:25:07 írta Lockett »

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal