Jump to content

andy47

Membru
  • Posts

    520
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by andy47

  1. Acel stock SaveObjects l-am vazut ceva timp in urma pe sa-mp.com, daca nu ma indoiesc este identic. Tipul avea aceeasi problema. De ce sa folosesti file? cand ca pe mysql e mult mai usor.
  2. Nu garantez ca functioneaza: stock SaveObjects() { new File:file2, file[256]; set(file, "objects.txt"); file2 = fopen(file, io_write); for(new i=0;i<ObjectInfo;i++) { new coordsstring[256]; format(coordsstring, sizeof(coordsstring), "CreateDynamicObject(%d, %f, %f, %f, %f, %f, %f, %d)\n", ObjectIDTaken[i], ObjectInfo[i][objModel], ObjectInfo[i][objY], ObjectInfo[i][objZ], ObjectInfo[i][objRX], ObjectInfo[i][objRY], ObjectInfo[i][objRZ], ObjectInfo[i][objSaved], ObjectInfo[i][objVW]); fwrite(file2, coordsstring); fclose(file2); } return ( true ) ; }
  3. andy47

    Problema tag

    Posteaza codul care loadeaza clanurile si comanda cu care setezi tag-ul .
  4. Salut! Incearca sa pleci de la idee asta de baza, adaugi tu codurile acolo care le mai vrei. Eu am pus-o sub forma de comanda deoarece nu stau sa tot verific cat este ora: public OnPlayerEnterCheckpoint(playerid) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 522) { if(stunton[playerid] == 1) { //new playername[25]; //GetPlayerName(playerid, playername, sizeof(playername)); //new randmoney = 3500 + random(90000); DisablePlayerCheckpoint(playerid); stunton[playerid] = 0; RemovePlayerMapIcon(playerid, 1274); DestroyPickup(pickup_event); //format(string,sizeof(string),"{CF165D}%s A castigat STUNT-ul, acesta a castigat %d$.", playername, randmoney); //SendClientMessageToAll( -1, string); //GivePlayerCash(playerid, randmoney); //Update(playerid, pCashx); SendClientMessage(playerid, -1, "Un nou stunt incepe la 3 minute."); SendClientMessage(playerid, -1, "STUNT-ul este in perioada de probe Nu este finalizat."); SendClientMessage(playerid, -1, "Ai gasit-o pe Elodia!"); } } return 1; } CMD:estetimpul(playerid, params[]) { SetTimerEx("bestandy", 1000, false, "i", playerid); return ( true ) ; } forward bestandy(playerid); public bestandy(playerid) { for(new i = 0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { new randoms = random(sizeof(stuntnrg)); { SetPlayerCheckpoint(i, stuntnrg[randoms][0], stuntnrg[randoms][1], stuntnrg[randoms][2], 1.0); SetPlayerMapIcon(playerid, 53, stuntnrg[randoms][0], stuntnrg[randoms][1], stuntnrg[randoms][2], 53, MAPICON_GLOBAL); pickup_event = CreatePickup(1274, 2, stuntnrg[randoms][0], stuntnrg[randoms][1], stuntnrg[randoms][2], GetPlayerVirtualWorld(playerid)); SendClientMessageToAll(-1, "A new stunting event has just started. It has been marked on your Map with a Black&White Race Flag Get there first and you'II win."); stunton[playerid] = 1; } } } return ( true ) ; }
  5. Salutare lume! Ma gandeam sa revin pe sa-mp si am o nelamurire, se mai merita sa-ti deschizi server de sa-mp?
  6. Nici nu stiu de ce l-ai postat. E un script vechi si nu este creat de tine, nici macar nu sti ce-i ala dcmd. Mai bine lasate.
  7. Am rezolvat!
  8. Si separat le-am facut si tot nu merge.
  9. Problema intalnita (descriere): Pai am TD-ul din urmatoare poza si cand apas pe 0 nu merge imi acceseaza butonul Acces. Cand apas Clear merge dar cand apas 0 nu.Ero(area / rile) / warning-(ul / urile):Liniile de cod / sursa / script-ul(obligatoriu): TextDrawPin[ 11 ] = TextDrawCreate(533.000000, 287.875000, "Acces"); TextDrawLetterSize(TextDrawPin[ 11 ], 0.170999, 1.731249); TextDrawAlignment(TextDrawPin[ 11 ], 1); TextDrawColor(TextDrawPin[ 11 ], 16711935); TextDrawSetShadow(TextDrawPin[ 11 ], 0); TextDrawSetOutline(TextDrawPin[ 11 ], 1); TextDrawBackgroundColor(TextDrawPin[ 11 ], 51); TextDrawFont(TextDrawPin[ 11 ], 2); TextDrawSetProportional(TextDrawPin[ 11 ], 1); TextDrawSetSelectable(TextDrawPin[ 11 ], true); TextDrawPin[ 12 ] = TextDrawCreate(603.000000, 287.875000, "Clear"); TextDrawLetterSize(TextDrawPin[ 12 ], 0.170999, 1.731248); TextDrawAlignment(TextDrawPin[ 12 ], 1); TextDrawColor(TextDrawPin[ 12 ], -2147483393); TextDrawSetShadow(TextDrawPin[ 12 ], 0); TextDrawSetOutline(TextDrawPin[ 12 ], 1); TextDrawBackgroundColor(TextDrawPin[ 12 ], 51); TextDrawFont(TextDrawPin[ 12 ], 2); TextDrawSetProportional(TextDrawPin[ 12 ], 1); TextDrawSetSelectable(TextDrawPin[ 12 ], true); public OnPlayerClickTextDraw(playerid, Text:clickedid) { if(_:clickedid != INVALID_TEXT_DRAW) { if(clickedid == TextDrawPin[ 12 ] ) // Clear { PinRemoveNumber(playerid); } else if(clickedid == TextDrawPin[ 11 ] ) // Acces { PinEnter(playerid); } } return ( true ) ; } Imagini / Video (optional): Ati incercat sa rezolvati singur?: Da, l-am trecut si pe PlayerTextDraw si tot nu merge. Daca mai aveti nevoie de ceva script va dau.
  10. Pai si normal ca pui donatii, dupa ce scriptezi un gamemode de la 0 , pierzi o gramada de timp si multa bataie de cap normal ca vrei sa ai si tu macar bani de paine si tigari plus ca trebuie sa platesti host-ul. In ziua de azi oricine isi poate deschide server chiar daca stie ce-i ala pawno sau daca nu. Treaba asta s-ar putea schimba doar cu o conditie. Toate serverele sa fie inchise si toti sa mearga sa ceara licenta pe sa-mp.com, in ce consta aceasta licenta? O licenta pe care poate sa o dea doar Kalcor, el sa verifice toate scripturile ( sa vada daca e facut de la 0, daca e ceva original nu un edit, si aici nu ma refer la idei ci la script ) , dar asta nu se va intampla niciodata. Daca s-ar aplica asa ceva nu stiu daca o sa vedeti 5 servere online. :))) EDIT: Am observat si la Ajutor scripting, vin baieti cu scripturi care nu-s facute de ei si vor ajutati nici numai imi bat capul cu asa ceva.
  11. Ma simt minunat.

  12. Ceva nu e compatibil, incearca sa schimbi versiunea de mysql. ( + da-i compile si gm cu noile include-uri ) EDIT: Incearca sa pui serverul pe noua versiunea de sa-mp inca odata.
  13. andy47

    Ajutor

    Ai facut update la libraria YSI ?
  14. Fa si tu niste tutoriale in care sa vorbesti despre zcmd, sscanf, mysql, creare unui sistem de login/register, a unui ban system, explicarea unor comenzi mai complexe.
  15. andy47

    Ajutor

    Se creaza automat foloderele .ini cand aprinzi serverul. El a modificat gresit numele folderelor etc etc .... [11:06:30] |** J.L. SA:MP Server Administration **| [11:06:30] System V 1.0 [11:06:30] [JLADMIN] Auto login 1 [11:06:30] [JLADMIN] Must register 0 [11:06:30] [JLADMIN] Detect pausers 1 [11:06:30] [JLADMIN] MaxPing 8000 [11:06:30] [JLADMIN] AntiSpam 1 [11:06:30] [JLADMIN] PM Dialog 1 [11:06:30] [JLADMIN] AntiWeaponHack 1 [11:06:30] [JLADMIN] MaxAdminLevel 6 [11:06:30] [JLADMIN] Anti Bad Words 1 [11:06:30] [JLADMIN] AntiBanEvade 1 [11:06:30] [JLADMIN] Anti Advertise 1 [11:06:30] [JLADMIN] AdminImmunity 1 [11:06:30] [JLADMIN] ShowPmstoAdmins 1 [11:06:30] [JLADMIN] ReadCommands 1 [11:06:30] [JLADMIN] AntiCheatBans 1 [11:06:30] [JLADMIN] Allow changename 1 [11:06:30] [JLADMIN] ForbiddenNamesKick 1 [11:06:30] [JLADMIN] PartNamesKick 1 [11:06:30] -couldn't find illegal weapons file- Creating a new file.. [11:06:30] Illegal weapons file successfully created -Path- JLadmin/Settings/Illegalweapons.ini [11:06:30] -- No Illegal Weapons Loaded! -- [11:06:30] -couldn't find Forbidden nicks file- Creating a new file.. [11:06:30] Illegal Forbidden nicks file successfully created -Path- JLadmin/Settings/ForbiddeNicks.ini [11:06:30] -- No Forbidden nick names Loaded! -- [11:06:30] -couldn't find Forbidden Part nick file- Creating a new file.. [11:06:30] Illegal Forbidden part nick file successfully created -Path- JLadmin/Settings/ForbiddeNickParts.ini [11:06:30] -- No Forbidden Part nicks Loaded! -- [11:06:30] -couldn't find Bad words file- Creating a new file.. [11:06:30] Bad words file successfully created -Path- JLadmin/Settings/BadWords.ini [11:06:30] -- No Bad words Loaded! -- [11:06:30] --No Teleports File/Path Found!-- Creating a new file.. [11:06:30] Teleports file successfully created: JLadmin/Settings/Teleports.ini [11:06:30] Loaded 1 filterscripts.
  16. andy47

    Ajutor

    Nu va rezolva nimic pentru ca el foloseste jladmin... si daca sterge admini din server.cfg va scoate tot sistemu. Mai pune-l inca odata si modifical cu mai mare atentie, am observat ca ai modificat numele fisierelor, fi mai atent ca daca vrei sa modifici JLadmin in admini sunt o gramada de lini unde trebuie schimbat. Nu folosi CTRL+H pentru ca nu e scriptul tau si nu-l cunosti asa de bine deci va trebui sa o faci manual. Eu iti recomand sa-l lasi asa cu numele lui, nimeni nu va sti ce admin system folosesti decat cineva care se pricepe si isi va da seama, dar nu prea conteaza asta. EDIT: Fa update la libraria Y_INI pentru ca el in folderele alea are o versiune mai veche.
  17. Ai id meu de messenger pe profil.
  18. Ai toata noaptea la dispozitie pe mine nu prea ma ajutat nimeni, incerci, stergi , te documentezi. Bafta!
  19. Poti ascunde lucrurile astea si in pluginuri si in include-uri etc etc ...
  20. Incearca asa: public OnPlayerLoadVehicles(playerid) { new raws = cache_num_rows(handle), count = 0, tempString[16]; if(raws > 0) { new tempInt; for(new z = 0; z < raws; z++) { for(new i = 0; i < MAX_VEH; i++) { if(Vehicles[i][vehStatus]) continue; Vehicles[i][vehStatus] = true; Vehicles[i][vehID] = cache_get_field_content_int(z, "id"); Vehicles[i][vehModel] = cache_get_field_content_int(z, "model"); cache_get_field_content(z, "owner", tempString); format(Vehicles[i][vehOwner], MAX_PLAYER_NAME, "%s", tempString); Vehicles[i][vehPos][0] = cache_get_field_content_float(z, "posX"); Vehicles[i][vehPos][1] = cache_get_field_content_float(z, "posY"); Vehicles[i][vehPos][2] = cache_get_field_content_float(z, "posZ"); Vehicles[i][vehPos][3] = cache_get_field_content_float(z, "posA"); Vehicles[i][vehColor][0] = cache_get_field_content_int(z, "color1"); Vehicles[i][vehColor][1] = cache_get_field_content_int(z, "color2"); Vehicles[i][vehInt] = cache_get_field_content_int(z, "int"); Vehicles[i][vehVW] = cache_get_field_content_int(z, "vw"); new a = 1; for(new w = 0; w < 14; w++) { format(tempString, sizeof(tempString), "mod%d", a); Vehicles[i][vehMods][w] = cache_get_field_content_int(z, tempString); a++; } tempInt = cache_get_field_content_int(z, "locked"); if(tempInt == 1) Vehicles[i][vehLock] = true; else Vehicles[i][vehLock] = false; tempInt = cache_get_field_content_int(z, "alarm"); if(tempInt == 1) Vehicles[i][vehAlarm] = true; else Vehicles[i][vehAlarm] = false; cache_get_field_content(z, "plate", tempString); format(Vehicles[i][vehPlate], 16, "%s", tempString); createVehicle(i); count++; break; } } } printf("Loaded %d vehicles from %s", count, GetName(playerid)); return 1; }
  21. Documenteazate despre texture studio mai intai. http://forum.sa-mp.com/showthread.php?t=582490 De ce nu iti faci un gm de la 0 al tau, Briston ala din cate am auzit e cam buguit..Nu recomand, dar succes.
  22. Pai na ideea o sti ce altceva iti mai trebuie? Folosestete de dialoguri ca sa poti face ce vrei.
  23. Foloseste crashdetect si posteaza aici logul.
  24. Pai tu acolo ai pus ca atunci cand folosesti comanda /v sa acceseze comanda /vehicles, sterge CMD:v(playerid, params[]) { return cmd_vehicles(playerid, params); } si sa inteleg ca /vehswitch e acel /v care il vrei tu? Daca nu rescrie comanda /v dupa cum zici tu acolo ca vrei.
  25. Incepand cu linia 5226 ai : if (PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0) // Civilian { /*if(PlayerInfo[playerid][pOrigin] == 1)//SF { SetPlayerPos(playerid,-1964.3442,137.9323,27.6940); // Noul Spawn SF SetPlayerFacingAngle(playerid, 93.74); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; //InHouse[playerid] = 255; return 1; }*/ if(PlayerInfo[playerid][pOrigin] == 1 ||PlayerInfo[playerid][pOrigin] == 2 || PlayerInfo[playerid][pOrigin] == 3)//LS { SetPlayerPos(playerid,1154.1572,-1770.9744,16.5992); // Noul Spawn LS SetPlayerFacingAngle(playerid, 1.0000); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; return 1; } /*if(PlayerInfo[playerid][pOrigin] == 3)//LV { SetPlayerPos(playerid,2848.3147,1290.7404,11.3906); // Noul Spawn LV SetPlayerFacingAngle(playerid, 89.67); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; //InHouse[playerid] = 255; }*/ } Modifici acolo coordonatele la SetPlayerPos .
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.