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 - totar
Oldalak: 1 ... 18 19 [20] 21 22 ... 29
286
« Dátum: 2011. július 25. - 11:22:13 »
de honnan tudom leszedni az ujítást, mert ez engem nagyon idegesít. pls help. vagy vmi frissítõlink. pls help
287
« Dátum: 2011. július 25. - 09:30:52 »
Üdv a szervert amikor elindítom ezt írja ki: [09:10:41] ======================================= [09:10:41] | | [09:10:41] | Error: Could not connect to YSI | [09:10:41] | update server (response was 003). | [09:10:41] | | [09:10:41] ======================================= pls help
288
« Dátum: 2011. július 24. - 18:58:47 »
nekem is ez volt a baj de megoldottam: Ücs haver na nekem is volt ez a hibám. megoldottam és hibátlanul mükszik: itt az inc:
/* Copyright 2010 Michael Dabski (mick88) This script is my intelectual property. Please respect that and keep my credits where they are. You are free to modify this script or use parts of the code as long as you give me credit for my work. */ /* MTA .map loader by mick88 Release 0.2 12th December 2010 Requirements: SSCANF2 plugin by Y_Less Stock functions: LoadMtaMap(file[], convert03c) - loads .map file UnloadMtaMap(file[]) - unloads previously loaded .map file UnloadAll() - unloads all .map files IsMapLoaded(file[]) - returns true if map has been loaded (even if loaded partially) Supported map elements: objects, vehicles Supported object data: model, posX, posY, posZ, rotX, rotY, rotZ + SAMP 0.3c objects Supported vehicle data: model, paintjob, mods (upgrades), colors (2 colors), posX, posY, posZ, rotZ, interior, world (dimension), numberplate (0.3c only) Changelog: * 13th September 2010 ver 0.1: - first release * 12th December 2010 ver 0.2 -Added support for SA-MP 0.3c objects -Added storing object/vehicle IDs -Added function to unload single map -This script is now an include -Added support for custom vehicle numberplates (SA-MP 0.3c only) -Added function to unload all current map files -Added function checking if map is loaded -Support for Incognito\'s streamer native UnloadMtaMap(file[MAX_MAP_FILE_PATH]); native LoadMtaMap(file[MAX_MAP_FILE_PATH], convert03c=false); native UnloadAll(); native IsMapLoaded(file[MAX_MAP_FILE_PATH]); */ #include <sscanf2> #define MAX_LOADED_ELEMENTS 5000 //Max number of vehicles + objects #define MAX_MAP_FILE_PATH 80 #define VEHICLE_RESPAWN_DELAY 300 #define MAP_STREAM_DISTANCE 300.0 #if defined _streamer_included #define ADD_OBJECT(%1) CreateDynamicObject(%1, interior, world, -1, MAP_STREAM_DISTANCE) #define DELETE_OBJECT(%1) DestroyDynamicObject(%1) #else //Modify these if you use different streamer: #define ADD_OBJECT(%1) CreateObject(%1, MAP_STREAM_DISTANCE) #define DELETE_OBJECT(%1) DestroyObject(%1) #endif #define MAX_MODS 14 #define MAX_NUMBERPLATE 9 #define ELEMENT_TYPE_NONE 0 #define ELEMENT_TYPE_OBJECT 1 #define ELEMENT_TYPE_VEHICLE 2 enum MapElement { eElementID, eElementType, eElementSource[MAX_MAP_FILE_PATH] } new Float: MapElements[MAX_LOADED_ELEMENTS][MapElement], MinElementID = 0; stock NextElementID() { Increment: MinElementID++; if (MinElementID == MAX_LOADED_ELEMENTS) { print(\"ERROR: Cannot load any more map elements. Current maximum \"#MAX_LOADED_ELEMENTS\" has been reached!\"); return false; } if (MapElements[MinElementID][eElementType]) goto Increment; return true; } // :::::::::::::::::::::::::: STOCK FUNCTIONS ::::::::::::::::::::::::::: stock UnloadMtaMap(file[]) { new n; for (new id=MAX_LOADED_ELEMENTS-1; id >= 0; id--) if (MapElements[id][eElementType] && strcmp(file, MapElements[id][eElementSource], false, MAX_MAP_FILE_PATH) == 0) { switch (MapElements[id][eElementType]) { case ELEMENT_TYPE_OBJECT: DELETE_OBJECT(MapElements[id][eElementID]); case ELEMENT_TYPE_VEHICLE: DestroyVehicle(MapElements[id][eElementID]); } MapElements[id][eElementID] = 0; MapElements[id][eElementType] = ELEMENT_TYPE_NONE; MapElements[id][eElementSource][0] = \'\\0\'; MinElementID = id; } return n; } stock IsMapLoaded(file[]) { for (new id=MAX_LOADED_ELEMENTS-1; id >= 0; id--) if (MapElements[id][eElementType] && strcmp(file, MapElements[id][eElementSource], false, MAX_MAP_FILE_PATH) == 0) return true; return false; } stock UnloadAll() { new n; for (new id=MAX_LOADED_ELEMENTS-1; id >= 0; id--) if (MapElements[id][eElementType]) { switch (MapElements[id][eElementType]) { case ELEMENT_TYPE_OBJECT: DELETE_OBJECT(MapElements[id][eElementID]); case ELEMENT_TYPE_VEHICLE: DestroyVehicle(MapElements[id][eElementID]); } MapElements[id][eElementID] = 0; MapElements[id][eElementType] = ELEMENT_TYPE_NONE; MapElements[id][eElementSource][0] = \'\\0\'; MinElementID = id; } return n; } stock LoadMtaMap(file[], convert03c=false) { if (!fexist(file) || MinElementID == MAX_LOADED_ELEMENTS) { printf(\"Map %s cannot be loaded\", file); return 0; } new File:MapFile=fopen(file), n, string[400], numberplate[MAX_NUMBERPLATE], Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, modelid, paintjob, interior, world, t = GetTickCount(); while(fread(MapFile, string)) { if (!sscanf(string, \"p<\\\">\'object\'\'model=\'d\'interior=\'d\'dimension=\'d\'posX=\'f\'posY=\'f\'posZ=\'f\'rotX=\'f\'rotY=\'f\'rotZ=\'f\", modelid, interior, world, x, y, z, rx, ry, rz)) { if (convert03c) { switch(modelid) { case 14383..14483: modelid += 4248; case 14770..14856: modelid += 4063; case 14858..14871: modelid += 4062; case 18000..18036: modelid += 934; case 18038..18101: modelid += 933; case 14872..14883: modelid += 4163; case 14885..14891: modelid += 4162; case 13590..13667: modelid += 5142; case 14500..14522: modelid += 4310; case 12835..12944: modelid -= 6219; case 14892: modelid += 5009; } } //modelid x y z rx ry rz interior world new objectid = ADD_OBJECT(modelid, x, y, z, rx, ry, rz); if (objectid == INVALID_OBJECT_ID) printf(\"Error, object could not be created. Make sure you don\'t exceed max number of objects. Use stramer if you need to create more than %d objects!\", MAX_OBJECTS); else { #if defined _streamer_included Streamer_SetFloatData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_DRAW_DISTANCE, MAP_STREAM_DISTANCE); #endif MapElements[MinElementID][eElementType] = ELEMENT_TYPE_OBJECT; MapElements[MinElementID][eElementID] = objectid; strcp(file, MapElements[MinElementID][eElementSource]); //MapElements[MinElementID][eElementSource] = file; n++; //printf(\"Object %d loaded into slot %d\", objectid, MinElementID); if (!NextElementID()) { fclose(MapFile); return n; } } } else if (!sscanf(string, \"p<\\\">\'vehicle\'\'paintjob=\'d\'model=\'d\'plate=\'s[\"#MAX_NUMBERPLATE\"]\'interior=\'d\'dimension=\'d\'posX=\'f\'posY=\'f\'posZ=\'f\'rotZ=\'f\", paintjob, modelid, numberplate, interior, world, x, y, z, rz)) { new col1, col2, colors[20], mods[80], modd[MAX_MODS]; sscanf(string, \"p<\\\">\'color=\'s[20] \", colors); sscanf(string, \"p<\\\">\'upgrades=\'s[80] \", mods); sscanf(colors, \"p<,>dd\", col1, col2); sscanf(mods, \"p<,>A<d>(0)[\"#MAX_MODS\"]\", modd); //modelid x y z rz col1 col2 paintjob interior world new vehicleid = CreateVehicle(modelid, x, y, z, rz, col1, col2, VEHICLE_RESPAWN_DELAY); if (vehicleid == INVALID_VEHICLE_ID) print(\"Vehicle failed to load! Check if you exceeded maximum of 2000 vehicles\"); else { SetVehicleNumberPlate(vehicleid, numberplate); SetVehicleToRespawn(vehicleid); for (new i; i < MAX_MODS; i++) if (modd) AddVehicleComponent(vehicleid, modd); ChangeVehiclePaintjob(vehicleid, paintjob); LinkVehicleToInterior(vehicleid, interior); SetVehicleVirtualWorld(vehicleid, world); MapElements[MinElementID][eElementType] = ELEMENT_TYPE_VEHICLE; MapElements[MinElementID][eElementID] = vehicleid; strcp(file, MapElements[MinElementID][eElementSource]); //MapElements[MinElementID][eElementSource] = file; n++; //printf(\"Vehicle %d loaded into slot %d\", vehicleid, MinElementID); if (!NextElementID()) { fclose(MapFile); return n; } } } } fclose(MapFile); printf(\"%d items loaded from \'%s\' in %dms\", n, file, GetTickCount()-t); return n; } stock strcp(from[], to[]) { new i; for (i = 0; from; i++) to = from; to = \'\\0\'; } /* Copyright 2010 Michael Dabski (mick88) This script is my intelectual property. Please respect that and keep my credits where they are. You are free to modify this script or use parts of the code as long as you give me credit for my work. */
289
« Dátum: 2011. július 24. - 18:46:07 »
Üdv a szerverembe volt neon, és régebben mûködött is, de most nem mûködik. pedig minden jó. fs- ba van akkor mûködik, ha benne van a gm-be akkor kiírja, hogy neon telepítve, de nem ad a verdára neont. így van megoldva( KÉSZÍTETTE: [EDT]Quatto vagy ki ): parancs: CMD:neon(playerid, params[]) { ShowPlayerDialog(playerid, 66, DIALOG_STYLE_LIST, \"Válassz neon színt\", \"Kék\\nPiros\\nZöld\\nFehér\\nRózsaszín\\nSárga\\nRendõr fény\\nInterior Fény\\nHátsó Neon\\nElsõ Neon\\nTetõ Neon\\nMinden Neon törlése\", \"Kiválaszt\", \"Kilépés\"); return 1; }
Response: [ if(dialogid == 66) { if(response) { if(listitem == 0) { SetPVarInt(playerid, \"Status\", 1); SetPVarInt(playerid, \"Neon\", CreateObject(18648,0,0,0,0,0,0)); SetPVarInt(playerid, \"Neon1\", CreateObject(18648,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, \"Neon\"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, \"Neon1\"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); } if(listitem == 1) { SetPVarInt(playerid, \"Status\", 1); SetPVarInt(playerid, \"neon2\", CreateObject(18647,0,0,0,0,0,0)); SetPVarInt(playerid, \"neon3\", CreateObject(18647,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, \"neon2\"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, \"neon3\"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); SendClientMessage(playerid, 0xFFFFFFAA, \"Neon telepítve\"); } if(listitem == 2) { SetPVarInt(playerid, \"Status\", 1); SetPVarInt(playerid, \"neon4\", CreateObject(18649,0,0,0,0,0,0)); SetPVarInt(playerid, \"neon5\", CreateObject(18649,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, \"neon4\"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, \"neon5\"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); SendClientMessage(playerid, 0xFFFFFFAA, \"Neon telepítve\"); } if(listitem == 3) { SetPVarInt(playerid, \"Status\", 1); SetPVarInt(playerid, \"neon6\", CreateObject(18652,0,0,0,0,0,0)); SetPVarInt(playerid, \"neon7\", CreateObject(18652,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, \"neon6\"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, \"neon7\"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); SendClientMessage(playerid, 0xFFFFFFAA, \"Neon telepítve\"); } if(listitem == 4) { SetPVarInt(playerid, \"Status\", 1); SetPVarInt(playerid, \"neon8\", CreateObject(18651,0,0,0,0,0,0)); SetPVarInt(playerid, \"neon9\", CreateObject(18651,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, \"neon8\"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, \"neon9\"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); SendClientMessage(playerid, 0xFFFFFFAA, \"Neon telepítve\"); } if(listitem == 5) { SetPVarInt(playerid, \"Status\", 1); SetPVarInt(playerid, \"neon10\", CreateObject(18650,0,0,0,0,0,0)); SetPVarInt(playerid, \"neon11\", CreateObject(18650,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, \"neon10\"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, \"neon11\"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); SendClientMessage(playerid, 0xFFFFFFAA, \"Neon telepítve\"); } if(listitem == 6) { SetPVarInt(playerid, \"Status\", 1); SetPVarInt(playerid, \"neon12\", CreateObject(18646,0,0,0,0,0,0)); SetPVarInt(playerid, \"neon13\", CreateObject(18646,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, \"neon12\"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, \"neon13\"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); SendClientMessage(playerid, 0xFFFFFFAA, \"Neon telepítve\"); } if(listitem == 7) { SetPVarInt(playerid, \"Status\", 1); SetPVarInt(playerid, \"interior\", CreateObject(18646,0,0,0,0,0,0)); SetPVarInt(playerid, \"interior1\", CreateObject(18646,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, \"interior\"), GetPlayerVehicleID(playerid), 0, -0.0, 0, 2.0, 2.0, 3.0); AttachObjectToVehicle(GetPVarInt(playerid, \"interior1\"), GetPlayerVehicleID(playerid), 0, -0.0, 0, 2.0, 2.0, 3.0); SendClientMessage(playerid, 0xFFFFFFAA, \"Interior fény telepítve\"); } if(listitem == { SetPVarInt(playerid, \"Status\", 1); SetPVarInt(playerid, \"back\", CreateObject(18646,0,0,0,0,0,0)); SetPVarInt(playerid, \"back1\", CreateObject(18646,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, \"back\"), GetPlayerVehicleID(playerid), -0.0, -1.5, -1, 2.0, 2.0, 3.0); AttachObjectToVehicle(GetPVarInt(playerid, \"back1\"), GetPlayerVehicleID(playerid), -0.0, -1.5, -1, 2.0, 2.0, 3.0); SendClientMessage(playerid, 0xFFFFFFAA, \"Hátsó neon telepítve\"); } if(listitem == 9) { SetPVarInt(playerid, \"Status\", 1); SetPVarInt(playerid, \"front\", CreateObject(18646,0,0,0,0,0,0)); SetPVarInt(playerid, \"front1\", CreateObject(18646,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, \"front\"), GetPlayerVehicleID(playerid), -0.0, 1.5, -0.6, 2.0, 2.0, 3.0); AttachObjectToVehicle(GetPVarInt(playerid, \"front1\"), GetPlayerVehicleID(playerid), -0.0, 1.5, -0.6, 2.0, 2.0, 3.0); SendClientMessage(playerid, 0xFFFFFFAA, \"Elsõ neon telepítve\"); } if(listitem == 10) { SetPVarInt(playerid, \"Status\", 1); SetPVarInt(playerid, \"undercover\", CreateObject(18646,0,0,0,0,0,0)); SetPVarInt(playerid, \"undercover1\", CreateObject(18646,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, \"undercover\"), GetPlayerVehicleID(playerid), -0.5, -0.2, 0.8, 2.0, 2.0, 3.0); AttachObjectToVehicle(GetPVarInt(playerid, \"undercover1\"), GetPlayerVehicleID(playerid), -0.5, -0.2, 0.8, 2.0, 2.0, 3.0); SendClientMessage(playerid, 0xFFFFFFAA, \"Tetõ fény telepítve\"); } if(listitem == 11) { DestroyObject(GetPVarInt(playerid, \"neon\")); DeletePVar(playerid, \"Status\"); DestroyObject(GetPVarInt(playerid, \"neon1\")); DeletePVar(playerid, \"Status\"); DestroyObject(GetPVarInt(playerid, \"neon2\")); DeletePVar(playerid, \"Status\"); DestroyObject(GetPVarInt(playerid, \"neon3\")); DeletePVar(playerid, \"Status\"); DestroyObject(GetPVarInt(playerid, \"neon4\")); DeletePVar(playerid, \"Status\"); DestroyObject(GetPVarInt(playerid, \"neon5\")); DeletePVar(playerid, \"Status\"); DestroyObject(GetPVarInt(playerid, \"neon6\")); DeletePVar(playerid, \"Status\"); DestroyObject(GetPVarInt(playerid, \"neon7\")); DeletePVar(playerid, \"Status\"); DestroyObject(GetPVarInt(playerid, \"neon8\")); DeletePVar(playerid, \"Status\"); DestroyObject(GetPVarInt(playerid, \"neon9\")); DeletePVar(playerid, \"Status\"); DestroyObject(GetPVarInt(playerid, \"neon10\")); DeletePVar(playerid, \"Status\"); DestroyObject(GetPVarInt(playerid, \"neon11\")); DeletePVar(playerid, \"Status\"); DestroyObject(GetPVarInt(playerid, \"neon12\")); DeletePVar(playerid, \"Status\"); DestroyObject(GetPVarInt(playerid, \"neon13\")); DeletePVar(playerid, \"Status\"); DestroyObject(GetPVarInt(playerid, \"interior\")); DeletePVar(playerid, \"Status\"); DestroyObject(GetPVarInt(playerid, \"interior1\")); DeletePVar(playerid, \"Status\"); DestroyObject(GetPVarInt(playerid, \"back\")); DeletePVar(playerid, \"Status\"); DestroyObject(GetPVarInt(playerid, \"back1\")); DeletePVar(playerid, \"Status\"); DestroyObject(GetPVarInt(playerid, \"front\")); DeletePVar(playerid, \"Status\"); DestroyObject(GetPVarInt(playerid, \"front1\")); DeletePVar(playerid, \"Status\"); DestroyObject(GetPVarInt(playerid, \"undercover\")); DeletePVar(playerid, \"Status\"); DestroyObject(GetPVarInt(playerid, \"undercover1\")); DeletePVar(playerid, \"Status\"); } } } /code] pls valaki help
290
« Dátum: 2011. július 24. - 18:42:34 »
Ücs haver na nekem is volt ez a hibám. megoldottam és hibátlanul mükszik: itt az inc: /* Copyright 2010 Michael Dabski (mick88) This script is my intelectual property. Please respect that and keep my credits where they are. You are free to modify this script or use parts of the code as long as you give me credit for my work. */ /* MTA .map loader by mick88 Release 0.2 12th December 2010 Requirements: SSCANF2 plugin by Y_Less Stock functions: LoadMtaMap(file[], convert03c) - loads .map file UnloadMtaMap(file[]) - unloads previously loaded .map file UnloadAll() - unloads all .map files IsMapLoaded(file[]) - returns true if map has been loaded (even if loaded partially) Supported map elements: objects, vehicles Supported object data: model, posX, posY, posZ, rotX, rotY, rotZ + SAMP 0.3c objects Supported vehicle data: model, paintjob, mods (upgrades), colors (2 colors), posX, posY, posZ, rotZ, interior, world (dimension), numberplate (0.3c only) Changelog: * 13th September 2010 ver 0.1: - first release * 12th December 2010 ver 0.2 -Added support for SA-MP 0.3c objects -Added storing object/vehicle IDs -Added function to unload single map -This script is now an include -Added support for custom vehicle numberplates (SA-MP 0.3c only) -Added function to unload all current map files -Added function checking if map is loaded -Support for Incognito\'s streamer native UnloadMtaMap(file[MAX_MAP_FILE_PATH]); native LoadMtaMap(file[MAX_MAP_FILE_PATH], convert03c=false); native UnloadAll(); native IsMapLoaded(file[MAX_MAP_FILE_PATH]); */ #include <sscanf2> #define MAX_LOADED_ELEMENTS 5000 //Max number of vehicles + objects #define MAX_MAP_FILE_PATH 80 #define VEHICLE_RESPAWN_DELAY 300 #define MAP_STREAM_DISTANCE 300.0 #if defined _streamer_included #define ADD_OBJECT(%1) CreateDynamicObject(%1, interior, world, -1, MAP_STREAM_DISTANCE) #define DELETE_OBJECT(%1) DestroyDynamicObject(%1) #else //Modify these if you use different streamer: #define ADD_OBJECT(%1) CreateObject(%1, MAP_STREAM_DISTANCE) #define DELETE_OBJECT(%1) DestroyObject(%1) #endif #define MAX_MODS 14 #define MAX_NUMBERPLATE 9 #define ELEMENT_TYPE_NONE 0 #define ELEMENT_TYPE_OBJECT 1 #define ELEMENT_TYPE_VEHICLE 2 enum MapElement { eElementID, eElementType, eElementSource[MAX_MAP_FILE_PATH] } new Float: MapElements[MAX_LOADED_ELEMENTS][MapElement], MinElementID = 0; stock NextElementID() { Increment: MinElementID++; if (MinElementID == MAX_LOADED_ELEMENTS) { print(\"ERROR: Cannot load any more map elements. Current maximum \"#MAX_LOADED_ELEMENTS\" has been reached!\"); return false; } if (MapElements[MinElementID][eElementType]) goto Increment; return true; } // :::::::::::::::::::::::::: STOCK FUNCTIONS ::::::::::::::::::::::::::: stock UnloadMtaMap(file[]) { new n; for (new id=MAX_LOADED_ELEMENTS-1; id >= 0; id--) if (MapElements[id][eElementType] && strcmp(file, MapElements[id][eElementSource], false, MAX_MAP_FILE_PATH) == 0) { switch (MapElements[id][eElementType]) { case ELEMENT_TYPE_OBJECT: DELETE_OBJECT(MapElements[id][eElementID]); case ELEMENT_TYPE_VEHICLE: DestroyVehicle(MapElements[id][eElementID]); } MapElements[id][eElementID] = 0; MapElements[id][eElementType] = ELEMENT_TYPE_NONE; MapElements[id][eElementSource][0] = \'\\0\'; MinElementID = id; } return n; } stock IsMapLoaded(file[]) { for (new id=MAX_LOADED_ELEMENTS-1; id >= 0; id--) if (MapElements[id][eElementType] && strcmp(file, MapElements[id][eElementSource], false, MAX_MAP_FILE_PATH) == 0) return true; return false; } stock UnloadAll() { new n; for (new id=MAX_LOADED_ELEMENTS-1; id >= 0; id--) if (MapElements[id][eElementType]) { switch (MapElements[id][eElementType]) { case ELEMENT_TYPE_OBJECT: DELETE_OBJECT(MapElements[id][eElementID]); case ELEMENT_TYPE_VEHICLE: DestroyVehicle(MapElements[id][eElementID]); } MapElements[id][eElementID] = 0; MapElements[id][eElementType] = ELEMENT_TYPE_NONE; MapElements[id][eElementSource][0] = \'\\0\'; MinElementID = id; } return n; } stock LoadMtaMap(file[], convert03c=false) { if (!fexist(file) || MinElementID == MAX_LOADED_ELEMENTS) { printf(\"Map %s cannot be loaded\", file); return 0; } new File:MapFile=fopen(file), n, string[400], numberplate[MAX_NUMBERPLATE], Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, modelid, paintjob, interior, world, t = GetTickCount(); while(fread(MapFile, string)) { if (!sscanf(string, \"p<\\\">\'object\'\'model=\'d\'interior=\'d\'dimension=\'d\'posX=\'f\'posY=\'f\'posZ=\'f\'rotX=\'f\'rotY=\'f\'rotZ=\'f\", modelid, interior, world, x, y, z, rx, ry, rz)) { if (convert03c) { switch(modelid) { case 14383..14483: modelid += 4248; case 14770..14856: modelid += 4063; case 14858..14871: modelid += 4062; case 18000..18036: modelid += 934; case 18038..18101: modelid += 933; case 14872..14883: modelid += 4163; case 14885..14891: modelid += 4162; case 13590..13667: modelid += 5142; case 14500..14522: modelid += 4310; case 12835..12944: modelid -= 6219; case 14892: modelid += 5009; } } //modelid x y z rx ry rz interior world new objectid = ADD_OBJECT(modelid, x, y, z, rx, ry, rz); if (objectid == INVALID_OBJECT_ID) printf(\"Error, object could not be created. Make sure you don\'t exceed max number of objects. Use stramer if you need to create more than %d objects!\", MAX_OBJECTS); else { #if defined _streamer_included Streamer_SetFloatData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_DRAW_DISTANCE, MAP_STREAM_DISTANCE); #endif MapElements[MinElementID][eElementType] = ELEMENT_TYPE_OBJECT; MapElements[MinElementID][eElementID] = objectid; strcp(file, MapElements[MinElementID][eElementSource]); //MapElements[MinElementID][eElementSource] = file; n++; //printf(\"Object %d loaded into slot %d\", objectid, MinElementID); if (!NextElementID()) { fclose(MapFile); return n; } } } else if (!sscanf(string, \"p<\\\">\'vehicle\'\'paintjob=\'d\'model=\'d\'plate=\'s[\"#MAX_NUMBERPLATE\"]\'interior=\'d\'dimension=\'d\'posX=\'f\'posY=\'f\'posZ=\'f\'rotZ=\'f\", paintjob, modelid, numberplate, interior, world, x, y, z, rz)) { new col1, col2, colors[20], mods[80], modd[MAX_MODS]; sscanf(string, \"p<\\\">\'color=\'s[20] \", colors); sscanf(string, \"p<\\\">\'upgrades=\'s[80] \", mods); sscanf(colors, \"p<,>dd\", col1, col2); sscanf(mods, \"p<,>A<d>(0)[\"#MAX_MODS\"]\", modd); //modelid x y z rz col1 col2 paintjob interior world new vehicleid = CreateVehicle(modelid, x, y, z, rz, col1, col2, VEHICLE_RESPAWN_DELAY); if (vehicleid == INVALID_VEHICLE_ID) print(\"Vehicle failed to load! Check if you exceeded maximum of 2000 vehicles\"); else { SetVehicleNumberPlate(vehicleid, numberplate); SetVehicleToRespawn(vehicleid); for (new i; i < MAX_MODS; i++) if (modd) AddVehicleComponent(vehicleid, modd); ChangeVehiclePaintjob(vehicleid, paintjob); LinkVehicleToInterior(vehicleid, interior); SetVehicleVirtualWorld(vehicleid, world); MapElements[MinElementID][eElementType] = ELEMENT_TYPE_VEHICLE; MapElements[MinElementID][eElementID] = vehicleid; strcp(file, MapElements[MinElementID][eElementSource]); //MapElements[MinElementID][eElementSource] = file; n++; //printf(\"Vehicle %d loaded into slot %d\", vehicleid, MinElementID); if (!NextElementID()) { fclose(MapFile); return n; } } } } fclose(MapFile); printf(\"%d items loaded from \'%s\' in %dms\", n, file, GetTickCount()-t); return n; } stock strcp(from[], to[]) { new i; for (i = 0; from; i++) to = from; to = \'\\0\'; } /* Copyright 2010 Michael Dabski (mick88) This script is my intelectual property. Please respect that and keep my credits where they are. You are free to modify this script or use parts of the code as long as you give me credit for my work. */
291
« Dátum: 2011. július 23. - 08:10:23 »
Üdv ésis beleszólnék a témába. Na ez a probléma engem is érdekelne, én a kadaradam által lefordított, jármûrendszert használom. És ottis CreateVehicleEx van. Esetleg valahogy ugy nem lehetne megoldani, hogy a stock nevét írjuk bele. ugyértem , hogy DestroyVehicle(CreateVehicleEx()); Mert ez így warnngozink Valahogy igyen módszerrel nem lehet megoldani? pls nekem is help
292
« Dátum: 2011. július 19. - 15:58:42 »
Na köszi hoyg eszt elmondtad, írnál egy példát, mert nem értem hogy hogy csinájjam meg, nem akar sikerülni. pls leírnád.
293
« Dátum: 2011. július 19. - 15:55:59 »
Üdv Írtam volna egy kamionos munkát, és azt szeretném megkérdezni, hogy ez miért nem jó?: public Kamionosfizu() { new Float: pos[4]; for(new i=0; i<MAX_PLAYERS; i++) { if(gTeam == TEAM_KAMIONOS) { if(GetPlayerState(i) == PLAYER_STATE_DRIVER) { if(GetVehicleTrailer(GetPlayerVehicleID(i))) { GetPlayerPos(i, pos[1], pos[2], pos[3]); } if(IsPlayerInRangeOfPoint(i, 1000, pos[1], pos[2], pos[3])) //írd be a sugarat, x,y,z pozíciót { SendClientMessage(i,0xFFFFFFFF,\"Fizetést kaptál 700 $-t\"); //az üzenet GivePlayerMoney(i, 700); } } } } return 1; }
Ezt egy timerrel frissítem ami az ongamemodeint alatt van. És az a baj, hogy nem megyek sehova , és telik az idõ , és ad pénzt. ezt hogy lehet kijavítani? pls help
294
« Dátum: 2011. július 18. - 06:54:56 »
Van egy reg/login rendszerem(dialogos) de nem akar mûködni. 1.nek amikor regelek be és bejelentkezek , akkor minden jó. De hha már be vok regelve , és átírom az admin szintemet, vagy bármit, pénzt, bármit akkor jelentkezek befele , és elrontom a jelszót, és beenged.Utánna kilépek és au users mappába megnézem a dolgokat, és ott ír a jelszó elÕtt egy y betût. Úgy írja, hogy y Jelszó = vmi. Szerintem ezért enged be minden jelszóval. De ha nem írok át semmit akkor meg ha elrontom a jelszót akkor kidob. Szoval magamse értem , hogy ez mitõl van. plssegítsen vki. help Learom már az egészet: Ez van a OnDialogResponse alatt if(dialogid == ReGiStEr) { if(response) { new name[MAX_PLAYER_NAME]; new Ip[16]; GetPlayerName(playerid, name, sizeof(name)); if(strlen(inputtext) == 0) { format(string, sizeof string, \"Üdv %s! \\nTe még nem vagy regisztrálva! \\n\\nKérjük regisztrálj.\", name); ShowPlayerDialog(playerid, ReGiStEr, DIALOG_STYLE_INPUT, \"Regisztráció\", string, \"Regisztrálás\", \"Kilépés.\"); return 0; } format(file,sizeof(file),\"/Users/%s.ini\",name); if(!fexist(file)) { dini_Create(file); GetPlayerIp(playerid,Ip,sizeof(Ip)); dini_Set(file,\"Jelszó\", inputtext); dini_Set(file,\"Ip\",Ip); new strdate[20]; new hour, minute, second; new year,month,day; getdate(year, month, day); gettime(hour,minute,second); format(strdate, sizeof(strdate), \"%d/%d/%d/%d/%d/%d\",year,month,day,hour,minute,second); dini_Set(file,\"Utoljára a szerveren\",strdate); dini_IntSet(file,\"Pénz\",PlayerInfo[playerid][Money] = 18000000); dini_IntSet(file,\"Score\",PlayerInfo[playerid][score] = 0); dini_IntSet(file,\"Körözés\",PlayerInfo[playerid][Wanted] = 0); dini_IntSet(file,\"Halálok\", PlayerInfo[playerid][Deaths] = 0); dini_IntSet(file,\"Ölések\", PlayerInfo[playerid][Kills] = 0); dini_IntSet(file,\"Admin\", PlayerInfo[playerid][Admin] = 0); dini_IntSet(file,\"Kitiltva\", PlayerInfo[playerid][banned] = 0); format(string, sizeof string, \"Bejelentkezés \\n\\nÜdv %s! \\nTe regisztrálva vagy! \\n\\nKérjük jelentkezz be.\", name); ShowPlayerDialog(playerid, LoGiN, DIALOG_STYLE_INPUT, \"Bejelentkezés\", string, \"Belépés\", \"Kilépés.\"); SendClientMessage(playerid, COLOR_GREEN, \"***Sikeresen be regisztráltál!\"); GetPlayerName(playerid, name, sizeof(name)); SendClientMessage(playerid,COLOR_ORANGE,\"<__Jelentkezz be!\"); } else { Kick(playerid); SendClientMessage(playerid, COLOR_RED, \"***A regisztráció kötelezõ!\"); GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), \"*** %s kilett rúgva a szerverröl, mert nem akart beregisztrálni!\", name);//kiírás(mindenki látja) SendClientMessageToAll(COLOR_ORANGE, string); //Szín } } } if(dialogid == LoGiN) { if(response) { new name[MAX_PLAYER_NAME]; new PlayerName[24]; new Ip[16]; if(strlen(inputtext) == 0) { GetPlayerName(playerid, PlayerName, sizeof PlayerName); format(string, sizeof string, \"Bejelentkezés \\n\\nÜdv %s! \\nTe regisztrálva vagy! \\n\\nKérjük jelentkezz be.\", PlayerName); ShowPlayerDialog(playerid, LoGiN, DIALOG_STYLE_INPUT, \"Bejelentkezés\", string, \"Belépés\", \"Kilépés.\"); return 0; } GetPlayerName(playerid, name, sizeof(name)); format(file,sizeof(file),\"/Users/%s.ini\",name); if(fexist(file)) { if(strcmp(inputtext, dini_Get(file, \"Jelszó\"), false)) { SendClientMessage(playerid, COLOR_RED, \"***Hiba:Nem jó jelszó!\"); GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); printf(\"%s Nem tudott bejelentkezni!\", name); GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), \"*** %s kilett rúgva a szerverröl, mert nem tudott bejelentkezni!\", name);//kiírás(mindenki látja) SendClientMessageToAll(COLOR_ORANGE, string); //Szín Kick(playerid); } else { GetPlayerIp(playerid,Ip,sizeof(Ip)); dini_Set(file,\"Utoljára használt IP\",Ip); new strdate[20]; new hour, minute, second; new year,month,day; getdate(year, month, day); gettime(hour,minute,second); format(strdate, sizeof(strdate), \"%d/%d/%d/%d/%d/%d\",year,month,day,hour,minute,second); dini_Set(file,\"Utoljára a szerveren\",strdate); GivePlayerMoney(playerid, dini_Int(file,\"Pénz\")); SetPlayerScore(playerid, dini_Int(file,\"Score\")); PlayerInfo[playerid][Deaths] = dini_Int(file,\"Halálok\"); PlayerInfo[playerid][Admin] = dini_Int(file,\"Admin\"); PlayerInfo[playerid][Kills] = dini_Int(file,\"Ölések\"); PlayerInfo[playerid][banned] = dini_Int(file,\"Kitiltva\"); SetPlayerWantedLevel(playerid, dini_Int(file,\"Körözés\")); if(PlayerInfo[playerid][banned] == 1) { SendClientMessage(playerid,COLOR_RED,\"HIBA: Ez a felhasználó bannolva!\"); Kick(playerid); } SendClientMessage(playerid, COLOR_GREEN, \"***Sikeresen be jelentkeztél!\"); TogglePlayerSpectating(playerid, 0); } } } } return 0; }
295
« Dátum: 2011. július 17. - 16:28:13 »
Üdv megmondaná vki hogy ebbe mi a rossz, mert ha vki beregel és bejelentkezne, és elrontja a jelszót, akkor is beengedi. pls help nézuzétek má meg hogy mi a gixer ebbe: if(dialogid == ReGiStEr) { if(response) { new name[MAX_PLAYER_NAME]; new Ip[16]; new strdate[20], year,month,day; new hour, minute, second; GetPlayerName(playerid, name, sizeof(name)); if(strlen(inputtext) < 4 || strlen(inputtext) > 20) { SendClientMessage(playerid,COLOR_RED,\"Hiba: A jelszó kissebb/nagyobb a megengedett karaktereknél!\"); format(string, sizeof string, \"Üdv %s! \\nTe még nem vagy regisztrálva! \\n\\nKérjük regisztrálj.\", name); ShowPlayerDialog(playerid, ReGiStEr, DIALOG_STYLE_INPUT, \"Regisztráció\", string, \"Regisztrálás\", \"Kilépés.\"); return 0; } if(strlen(inputtext) == 0) { format(string, sizeof string, \"Üdv %s! \\nTe még nem vagy regisztrálva! \\n\\nKérjük regisztrálj.\", name); ShowPlayerDialog(playerid, ReGiStEr, DIALOG_STYLE_INPUT, \"Regisztráció\", string, \"Regisztrálás\", \"Kilépés.\"); return 0; } format(file,sizeof(file),\"/Users/%s.ini\",name); if(!fexist(file)) { dini_Create(file); getdate(year, month, day); gettime(hour,minute,second); GetPlayerIp(playerid,Ip,sizeof(Ip)); dini_Set(file,\"Jelszó\", inputtext); dini_Set(file,\"Ip\",Ip); dini_Set(file,\"Regisztrált\",strdate); format(strdate, sizeof(strdate), \"%d/%d/%d/%d/%d/%d\",year,month,day,hour,minute,second); dini_IntSet(file,\"Pénz\",PlayerInfo[playerid][Money] = 18000000); dini_IntSet(file,\"Score\",PlayerInfo[playerid][score] = 0); dini_IntSet(file,\"Körözés\",PlayerInfo[playerid][Wanted] = 0); dini_IntSet(file,\"Halálok\", PlayerInfo[playerid][Deaths] = 0); dini_IntSet(file,\"Ölések\", PlayerInfo[playerid][Kills] = 0); dini_IntSet(file,\"Admin\", PlayerInfo[playerid][Admin] = 0); dini_IntSet(file,\"Kitiltva\", PlayerInfo[playerid][banned] = 0); format(string, sizeof string, \"Bejelentkezés \\n\\nÜdv %s! \\nTe regisztrálva vagy! \\n\\nKérjük jelentkezz be.\", name); ShowPlayerDialog(playerid, LoGiN, DIALOG_STYLE_INPUT, \"Bejelentkezés\", string, \"Belépés\", \"Kilépés.\"); SendClientMessage(playerid, COLOR_GREEN, \"***Sikeresen be regisztráltál!\"); GetPlayerName(playerid, name, sizeof(name)); SendClientMessage(playerid,COLOR_ORANGE,\"<__Jelentkezz be!\"); } else { Kick(playerid); SendClientMessage(playerid, COLOR_RED, \"***A regisztráció kötelezõ!\"); GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), \"*** %s kilett rúgva a szerverröl, mert nem akart beregisztrálni!\", name);//kiírás(mindenki látja) SendClientMessageToAll(COLOR_ORANGE, string); //Szín } } } if(dialogid == LoGiN) { if(response) { new name[MAX_PLAYER_NAME]; new strdate[20], year,month,day; new hour, minute, second; new PlayerName[24]; new Ip[16]; if(strlen(inputtext) == 0) { GetPlayerName(playerid, PlayerName, sizeof PlayerName); format(string, sizeof string, \"Bejelentkezés \\n\\nÜdv %s! \\nTe regisztrálva vagy! \\n\\nKérjük jelentkezz be.\", PlayerName); ShowPlayerDialog(playerid, LoGiN, DIALOG_STYLE_INPUT, \"Bejelentkezés\", string, \"Belépés\", \"Kilépés.\"); return 0; } GetPlayerName(playerid, name, sizeof(name)); format(file,sizeof(file),\"/Users/%s.ini\",name); if(fexist(file)) { if(strcmp(inputtext, dini_Get(file, \"Jelszó\"), true) == 0) { GetPlayerIp(playerid,Ip,sizeof(Ip)); dini_Set(file,\"Utoljára használt IP\",Ip); getdate(year, month, day); gettime(hour,minute,second); dini_Set(file,\"Utoljára a szerveren\",strdate); format(strdate, sizeof(strdate), \"%d/%d/%d/%d/%d/%d\",year,month,day,hour,minute,second); GivePlayerMoney(playerid, dini_Int(file,\"Pénz\")); SetPlayerScore(playerid, dini_Int(file,\"Score\")); PlayerInfo[playerid][Deaths] = dini_Int(file,\"Halálok\"); PlayerInfo[playerid][Admin] = dini_Int(file,\"Admin\"); PlayerInfo[playerid][Kills] = dini_Int(file,\"Ölések\"); PlayerInfo[playerid][banned] = dini_Int(file,\"Kitiltva\"); SetPlayerWantedLevel(playerid, dini_Int(file,\"Körözés\")); if(PlayerInfo[playerid][banned] == 1) { SendClientMessage(playerid,COLOR_RED,\"HIBA: Ez a felhasználó bannolva!\"); Kick(playerid); } SendClientMessage(playerid, COLOR_GREEN, \"***Sikeresen be jelentkeztél!\"); TogglePlayerSpectating(playerid, 0); } else { SendClientMessage(playerid, COLOR_RED, \"***Hiba:Nem jó jelszó!\"); GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); printf(\"%s Nem tudott bejelentkezni!\", name); GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), \"*** %s kilett rúgva a szerverröl, mert nem tudott bejelentkezni!\", name);//kiírás(mindenki látja) SendClientMessageToAll(COLOR_ORANGE, string); //Szín Kick(playerid); } } } } return 0; }
296
« Dátum: 2011. július 16. - 17:31:42 »
2. kérdésedre a válasz töröld ki ezt a részt: public Audio_OnSetPack(audiopack[]) { for (new i = 0; i < MAX_PLAYERS; i++) { Audio_TransferPack(i); } }
Nekem így a pawno nem írt errort, de nem teszteltem le egy próbát megér
297
« Dátum: 2011. július 15. - 18:34:21 »
Oké akkor mivel lehetne kiszámolni? pls help.
298
« Dátum: 2011. július 15. - 16:53:07 »
Bocsi de már segítettek a gta forumon lehet zárni
299
« Dátum: 2011. július 15. - 11:58:01 »
mert checkpoint-al szarabb igy a jó , mert buszosmunkához kell és kilóméterre akarom megcsinálni , mint igaziba.
300
« Dátum: 2011. július 15. - 11:54:01 »
Üdv!! hogy lehetne azt megcsinálni , hogy a player aki dolgozik 50 méterenként kapjon 500 $-t? pls help
Oldalak: 1 ... 18 19 [20] 21 22 ... 29
|