Ez a szekció lehetővé teszi a felhasználó által írt összes hozzászólás megtekintését. Vedd figyelembe, hogy csak azokba a fórumokba írt hozzászólásokat látod, amelyekhez hozzáférésed van.
Üzenetek - Lockett
Oldalak: 1 ... 22 23 [24] 25
346
« Dátum: 2013. március 05. - 16:46:58 »
Nem tudom mi lehet a baja de tessék itt van az amit én használok Scriptfiles-ban kell létre hozni egy User mappát és mûködik is.. De a kettõ rendszer össze is kombinálhatod csak az enyém legyen az alapja.. http://www.sendspace.com/file/m5so7e
347
« Dátum: 2013. március 04. - 19:23:29 »
ezekszerint nem jó a YSI függvénykönyvtáram. jó tudni.
Na igen az lehet Lehetséges hogy nem 0.3x-es a YSI-d
348
« Dátum: 2013. március 04. - 19:20:35 »
Sziasztok.. Van egy RP-s kocsi vásárlós Scriptem amit innen a forumról szedtem le.. De van egy kis baj vele... Még pedig ha bele megyek a Pickup-ba kijön a dialog kiválasztom az autót amit akarok és utána semmit nem csinál.. Se az autót nem adja le sem a pénzt nem vonja le.. Segítsetek PLS :thumbsup: #include <a_samp> #define FILTERSCRIPT #pragma tabsize 0 #define P_X 424.2530 #define P_Y 2456.8738 #define P_Z 16.6250 #define KI_X 402.8359 #define KI_Y 2466.7412 #define KI_Z 16.5159 #define KI_ROT 90.3151 #define DIALOGUE (1232) new JarmuAdat[][] = { // A második szám az ár. az elsõ a model. { 400, 1500000 }, // Landstalker { 401, 1500000 }, // Bravura { 404, 8888 }, // Perennial { 410, 1500000 }, // Manana { 419, 1500000 }, // Esperanto { 421, 1500000 }, // Washington { 422, 1500000 }, // Bobcat { 426, 1500000 }, // Premier { 439, 1500000 }, // Stallion { 445, 15000000 }, // Admiral { 462, 120 }, // Faggio { 468, 100 }, // Sanchez { 475, 1500000 }, // Sabre { 478, 1500000 }, // Walton { 489, 1500000 }, // Rancher { 491, 1500000 }, // Virgo { 492, 1500000 }, // Greenwood { 518, 700000 }, // Buccaneer { 540, 1500000 } // Vincent }; enum pdata { vehicle, vehileid } enum vdata { Float:xpos, Float:ypos, Float:zpos, Float:rot, model, color1, color2, plate[32 + 1] } new bool: Civilian[MAX_VEHICLES]; new IdeigID[MAX_PLAYERS]; new playerInfo[MAX_PLAYERS][pdata]; new vehicleInfo[MAX_VEHICLES][vdata]; new Pickup; new SavedListitem[MAX_VEHICLES][64 + 1]; public OnFilterScriptInit( ) { printf( \"[Fl0rian] Jármû vásárlás - BETÖLTVE\" ); LoadVehiclesFromFile( ); Pickup = CreatePickup( 1239, 1, P_X, P_Y, P_Z ); return 1; } public OnFilterScriptExit( ) { printf( \"[Fl0rian] Jármû vásárlás - LEÁLLÍTVA\" ); DestroyPickup( Pickup ); return 1; } public OnPlayerPickUpPickup( playerid, pickupid ) { if( pickupid == Pickup ) { if( playerInfo[playerid][vehicle] == 1 ) return SendClientMessage( playerid, 0xff0000AA, \"HIBA: {ffffff}Neked már van autód.\" ); SetPlayerPos( playerid, P_X, P_Y+1, P_Z ); new dialText[512 + 1]; new tmp[64 + 1]; for( new i; i < sizeof JarmuAdat; i++ ) { format( tmp, sizeof tmp, \"%s. Ár: %d$\\n\", GetVehicleModelName(JarmuAdat[0]), JarmuAdat[1] ); strins( dialText, tmp, strlen(dialText) ); format( SavedListitem, 64, \"%s\", GetVehicleModelName(JarmuAdat[0]) ); } if( !strlen(dialText) ) return 1; ShowPlayerDialog( playerid, DIALOGUE, DIALOG_STYLE_LIST, \"Autóvásárlás\", dialText, \"Tovább\", \"Kilép\" ); } return 1; } public OnPlayerStateChange( playerid, newstate, oldstate ) { if( newstate == PLAYER_STATE_DRIVER ) { if( GetPlayerVehicleID(playerid) != playerInfo[playerid][vehileid] ) { RemovePlayerFromVehicle( playerid ); return SendClientMessage( playerid, 0xff0000AA, \"HIBA: {ffffff}Ez a jármû nem a tiéd.\" ); } } return 1; } public OnPlayerExitVehicle( playerid, vehicleid ) { new Float:x, Float:y, Float:z, Float:r; GetVehiclePos( vehicleid, x, y, z ); GetVehicleZAngle( vehicleid, r ); if( GetPlayerState(playerid) == PLAYER_STATE_DRIVER && vehicleid == playerInfo[playerid][vehileid] ) { DestroyVehicle( vehicleid ); playerInfo[playerid][vehileid] = CreateVehicle( vehicleInfo[playerInfo[playerid][vehileid]][model], x, y, z, r, vehicleInfo[playerInfo[playerid][vehileid]][color1], vehicleInfo[playerInfo[playerid][vehileid]][color2], 0 ); vehicleInfo[playerInfo[playerid][vehileid]][xpos] = x; vehicleInfo[playerInfo[playerid][vehileid]][ypos] = y; vehicleInfo[playerInfo[playerid][vehileid]][zpos] = z; vehicleInfo[playerInfo[playerid][vehileid]][rot] = r; new vname[64 + 1]; format( vname, 64, \"%03d.dat\", vehicleid ); new File: vfile = fopen(vname); #define LustaVagyok(%0) vehicleInfo[playerInfo[playerid][vehileid]][%0] if( vfile ) { new vstring[128 + 1]; format( vstring, 128, \"%f,%f,%f,%f,%d,%d,%d,%s\", LustaVagyok(xpos), LustaVagyok(ypos), LustaVagyok(zpos), LustaVagyok(rot), LustaVagyok(color1), LustaVagyok(color2), LustaVagyok(model), LustaVagyok(plate) ); fwrite( vfile, vstring ); fclose( vfile ); } } return 1; } public OnDialogResponse( playerid, dialogid, response, listitem, inputtext[] ) { switch( dialogid ) { case DIALOGUE: { if( GetPlayerMoney(playerid) < JarmuAdat[listitem][1] ) return SendClientMessage( playerid, 0xff0000AA, \"HIBA: {ffffff}Nincs pénzed erre a jármûre.\" ); IdeigID[playerid] = GetVehicleIDFromName( SavedListitem[listitem] ); new rand1 = random(255); new rand2 = random(255); new veh = CreateVehicle( IdeigID[playerid], KI_X, KI_Y, KI_Z, KI_ROT, rand1, rand2, 0 ); playerInfo[playerid][vehicle] = 1; playerInfo[playerid][vehileid] = veh; vehicleInfo[veh][xpos] = KI_X; vehicleInfo[veh][ypos] = KI_Y; vehicleInfo[veh][zpos] = KI_Z; vehicleInfo[veh][rot] = KI_ROT; vehicleInfo[veh][color1] = rand1; vehicleInfo[veh][color2] = rand2; vehicleInfo[veh][model] = IdeigID[playerid]; Civilian[veh] = true; IdeigID[playerid] = -1; new vname[64 + 1]; format( vname, 64, \"%03d.dat\", veh ); new File: vfile = fopen(vname); #undef LustaVagyok #define LustaVagyok(%0) vehicleInfo[veh][%0] if( vfile ) { new vstring[128 + 1]; format( vstring, 128, \"%f,%f,%f,%f,%d,%d,%d,%s\", LustaVagyok(xpos), LustaVagyok(ypos), LustaVagyok(zpos), LustaVagyok(rot), LustaVagyok(color1), LustaVagyok(color2), LustaVagyok(model), LustaVagyok(plate) ); fwrite( vfile, vstring ); fclose( vfile ); } SendClientMessage( playerid, 0x4a7affAA, \"INFO: {ffffff}Sikeresen megvetted a jármûvet.\" ); } } return 0; } public OnPlayerCommandText( playerid, cmdtext[] ) { if( strcmp(cmdtext, \"/stats\") == 0 ) { new str[128 + 1]; format( str, sizeof(str), \"Kocsi ID-d: %d\", playerInfo[playerid][vehileid] ); return SendClientMessage( playerid, -1, str ); } return 1; } // ================================================================= stock LoadVehiclesFromFile( ) { new string[256 + 1]; new dest[8][64 + 1]; for( new veh = 0; veh < MAX_VEHICLES; veh++ ) { new vname[64 + 1]; format( vname, 64, \"%03d.dat\", veh ); if( fexist(vname) ) { new File: vfile = fopen(vname, io_read); if( vfile ) { fread( vfile, string ); split( string, dest, \',\' ); } new vehi = CreateVehicle( strval(dest[6]), floatstr(dest[0]), floatstr(dest[1]), floatstr(dest[2]), floatstr(dest[3]), strval(dest[4]), strval(dest[5]), 0 ); SetVehicleNumberPlate( vehi, dest[7] ); vehicleInfo[vehi][xpos] = floatstr(dest[0]); vehicleInfo[vehi][ypos] = floatstr(dest[1]); vehicleInfo[vehi][zpos] = floatstr(dest[2]); vehicleInfo[vehi][rot] = floatstr(dest[3]); vehicleInfo[vehi][color1] = strval(dest[4]); vehicleInfo[vehi][color2] = strval(dest[5]); vehicleInfo[vehi][model] = strval(dest[6]); format( vehicleInfo[vehi][plate], 32, \"%s\", dest[7] ); printf( \"%d ID jármû betöltve.\", vehi ); } } return 1; } stock split( const strsrc[], strdest[][], delimiter ) { new i, li; new aNum; new len; while(i <= strlen(strsrc)){ if(strsrc==delimiter || i==strlen(strsrc)){ len = strmid(strdest[aNum], strsrc, li, i, 128); strdest[aNum][len] = 0; li = i+1; aNum++; } i++; } return 1; } new VehicleNames[212][] = { {\"Landstalker\"},{\"Bravura\"},{\"Buffalo\"},{\"Linerunner\"},{\"Perennial\"},{\"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 1\"},{\"Previon\"}, {\"Coach\"},{\"Cabbie\"},{\"Stallion\"},{\"Rumpo\"},{\"RC Bandit\"},{\"Romero\"},{\"Packer\"},{\"Monster\"}, {\"Admiral\"},{\"Squalo\"},{\"Seasparrow\"},{\"Pizzaboy\"},{\"Tram\"},{\"Trailer 2\"},{\"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\"},{\"ZR-350\"},{\"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 LA\"},{\"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 Flat\"},{\"Streak Carriage\"},{\"Kart\"},{\"Mower\"},{\"Duneride\"},{\"Sweeper\"}, {\"Broadway\"},{\"Tornado\"},{\"AT-400\"},{\"DFT-30\"},{\"Huntley\"},{\"Stafford\"},{\"BF-400\"},{\"Newsvan\"}, {\"Tug\"},{\"Trailer 3\"},{\"Emperor\"},{\"Wayfarer\"},{\"Euros\"},{\"Hotdog\"},{\"Club\"},{\"Freight Carriage\"}, {\"Trailer 3\"},{\"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 GetVehicleIDFromName( vehiclename[], type = 0 ) { new integer = INVALID_VEHICLE_ID; new talalat; if( type == 0 ) { for( new i = 0; i < 212; i++ ) { if( strfind(VehicleNames[0], vehiclename, true ) != -1 ) { integer = i + 400; talalat++; } } } else { for( new i = 0; i < 212; i++ ) { if( strcmp(VehicleNames[0], vehiclename, true ) == 0 ) { integer = i + 400; talalat++; } } } if( talalat > 1 ) { printf( \" HIBA: Több találat a következõre: \'%s\'\", vehiclename ); return INVALID_VEHICLE_ID; } if( talalat == 0 ) { printf( \" HIBA: Nincs találat a következõre: \'%s\'\", vehiclename ); } return integer; } stock GetVehicleModelName( modell ) { new STRING[64 + 1]; format( STRING, 64, \"%s\", VehicleNames[modell - 400][0] ); return STRING; } AddPlayerClass(0,424.2530,2456.8738,16.6250,356.0009,0,0,0,0,0,0); // Kocsi vásálás ( Pickup) AddPlayerClass(0,402.8359,2466.7412,16.5159,90.3151,0,0,0,0,0,0); // Itt adja ki a megvett kocsit..
349
« Dátum: 2013. március 03. - 19:26:36 »
Sziasztok! Szükségem lenne egy olyan Kocsi rendszerre ami Rp szerókon van... Olyan kellene hogy meg adok egy kordinátát GM-bena oda állok és akkor kijön egy dialog ott kiválasztom a kocsit amit meg szeretnék venni megveszem aztán meg adok egy másik kordinátát a GM-ben és oda lerakja a kocsit. És egy playernek 1 maximum 2 kocsija lehetne amihez csak neki van kulcsa és el tudná adni mondjuk fél áron a szalonban de másik playernek is eltudná. Valamit az is jó lenne ha lenne benne kölcsönkulcs meg olyan ahol kiszálnak a kocsibol ott a szeró auto leparkolja és respawnál ott lessz. :thumbsup: :angel: :confused:
350
« Dátum: 2013. március 03. - 09:28:04 »
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:
351
« Dátum: 2013. március 02. - 21:53:43 »
Isten vagy köszi :thumbsup:
352
« Dátum: 2013. március 02. - 21:44:47 »
Sziasztok! Szükségem lenne egy olyan Scriptre hogy van egy hely és ha oda állok akkor ki jön egy dialog... bármilyen hely csak meg adok egy kordinátát a scriptben és ott lehet venni kocsikat. Egy playernek egy kocsija lehetne és csak õ tudná vezetni. És ha valaki vesz egy kocsit akkor azt el is menti a szeró.. Elõre is köszönöm.
353
« Dátum: 2013. március 02. - 21:26:20 »
Hát Igen.!
354
« Dátum: 2013. március 02. - 12:02:23 »
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 == { 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... http://kepfeltoltes.hu/130302/281356939n_vtelen_www.kepfeltoltes.hu_.jpg[/img]
355
« Dátum: 2013. március 02. - 09:12:47 »
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.
356
« Dátum: 2013. március 01. - 20:45:29 »
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.
358
« Dátum: 2013. március 01. - 20:21:06 »
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 == { 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; } ///////////////////////////////////////***//////////////////////////////////////
359
« Dátum: 2013. február 28. - 21:30:59 »
360
« Dátum: 2013. február 28. - 21:21:46 »
Hát nemtudom... Én ebben csak azt látom hogy a gyilkos kap Pénzt meg Pontot... :confused: Vagy tévedek :question:
Oldalak: 1 ... 22 23 [24] 25
|