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.
csak én nem értem, hogy pontosan mit is akarsz? vagy azt akarod, hogy minden betû más színû legyen, vagy változtatni akarod idõnként? de mindkettõhöz ez kell majd.
~r~ red ~g~ green ~b~ blue ~w~ white ~y~ yellow ~p~ purple ~l~ black ~h~ lighter color
// Returning 0 informs the server that the command hasn\'t been processed by this script. // OnPlayerCommandText will be called in other scripts until one returns 1. // If no scripts return 1, the \'SERVER: Unknown Command\' message will be shown to the player.
[/quote] abból idéztem, amit linkeltél -.- :facepalm:
Szerintem az, hogy 2 moveobject-et parancsra kötsz, még nem lesz filterszkript..... Ha hunboy a neved, feltételezem magyar vagy. Ajánlom figyelmedbe a magyar helyesírás szabályai könyvet. FilterScriptInit-et, és GameModeInit-et is használsz, felesleges. Rengeteg felesleges sor van a kódban, üresen.... Ha az OnPlayerCommandText-et itt return 0-val zárod, más fs-ekben, és a gm-ben nem fognak mûködni a parancsok...
ehhem.... gondoltam így meló után felrakom az Oracle Virtual Box-ra.... hát...csak 32 bitest enged ,pedig 64-biten tolom, és azt is szedtem le.... valaki valami ötlet?
sokkal egyszerûbb lenne, ha nem az 1791-et, vagy mit adtál meg, hanem az adminkocsi-t adnád meg....mivel ha valamelyik scriptbõl hamarabb töltõdik be még autó, vagy épp nem töltõdik be, akkor az id-je változni fog. így mindig más lesz az a kocsi.....
\"{FF0000}Adminautó\", 0xFF0000AA
[/quote] felesleges a szöveg elé is kiírni a színt.... valamint a CreateVehicle-bõl lemaradt a rotz, ami miatt warningol....ha már valamit publikálsz, legalább hibátlan legyen.
én még a paint-et sem találtam elsõre, mikor próbaképp feltettem a a 8-at ::| [/quote]
amióta kijött a 7, azóta az Ultimate-et nyúzom, és mind teljesítményben, mind kinézetben jobb a 8-nál (persze saját vélemény) nem egy ember volt itt a városban sem, akinek gyári 8-ról raktam vissza a 7-et, mert a 8 összeesett, behányta magát... pl.: munkatársam laposa egy sony vaio laptop, gyári 8-cal, i5-ös procivel, és 6 gb rammal... na most...ez az i5 proci a 6 gb rammal még win8-on se csináljon már olyat, hogy az egér beszaggat....szerintem nem természetes dolog.. szóval nálam, amíg nem jön egy ténylegesen jobb, addig a 7 a nyerõ.
Szerintem pont azért csinálták jobb oldalra a keresõ gombot hogy oda beírod hogy paint és ki is adja Amúgy nekem 2 giga rammal és 2.4Ghz-es procival integrált videókártyával simán elfut sõt a teljesítmény is javult és nincs az hogy belassulna hónapok múlva De megint ott vagyunk hogy azért nemrakják fel a win8-at mert sokak szerint nehéz.2-3 nap és az ember kitanulja. XXI. Század... Az emberek lusták. Amúgy gondolom azért akadozott a laptopján a 8 mert még friss volt és a frissítéseket a háttérbe telepítette Nekem is ez volt 1-2 napig meg is ijedtem. De aztán minden oké és már lassan 1 éve fent van.
nem, nem volt friss....1-2 héttel volt idõsebb 1 évnél....mivel néztük a garanciajegyet.... 8.1-re fel volt frissítve, és így volt ez....a gépre nem lehet fogni, mivel egy atomgép....minden frissítés hivatalos...tehát, itt már elgondolkodtató, hogy az 1 éves aktív használat után kezd haldokolni...(azt azért érdemes tudni, hogy sosem kapcsolja ki a laptopot....magyarul a 365 napból minimum 330-340-et megy).
én még a paint-et sem találtam elsõre, mikor próbaképp feltettem a a 8-at ::| amióta kijött a 7, azóta az Ultimate-et nyúzom, és mind teljesítményben, mind kinézetben jobb a 8-nál (persze saját vélemény) nem egy ember volt itt a városban sem, akinek gyári 8-ról raktam vissza a 7-et, mert a 8 összeesett, behányta magát... pl.: munkatársam laposa egy sony vaio laptop, gyári 8-cal, i5-ös procivel, és 6 gb rammal... na most...ez az i5 proci a 6 gb rammal még win8-on se csináljon már olyat, hogy az egér beszaggat....szerintem nem természetes dolog.. szóval nálam, amíg nem jön egy ténylegesen jobb, addig a 7 a nyerõ.
COMMAND:createcamera(playerid, params[]) { // Setup local variables new Float:x, Float:y, Float:z, Float:Angle, MaxSpeed, file[100], File:PFile, LineForFile[100], Msg[128]; // Send the command to all admins so they can see it SendAdminText(playerid, \"/createcamera\", params); // Check if the player has logged in if (APlayerData[playerid][LoggedIn] == true) { // Check if the player\'s admin-level is at least 5 if (APlayerData[playerid][PlayerLevel] >= 5) { if (sscanf(params, \"i\", MaxSpeed)) SendClientMessage(playerid, 0xFF0000AA, \"[Használat]: \\\"/createcamera <max_sebesség>\\\"\"); else { // Get player\'s position and facing angle GetPlayerPos(playerid, x, y, z); GetPlayerFacingAngle(playerid, Angle); z = z - 1.0; // Adjust camera Z-coordinate 1m lower than normal (otherwise the camera floats in the air) // Move the player a bit, otherwise he could get stuck inside the camera-object SetPlayerPos(playerid, x, y + 1.0, z + 1.0); // Save the camera to a file for (new CamID; CamID < MAX_CAMERAS; CamID++) { // Check if this index is free if (ACameras[CamID][CamSpeed] == 0) { // Setup this camera (create the objects and store the data) SetupSpeedCamera(CamID, x, y, z, Angle, MaxSpeed); new str[256]; format(str, sizeof(str), \"Megengedett sebesség: %d km/h!\", MaxSpeed); Create3DTextLabel(str, 0xff0000aa, x, y, z, 80, 0, 0); // Save the file format(file, sizeof(file), CameraFile, CamID); // Construct the complete filename for this camera-file
PFile = fopen(file, io_write); // Open the camera-file for writing
format(LineForFile, 100, \"CamX %f\\r\\n\", x); fwrite(PFile, LineForFile); // And save it to the file format(LineForFile, 100, \"CamY %f\\r\\n\", y); fwrite(PFile, LineForFile); // And save it to the file format(LineForFile, 100, \"CamZ %f\\r\\n\", z); fwrite(PFile, LineForFile); // And save it to the file format(LineForFile, 100, \"CamAngle %f\\r\\n\", Angle); fwrite(PFile, LineForFile); // And save it to the file format(LineForFile, 100, \"CamSpeed %i\\r\\n\", MaxSpeed); fwrite(PFile, LineForFile); // And save it to the file format(LineForFile, 100, \"Megengedett sebesség: %dkm/h!\", MaxSpeed); fwrite(PFile,LineForFile); fclose(PFile); // Close the file // Let the player know he created a new camera format(Msg, 128, \"Sikeresen leraktál egy traffipaxot, ID: %i\", CamID); SendClientMessage(playerid, 0x00FF00FF, Msg); // Exit the function return 1; } } // In case all camera-slots are occupied (100 camera\'s have been created already), let the player know about it format(Msg, 128, \"{FF0000}Nem birsz több traffipaxot lerakni, maximális traffipaxok száma: %i\", MAX_CAMERAS); SendClientMessage(playerid, 0xFFFFFFFF, Msg); } } else return 0; } else return 0; // Let the server know that this was a valid command return 1; } // This function will load the speedcamera\'s datafile (used when the server is started to load all cameras) CameraFile_Load(CamID) { // Setup local variables new file[100], File:CFile, LineFromFile[100], ParameterName[50], ParameterValue[50],text[100]; new Float:x, Float:y, Float:z, Float:rot, MaxSpeed; format(file, sizeof(file), CameraFile, CamID); // Construct the complete filename for this camera-file if (fexist(file)) { CFile = fopen(file, io_read); // Open the camerafile for reading fread(CFile, LineFromFile); // Read the first line of the file // Keep reading until the end of the file is found (no more data) while (strlen(LineFromFile) > 0) { StripNewLine(LineFromFile); // Strip any newline characters from the LineFromFile sscanf(LineFromFile, \"s[50]s[50]\", ParameterName, ParameterValue); // Extract parametername and parametervalue // Store the proper value in the proper place if (strcmp(ParameterName, \"CamX\", false) == 0) // If the parametername is correct (\"CamX\") x = floatstr(ParameterValue); // Store the CamX if (strcmp(ParameterName, \"CamY\", false) == 0) // If the parametername is correct (\"CamY\") y = floatstr(ParameterValue); // Store the CamY if (strcmp(ParameterName, \"CamZ\", false) == 0) // If the parametername is correct (\"CamZ\") z = floatstr(ParameterValue); // Store the CamZ if (strcmp(ParameterName, \"CamAngle\", false) == 0) // If the parametername is correct (\"CamAngle\") rot = floatstr(ParameterValue); // Store the CamAngle if (strcmp(ParameterName, \"CamSpeed\", false) == 0) // If the parametername is correct (\"CamSpeed\") MaxSpeed = strval(ParameterValue); // Store the CamSpeed if (strcmp(ParameterName, \"Megengedett\", false) == 0) // If the parametername is correct (\"CamSpeed\") format(text, sizeof(text), \"%s\",ParameterValue); fread(CFile, LineFromFile); // Read the next line of the file } fclose(CFile); // Close the file // All data has been read about the camera, now setup the camera SetupSpeedCamera(CamID, x, y, z, rot, MaxSpeed); Create3DTextLabel(text, 0xff0000aa, x,y,z, 80, 0, 0); return 1; // Return that the file was read correctly } else return 0; // Return 0 if the file couldn\'t be read (doesn\'t exist) }