Jump to content

Search the Community

Showing results for tags 'help'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • SA-MP General
    • Noutăţi şi Actualizări
    • Comunitatea SA:MP România
    • General
    • Suport Client
    • Imagini şi Videoclipuri
  • SA-MP Server
    • Publicitate Server
    • Suport Servere
  • SA-MP Scripting şi Pluginuri
    • Ajutor Scripting
    • Gamemode-uri
    • Filterscript-uri
    • Pluginuri
  • SA-MP Altele
    • Totul şi Nimic
    • Anunţuri
  • A/D TDM 193.84.64.19:7777's Topicuri
  • Beginner Scripters's Discutii

Categories

  • General
    • Probleme frecvente
  • Server
  • Scripting
    • Funcţii
    • Callback-uri
  • Resurse
    • ID-uri
    • Jucător
    • Vehicul

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Discord


Website URL


Yahoo


Skype


Location


Interests


In-game Name

  1. Frunzaa

    Pet Name

    Salut, am gamemode-ul bluffs si am o problema la sistemul de pet cand "tezesc " pet-ul nu imi apare numele! format(str, sizeof(str), "{D6A7F1}%s(lvl %d)", PlayerInfo[playerid][pPetName], PlayerInfo[playerid][pPetLevel]); Pet[playerid] = CreateDynamic3DTextLabel(str, COLOR_WHITE, 0, 0, -20, 20.0, playerid, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0); Streamer_SetFloatData(STREAMER_TYPE_3D_TEXT_LABEL, Pet[playerid], E_STREAMER_ATTACH_OFFSET_Z, 0); Streamer_SetFloatData(STREAMER_TYPE_3D_TEXT_LABEL, Pet[playerid], E_STREAMER_ATTACH_OFFSET_X, 0);
  2. Salut. (~) De curand am inceput un edit, la burned, si am gasit un panel L2P. -> I-am adaugat ce nu avea, baza de date burned din cea a L2P. Teoretic, ar trebui sa functioneze, L2P e construit pe gamemodul Burned. (?) Ce nu stiu, este, ca, atunci cand dau 'Login' -> (introduc nume/parola) -> imi returneaza "Your IP must be the same as the one you had last time in game!" (IP-ul este 127.0.0.1, ce apare si in baza de date.)
  3. Salut, am si eu o problema la sistemul de trade de pe gm-ul burned editat de @SkillZ_IT. la comanda /trade https://imgur.com/a/J4x55xY ce-l care este pozitionat in partea dreapta nu poate sa apese pe butonul adauga, butonul pregatit functioneaza dar ce-l de adauga nu -am incercat sa schimb level m-am uitat prin gm la comenzi am incercat cu alti playeri alte conturi si tot nu merge , inca o problema ar fi ca nu poti sa inchizi acel sistem de trade Repet problema o are doar ce-l care e afisat in partea dreapta , persoana care a acceptat trade-ul ce-l care invita poate sa adauge bunuri fara problema As dorii ca sa mearga adauga la amandoi daca intelegeti ce zic.
  4. Salut , as avea si eu nevoie de un scripter cu experienta care este gata sa ajute pe gratis , adica o sa va las si aici problema , dar daca cumva cineva vrea sa-mi zica mai amanuntit ce trebuie facut , sa mi lase un mesaj System Stage As vrea sa imi fie explicat si mie system stage Din cate am inteles , se pune un "ysi_timer" in care totul este facut din Velocity , dar problema mea este aici: Am facut comanda exemplu ``` YCMD:stage(playerid, params[], help) { new Float:vx,Float:vy,Float:vz; GetVehicleVelocity(GetPlayerVehicleID(playerid),vx,vy,vz); SetVehicleVelocity(GetPlayerVehicleID(playerid), vx * 1.5, vy *1.5, vz * 1.5); return 1; } ``` Dar , problema este asa , cum fac aceasta comanda , sa fie repetata la fiecare 5-10 secunde ? As vrea sa fac pe comanda Exemplu : /stage -> Dupa ce ai scris , sa se activeze Folosesc Gamemode Burned Va las si discord daca aveti nevoie DISCORD: TaimsREC#7485
  5. C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(1323) : error 001: expected token: "{", but found "new" C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(1704) : warning 201: redefinition of constant/macro (symbol "MAX_BODY_PARTS") C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(1705) : warning 201: redefinition of constant/macro (symbol "MAX_WEAPONS") C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(65962) : error 017: undefined symbol "SendErrorMessage" C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(65968) : error 017: undefined symbol "GetPlayerNameEx" C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(65972) : error 017: undefined symbol "GetPlayerNameEx" C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(65973) : error 004: function "AdministratorMessage" is not implemented C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(65975) : error 004: function "AdministratorMessage" is not implemented C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(65979) : error 017: undefined symbol "GetPlayerNameEx" C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(65981) : error 017: undefined symbol "GetPlayerNameEx" C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(65982) : error 004: function "AdministratorMessage" is not implemented C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(65984) : error 017: undefined symbol "GetPlayerNameEx" C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(66008) : error 017: undefined symbol "SendErrorMessage" C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(66014) : error 017: undefined symbol "GetPlayerNameEx" C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(66018) : error 017: undefined symbol "GetPlayerNameEx" C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(66019) : error 004: function "AdministratorMessage" is not implemented C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(66021) : error 004: function "AdministratorMessage" is not implemented C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(66025) : error 017: undefined symbol "GetPlayerNameEx" C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(66027) : error 017: undefined symbol "GetPlayerNameEx" C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(66028) : error 004: function "AdministratorMessage" is not implemented C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(66030) : error 017: undefined symbol "GetPlayerNameEx" C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(66037) : error 017: undefined symbol "policecap" C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(66037) : warning 215: expression has no effect C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(66037) : error 001: expected token: ";", but found "]" C:\Users\BOGDAN\Desktop\GM\gamemodes\frank.pwn(66037) : error 029: invalid expression, assumed zero C:\Users\BOGDAN\GM\gamemodes\frank.pwn(66037) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 23 Errors.
  6. C:\Users\HPQ123\Desktop\Gm\pawno\include\systems.inc(5543) : error 033: array must be indexed (variable "Speedo") C:\Users\HPQ123\Desktop\Gm\pawno\include\systems.inc(5544) : error 035: argument type mismatch (argument 2) C:\Users\HPQ123\Desktop\Gm\pawno\include\systems.inc(5545) : error 035: argument type mismatch (argument 2) C:\Users\HPQ123\Desktop\Gm\pawno\include\systems.inc(5546) : error 035: argument type mismatch (argument 2) C:\Users\HPQ123\Desktop\Gm\pawno\include\systems.inc(5547) : error 035: argument type mismatch (argument 2) C:\Users\HPQ123\Desktop\Gm\pawno\include\systems.inc(5548) : error 035: argument type mismatch (argument 2) C:\Users\HPQ123\Desktop\Gm\pawno\include\systems.inc(5549) : error 035: argument type mismatch (argument 2) C:\Users\HPQ123\Desktop\Gm\pawno\include\systems.inc(5550) : error 035: argument type mismatch (argument 2) C:\Users\HPQ123\Desktop\Gm\pawno\include\systems.inc(5551) : error 035: argument type mismatch (argument 2) C:\Users\HPQ123\Desktop\Gm\pawno\include\systems.inc(5552) : error 035: argument type mismatch (argument 2) Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 10 Errors. 5532 Speedo[0] = CreatePlayerTextDraw(playerid, 510.333801, 342.652039, "~g~69"); 5533 PlayerTextDrawLetterSize(playerid, Speedo[0], 0.628332, 2.603848); 5534 PlayerTextDrawTextSize(playerid, Speedo[0], 1280.000000, 1280.000000); 5535 PlayerTextDrawAlignment(playerid, Speedo[0], 1); 5536 PlayerTextDrawColor(playerid, Speedo[0], 0xFFFFFFFF); 5537 PlayerTextDrawUseBox(playerid, Speedo[0], 0); 5538 PlayerTextDrawBoxColor(playerid, Speedo[0], 0x80808080); 5539 PlayerTextDrawSetShadow(playerid, Speedo[0], 1); 5540 PlayerTextDrawSetOutline(playerid, Speedo[0], 1); 5541 PlayerTextDrawBackgroundColor(playerid, Speedo[0], 0x00000083); 5542 PlayerTextDrawFont(playerid, Speedo[0], 3); 5543 PlayerTextDrawSetProportional(playerid, Speedo[0], 1); 5544 PlayerTextDrawSetSelectable(playerid, Speedo[0], 0); 5545 5546 Speedo[1] = CreatePlayerTextDraw(playerid, 548.567993, 356.011230, " KM/H"); 5547 PlayerTextDrawLetterSize(playerid, Speedo[1], 0.196666, 1.039999); 5548 PlayerTextDrawTextSize(playerid, Speedo[1], 1280.000000, 1280.000000); 5549 PlayerTextDrawAlignment(playerid, Speedo[1], 1); 5550 PlayerTextDrawColor(playerid, Speedo[1], 0xFFFFFFFF); 5551 PlayerTextDrawUseBox(playerid, Speedo[1], 0); 5552 PlayerTextDrawBoxColor(playerid, Speedo[1], 0x80808080); 5553 PlayerTextDrawSetShadow(playerid, Speedo[1], 1); 5554 PlayerTextDrawSetOutline(playerid, Speedo[1], 1); 5555 PlayerTextDrawBackgroundColor(playerid, Speedo[1], 0x00000067); 5556 PlayerTextDrawFont(playerid, Speedo[1], 2); 5557 PlayerTextDrawSetProportional(playerid, Speedo[1], 1); 5558 PlayerTextDrawSetSelectable(playerid, Speedo[1], 0); 5559 5560 Speedo[2] = CreatePlayerTextDraw(playerid, 510.667145, 364.596436, "Fuel: ~r~100~w~~h~ (C: 2L)~n~Doors: ~g~Unlocked~w~~h~~n~Odometer: 69.69"); 5561 PlayerTextDrawLetterSize(playerid, Speedo[2], 0.218666, 1.185184); 5562 PlayerTextDrawTextSize(playerid, Speedo[2], 1280.000000, 1280.000000); 5563 PlayerTextDrawAlignment(playerid, Speedo[2], 1); 5564 PlayerTextDrawColor(playerid, Speedo[2], 0xFFFFFFFF); 5565 PlayerTextDrawUseBox(playerid, Speedo[2], 0); 5566 PlayerTextDrawBoxColor(playerid, Speedo[2], 0x80808080); 5567 PlayerTextDrawSetShadow(playerid, Speedo[2], 1); 5568 PlayerTextDrawSetOutline(playerid, Speedo[2], 1); 5569 PlayerTextDrawBackgroundColor(playerid, Speedo[2], 0x00000067); 5570 PlayerTextDrawFont(playerid, Speedo[2], 2); 5571 PlayerTextDrawSetProportional(playerid, Speedo[2], 1); 5572 PlayerTextDrawSetSelectable(playerid, Speedo[2], 0);
  7. 411,-584.741882,-472.838287,25.302600,-180.000106,1,1,Dealership,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,4,0 amm,stie cineva de unde schimb pretul sau ceva? https://imgur.com/a/GgjvG2r P:S Gamemodul e fara baze de date.
  8. Imi spune cineva cum pot schimba pretul in ds?Gamemodeul e fara baze de date. https://imgur.com/a/GgjvG2r
  9. Salut, am o problema pe gm burned. Cand intru in hq LSPD/FBI daca acolo scrie locked merge sa intru in el la NG nu face asa. Si de unde pot scoate slap-ul pe gm burned cand intri intr-un hq de la mafie ca la grove ma da undeva sus si raman blocat cand intru.
  10. Bun am si eu o intrebare cei care editati gamemode ul lui hpq123 b-hood cum scoateti quest ul ? eu am incercat dar nu reusesc ! daca imi ziceti unde sa intru vas fi dator.
  11. Gutza

    Help

    Salut,cum as putea sa fac o limita de bani pe care o poti tine in banca,cum ar fii spre exemplu 100kk,e eu vreau ca asta sa fie suma maxima pe care o poti tine in banca sa nu treaca de 100kk. Din aia 100kk sa poti lua,dar sa nu poti creste limita
  12. Dupa cum am precizat si in titlu,am o problema la gamemode-ul burned editat de @CosminAK47 Problema: probleme,doar am descarcat gm-ul si i-am dat un compile si am si primit o eroare: C:\Users\home\Desktop\gamemode burned edited by Cosmin\gamemodes\gmm.pwn(38220) : fatal error 100: cannot read from file: "accs_system" Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error. Link gm:http://www.girlshare.ro/m/3490126873.2
  13. Dupa ce urc gamemode-ul burned pe un host,normal,dupa ce conectez baza de date),urc gamemode-ul doar .amx,serverul porneste dar la gamemode ramane Unknow +++Server Log https://pastebin.com/W20cyhQ9 +++ https://imgur.com/a/cE0UJKY
  14. Nume:Score_ Problema:Player progress bar. Detalii: In primul rand,salut.Vreau sa adaug progress bar in /hud,dar nu ma prea descurc pe un gm bigzone.Ma puteti ajuta?
  15. ---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3.7-R2, (C)2005-2015 SA-MP Team Server Plugins -------------- Loading plugin: crashdetect CrashDetect v4.15.1 is OK. Loaded. Loading plugin: sscanf =============================== sscanf plugin loaded. Version: 2.8.1 (c) 2012 Alex "Y_Less" Cole =============================== Loaded. Loading plugin: mysql >> plugin.mysql: R34 successfully loaded. Loaded. Loading plugin: streamer *** Streamer Plugin v2.7.7 by Incognito loaded *** Loaded. Loaded 4 plugins. Started server on port: 7777, with maxplayers: 100 lanmode is OFF. Filterscripts --------------- Loaded 0 filterscripts. ======================================= | | | YSI version 3.09.0684 | | By Alex "Y_Less" Cole | | | ======================================= Server: hosted Server vehicles: 0 Safezones: 0 Houses: 0 Clans: 0 Clan zones: 0 Bussines: 0 Turfs: 0 Factions: 0 Jobs: 0 Furnitures: 0 Stuff Loaded Safes: 0 Number of vehicle models: 18 ==================================================================== Error ID: 2006, Error: MySQL server has gone away <<<<<<<< Callback: LoadDSVeh <<<<<<<< gQuery: SELECT * FROM `dsveh` ==================================================================== Nu stiu de ce imi da aceasta erroare
  16. Salutare tuturor, Am vazut pe multe servere ca s-a marit numarul de caractere la /ad-uri si tot odata adaugarea lor pe 2 randuri, aveti vreo idee cum pot sa fac sa apara pe 2 randuri? Am incercat tot felul de metode, insa fara succes. Demo: Daca aveti vreo idee, lasati va rog un Reply. Multumesc. P.S: Daca aveti nevoie de ceva, am sa va raspund. Cu stima, FratziWear
  17. Salut , am cautat pe tot internetul cum sa faci un tutorial de inceput si n-am gasit nicaieri deci cine ma poate ajuta cu un tutorial de inceput sau cum sa fac un tutorial de inceput ?
  18. Buna ziua din nou revin cu o intrebare ... Cum scot brazii de pe mapa ? Poza :
  19. Problema intalnita (descriere): Column count doesn't match value count at row 1 Ero(area / rile) / warning-(ul / urile): Error: Column count doesn't match value count at row 1 Callback: OnHouseCreated Query: INSERT INTO `Houses`(`ID`, `HouseName`, `HouseCost`, `HouseSell`, `HouseInterior`, `HouseLocked`, `HouseIntX`, `HouseIntY`, `HouseIntZ`, `HouseX`, `HouseY`, `HouseZ`, `HouseRent`) VALUES (0,'ForSale',150,75,0,1,0.00,0.00,0.00,1293.25,1272.86,10.82,0,0.00,0.00,0.00,0) [09:15:02] ==================================================== Liniile de cod / sursa / script-ul(obligatoriu): Imagini / Video (optional): http://imgur.com/a/lkTSs Ati incercat sa rezolvati singur?: Da, dar nu am reusit!
  20. Buna samp romania,Am inceput sa lucrez la o versiune BIGZONE dar nush cum pot gasi masinile de la joburi:Adica in gm cum ar fii tractorul de la farm??? va rog sa ma ajutati si sa imi faceti niste ss unde le gasesc ca sunt incepator si nush cu fac pls help!!!!!! Stiu ca nu ar trebui postat aici dar mna... Gm: http://www76.zippyshare.com/v/zysLItlJ/file.html / http://www.girlshare.ro/349004012 Nu contine virusi
  21. Am o problema: error 010: invalid function or declaration La publicul: public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { new file[256]; new name[MAX_PLAYER_NAME]; new Registre[250]; GetPlayerName(playerid,name,MAX_PLAYER_NAME); if(dialogid == RegisterName) { if(!response) Kick(playerid); { if(strlen(inputtext) == 0) return ShowPlayerDialog(playerid,RegisterName,DIALOG_STYLE_INPUT,"Inregistrare","{FF0000}Parola invalida\n{FFA500}Te rog scrie o parola corecta!","Inregistrare","Iesire"); format(file,sizeof(file),"%s.cfg", name); if(!fexist(file)) { dini_Create(file); dini_IntSet(file, "Password", udb_hash(inputtext)); dini_IntSet(file, "Money", 2500); dini_IntSet(file, "Score", 1); dini_IntSet(file, "BCR", 1000); dini_IntSet(file, "RobSkill", 1); dini_IntSet(file, "TerSkill", 1); dini_IntSet(file, "Admin", 0); dini_IntSet(file, "Warnings", 0); dini_IntSet(file, "WantedLevel", 0); dini_IntSet(file, "Jail", 0); dini_IntSet(file, "RentalOwner", 0); dini_IntSet(file, "Drugs", 0); dini_IntSet(file, "C4", 0); dini_IntSet(file, "Skin", -1); dini_IntSet(file, "Level", 0); dini_IntSet(file, "PremiumPoints", 0); dini_IntSet(file, "Exp", 0); format(Registre,sizeof(Registre),"{FFFF00}Multumim pentru inregistrare!\n{FFFF00}Acum trebuie sa te conectezi.",name); ShowPlayerDialog(playerid,LoginName,DIALOG_STYLE_INPUT,"Login",Registre,"Conectare","Iesire"); GameTextForPlayer(playerid, "~r~Registered!", 3000, 1); } } } if(dialogid == LoginName) { if(!response) Kick(playerid); { GetPlayerName(playerid,name,MAX_PLAYER_NAME); if(strlen(inputtext) == 0) return ShowPlayerDialog(playerid,LoginName,DIALOG_STYLE_INPUT,"Login","parola invalida!\nTe rog scrie-ti parola","Conectare","Iesire"); format(file,sizeof(file),"%s.cfg", name); if(udb_hash(inputtext) != dini_Int(file, "Password")) return ShowPlayerDialog(playerid,LoginName,DIALOG_STYLE_INPUT,"Login","Parola gresita!\nTe rog scrie-ti parola","Conectare","Iesire"); else { IsPlayerLogged[playerid] = 1; SetPlayerMoney(playerid, dini_Int(file, "Money")); SetPlayerScore(playerid, dini_Int(file, "Score")); AccountInfo[playerid][aLevel] = dini_Int(file, "Admin"); AccountInfo[playerid][Level] = dini_Int(file, "Level"); AccountInfo[playerid][Exp] = dini_Int(file, "Exp"); AccountInfo[playerid][Warnings] = dini_Int(file, "Warnings"); AccountInfo[playerid][PremiumPoints] = dini_Int(file, "PremiumPoints"); PlayerSkin[playerid] = dini_Int(file,"Skin"); SetPlayerWantedLevel(playerid, dini_Int(file, "WantedLevel")); SendClientMessage(playerid, GREY, "Acum esti conectat."); GameTextForPlayer(playerid, "~r~Logged In!", 3000, 1); } } } if(dialogid == DIALOG_SHOP) { if(response) { if(listitem == 0) { new string1[500],string2[500],string5[2400]; format(string1, sizeof(string1), "Jucatorii activi pot primii puncte premium."); format(string2, sizeof(string2), "Cu care se poat cumpara Bani,Admin,level si multe altele."); format(string5, sizeof(string5), "%s\n%s\n\n%s\n%s", string1, string2); ShowPlayerDialog(playerid, DIALOG_SHOP2, DIALOG_STYLE_MSGBOX, "Info", string5, "Close", ""); } if(listitem == 2) { if(AccountInfo[playerid][aLevel] > 0) { SendClientMessage(playerid, ERROR, "Esti deja admin."); return 1; } if(AccountInfo[playerid][PremiumPoints] <= 59) { ShowPlayerDialog(playerid, DIALOG_NOPP, DIALOG_STYLE_MSGBOX, "Nu ai destule puncte", "Ai nevoie de 500 de puncte pentru a cumpara admin.", "Close", ""); return 1; } AccountInfo[playerid][PremiumPoints] -= 500; AccountInfo[playerid][aLevel] = 1; new strings[200],namef[30]; SendClientMessage(playerid, COLOR_YELLOW, "Ai cumparat admin 1!(-500 PP)"); GetPlayerName(playerid, namef, sizeof(name)); format(strings, sizeof(strings), "/shop: %s a cumparat admin 1.",namef); ABroadCast(COLOR_YELLOW,strings,6); } if(listitem == 6) { if(AccountInfo[playerid][Warnings] <= 0) { SendClientMessage(playerid, COLOR_RED, "Nu au nici-un warn."); return 1; } if(AccountInfo[playerid][PremiumPoints] <= 49) { ShowPlayerDialog(playerid, DIALOG_NOPP, DIALOG_STYLE_MSGBOX, "Nu ai destule puncte", "Ai nevoie de 50 de puncte pentru ati sterge warn-urile.", "Close", ""); return 1; } AccountInfo[playerid][PremiumPoints] -= 50; AccountInfo[playerid][Warnings] = 0; new strings[200],namef[30]; SendClientMessage(playerid, COLOR_YELLOW, "Ti-ai sters toate warn-urile! (-50 premium points)"); GetPlayerName(playerid, namef, sizeof(name)); format(strings, sizeof(strings), "/shop: %s si-a sters warningurile.",namef); ABroadCast(COLOR_YELLOW,strings,6); } if(AccountInfo[playerid][PremiumPoints] <= 49) { ShowPlayerDialog(playerid, DIALOG_NOPP, DIALOG_STYLE_MSGBOX, "Nu ai destule puncte", "Ai nevoie de 50 de puncte pentru ati sterge warn-urile.", "Close", ""); return 1; } if(listitem == 11) { new strings[256]; if(AccountInfo[playerid][PremiumPoints] < 29) return SCM(playerid, COLOR_WHITE, "Nu ai suficiente puncte premium!"); AccountInfo[playerid][PremiumPoints] -= 30; GivePlayerMoney(playerid, 300000); SCM(playerid, COLOR_YELLOW, "Ai cumparat $300.000 pentru 1 punct premium."); format(strings, sizeof(strings), "/shop: %s a cumparat 300,000$.",name); ABroadCast(COLOR_YELLOW,strings,6); } if(listitem == 12) { new strings[256]; if(AccountInfo[playerid][PremiumPoints] < 49) return SCM(playerid, COLOR_WHITE, "Nu ai suficiente puncte premium!"); AccountInfo[playerid][PremiumPoints] -= 50; GivePlayerMoney(playerid, 3000000); SCM(playerid, COLOR_YELLOW, "Ai cumparat $3,000.000 pentru 10 puncte premium."); format(strings, sizeof(strings), "/shop: %s a cumparat 300,000$.",name); ABroadCast(COLOR_YELLOW,strings,6); } if(listitem == 13) { new strings[256]; if(AccountInfo[playerid][PremiumPoints] < 89) return SCM(playerid, COLOR_WHITE, "Nu ai suficiente puncte premium!"); AccountInfo[playerid][PremiumPoints] -= 90; GivePlayerMoney(playerid, 70000000); SCM(playerid, COLOR_YELLOW, "Ai cumparat $70.000.000 pentru 70 puncte premium."); format(strings, sizeof(strings), "/shop: %s a cumparat 70,000,000$.",name); ABroadCast(COLOR_YELLOW,strings,6); } } } return 1; } return 1; } La linia: } } return 1; } return 1; /*<-- ASTA!\* } URGENT! iar daca ma ajutati va dau +1
  22. Am nevoie de un progres bar pentru serverul meu de samp incerc de 2 zile sa fac unul si nu imi reuseste...! ma poate ajuta cineva va rog
  23. salut am in GM bigzone si un panel bigzone am facut legaturile intre ele dar merge decat acasa(home) prima pagina IAR celelalte nu sunt accesibile si daca imi puteti face un tutorial Ex:cum faci sa mearga login,factions,staff si asa mai departe,unde trebuie sa intru si CE trebuie sa editez(sunt incepator in HTML Fara critici) Uitati aici site cu panelul poate va faceti o parere www.Panel.sw-gaming.ro
  24. VipBo$$

    Problema.

    Salut! Iar vin cu o problema de a mea. De ce imi da in mysql_log asta: [11:33:00] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('25') [11:33:00] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('25') [11:33:00] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('25') [11:33:00] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('25') [11:33:00] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('25') [11:33:00] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('25') [11:33:37] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0') [11:33:40] [ERROR] CMySQLQuery::Execute[()] - (error #1054) Unknown column 'LastTimeOn' in 'field list' Iar in server_log imi da asa: [11:33:56] [debug] AMX backtrace: [11:33:56] [debug] #0 00214dc8 in ?? (-1) from 1234.amx [11:33:56] [debug] #1 000bb0f0 in public OnPlayerKeyStateChange (0, 16, 0) from 1234.amx [11:33:57] [debug] Run time error 4: "Array index out of bounds" [11:33:57] [debug] Accessing element at negative index -1 Daca ajuta cu ceva public-ul OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { new veh = GetPlayerVehicleID(playerid); new engine,lights,alarm,doors,bonnet,boot,objective; if(newkeys == KEY_CTRL_BACK && GetPlayerState(playerid)==PLAYER_STATE_DRIVER) { if(IsPlayerLogged[playerid] == 0) return 1; if(!IsPlayerInAnyVehicle(playerid)) return 1; new radiostr[1024]; format(radiostr, sizeof(radiostr), "{E82727}Opreste Radio-ul\nRadio Taraf Romania\nRadio Funky Manele\nRadio Gangsta Manele\nRadio Gangsta Dance\nRadio Bandit Romania\nRadio Hot Romania\nRadio Tequila HipHop\nRadio Kiss FM\nRadio ZU Romania\nRadio Greu de Difuzat\nRadio Pro FM\nRadio ClubMix\nRadio Popular"); ShowPlayerDialog(playerid,170,DIALOG_STYLE_LIST,"Radio",radiostr,"Ok", "Iesire"); } if(newkeys == KEY_NO) LockCarFunction(playerid); if(newkeys == KEY_FIRE) { if(IsVehicleRc(GetPlayerVehicleID(playerid)) || GetVehicleModel(GetPlayerVehicleID(playerid)) == RC_CAM && InDealer[playerid] == 1) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) != D_TRAM) { DestroyVehicle(DealerCar[playerid]); InDealer[playerid] = 0, DealerCarType[playerid] = -1, DealerCar[playerid] = 0; KillTimer(DSTimer[playerid]); SendClientMessage(playerid, COLOR_YELLOW, "Testul a fost suspendat deoarece ai abandonat vehiculul."); SetPlayerPosEx(playerid, 327.9443, -1512.6609, 36.1366); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); TestingModel[playerid] = 0; } } } if(newkeys == KEY_YES) { if(JobWorking[playerid] == 1) { if(InHand[playerid] == 0) return 1; if(CheckPlayerDistanceToVehicle(7.0, playerid, JobVehicle[playerid])) { RemovePlayerAttachedObject(playerid, 2); InHand[playerid] = 0; if(GunoiKG[playerid] < GetPlayerSkill(playerid)*25) { new x = random(sizeof(GarbagePos)); SetPlayerCheckpointEx(playerid, GarbagePos[x][0], GarbagePos[x][1], GarbagePos[x][2], 2.0); CP[playerid] = 54; new szZone[256], string[256]; GetPlayer3DZone2(GarbagePos[x][0], GarbagePos[x][1], GarbagePos[x][2], szZone, sizeof(szZone)); format(string, sizeof(string), "Du-te la punctul rosu de pe mapa pentru a lua sacul cu gunoi~n~(~y~%s~w~~h~)", szZone); PlayerTextDrawSetString(playerid, InfosTD, string); SetTimerEx("HideTextdraw", 5000, 0, "%d", playerid); PlayerTextDrawShow(playerid, InfosTD); } else { SetPlayerCheckpointEx(playerid,2109.2771, -2010.4305, 13.6879, 3.0); CP[playerid] = 55; PlayerTextDrawSetString(playerid, InfosTD, "Du-te la punctul rosu de pe mapa pentru a primii banii"); SetTimerEx("HideTextdraw", 5000, 0, "%d", playerid); PlayerTextDrawShow(playerid, InfosTD); } } } else ShowPlayerFriends(playerid); } if(newkeys & KEY_JUMP && !(oldkeys & KEY_JUMP) && GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_CUFFED) ApplyAnimation(playerid, "GYMNASIUM", "gym_jog_falloff",4.1,0,1,1,0,0); if(newkeys & KEY_FIRE || newkeys & KEY_AIM) { new sslot; new weapon = GetPlayerWeapon(playerid); if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER && WeaponData[playerid][sslot] == false && sslot != 0 && weapon != 46 && GetPlayerWeapon(playerid) != 9 && curatj[playerid] == 0) { ResetPlayerWeaponsEx(playerid); ResetPlayerWeapons(playerid); new sendername[25],gunname[50],string[124]; GetWeaponNameEx(weapon,gunname,sizeof(gunname)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "AdmCmd: %s has spawned gun %s.", sendername, gunname); SendAdminMessage(COLOR_LOGS,string,1); return 1; } } if((IsACBUGWeapon(playerid) && RELEASED(KEY_FIRE)) && newkeys != KEY_FIRE && newkeys & KEY_CROUCH) { ApplyAnimation ( playerid , "PED" , "getup" , 4.1 , 0 , 0 , 0 , 0 , 0 ) ; SCM(playerid,COLOR_WARNING,"Pe serverul nostru este interzis c-bug, risti ban 3 zile."); } if (newkeys & KEY_HANDBRAKE) { if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK && PlayerInfo[playerid][pAdmin] < 1) { new string[100]; format(string,sizeof(string),"AdmCmd: %s(%d) foloseste JetPack.",GetName(playerid),playerid); SendAdminMessage(COLOR_LOGS,string,1); KickEx(playerid); } } if (newkeys & KEY_CROUCH) { if(IsACop(playerid)) { if(PlayerToPoint(15.0, playerid,1588.6552, -1637.9025, 15.0358)) { MoveObject(gatelspd,1596.7352,-1637.9025, 15.0358,2); SetTimer("lspdgateclose" ,9000 ,false); return 1; } if(PlayerToPoint(15.0, playerid,-1770.25696, 995.83032, 25.07870)) { MoveObject(gatefbi,-1770.2570, 995.8303, 25.0787,2); SetTimer("fbigateclose" ,9000 ,false); return 1; } if(PlayerToPoint(15.0, playerid,2293.84033, 2497.78271, 4.93679)) { MoveObject(gatelvpd1,2293.8403, 2497.7827, 10.1142,2); SetTimer("lvpdgateclose1" ,9000 ,false); return 1; } if(PlayerToPoint(15.0, playerid,2335.0828, 2443.7883, 7.4586)) { MoveObject(gatelvpd2,2335.0828, 2443.7883, 12.8445,2); SetTimer("lvpdgateclose2" ,9000 ,false); return 1; } if(PlayerToPoint(18.0, playerid, -1624.6464, 688.4363, 8.4412)) { MoveObject(gatesfpd1,-1645.8208, 688.4628, 8.4412,2); MoveObject(gatesfpd2,-1613.4664, 688.4363, 8.4412,2); SetTimer("sfpdgateclose" ,9000 ,false); return 1; } if(PlayerToPoint(15.0, playerid,135.2833, 1941.3331, 21.6932)) { MoveObject(gateng,122.0023, 1941.4100, 21.6932,2); SetTimer("nggateclose" ,9000 ,false); return 1; } if(PlayerToPoint(15.0, playerid,1544.7007, -1630.7527, 13.2983)) { MoveObject(lspdbar,1544.7007, -1630.7527, 13.2983,1,0.0000, 0.0000, 90.0000); SetTimer("lspdbarclose" ,9000 ,false); return 1; } } } if (((newkeys & KEY_WALK && newkeys & KEY_UP) || (newkeys & KEY_WALK && newkeys & KEY_DOWN) || (newkeys & KEY_WALK && newkeys & KEY_LEFT) || (newkeys & KEY_WALK && newkeys & KEY_RIGHT)) || ((oldkeys & KEY_WALK && newkeys & KEY_UP) || (oldkeys & KEY_WALK && newkeys & KEY_DOWN) || (oldkeys & KEY_WALK && newkeys & KEY_LEFT) || (oldkeys & KEY_WALK && newkeys & KEY_RIGHT)) || ((newkeys & KEY_WALK && oldkeys & KEY_UP) || (newkeys & KEY_WALK && oldkeys & KEY_DOWN) || (newkeys & KEY_WALK && oldkeys & KEY_LEFT) || (newkeys & KEY_WALK && oldkeys & KEY_RIGHT)) && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) { walktime[playerid] = SetTimerEx("WalkAnim",200,0,"d",playerid); } if(newkeys == KEY_LOOK_BEHIND) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { new idcar = GetPlayerVehicleID(playerid),string[128],sendername[25]; if(IsABike(idcar)) return SendClientMessage(playerid,COLOR_WHITE,"Nu poti folosi aceasta comanda intr-o bicicleta."); if(idcar == hotc[1] || idcar == hotc[2]) return SCM(playerid,COLOR_GREY, "Nu poti folosi aceasta comanda in acest vehicul."); if(idcar == sanr[1] || idcar == sanr[2]) return SCM(playerid,COLOR_GREY, "Nu poti folosi aceasta comanda in acest vehicul."); if(Refueling[playerid] == 0) { if(vehEngine[idcar] == 0) { vehEngine[idcar] = 1; GetVehicleParamsEx(idcar,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(idcar,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective); new vehicle; vehicle = GetVehicleModel(idcar) - 400; GetPlayerName(playerid, sendername, sizeof(sendername)); SetPVarInt(playerid, "Engine", 1); if(PlayerHit[playerid] != -1) SCM(playerid,COLOR_WHITE,"Motorul a fost pornit. Mesajul nu a fost afisat deoarece esti undercover."); else { format(string,sizeof(string),"* %s a pornit motorul vehiculului %s.",sendername,aVehicleNames[vehicle]); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } } else if(vehEngine[idcar] == 1) { vehEngine[idcar] = 0; GetVehicleParamsEx(idcar,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(idcar,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective); new vehicle; vehicle = GetVehicleModel(idcar) - 400; GetPlayerName(playerid, sendername, sizeof(sendername)); SetPVarInt(playerid, "Engine", 0); if(PlayerHit[playerid] != -1) SCM(playerid,COLOR_WHITE,"Motorul a fost oprit. Mesajul nu a fost afisat deoarece esti undercover."); else { format(string,sizeof(string),"* %s a oprit motorul vehiculului %s.",sendername,aVehicleNames[vehicle]); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } } } else return SendClientMessage(playerid,COLOR_WHITE,"Te rugam asteapta, acum iti faci plinul."); } } if (newkeys & KEY_SPRINT) { if(gPlayerUsingLoopingAnim[playerid] == 1) { StopLoopingAnim(playerid); } } if (newkeys & KEY_ANALOG_DOWN) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { if(GetPVarInt(playerid, "Boot") == 0) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective); SetPVarInt(playerid, "Boot", 1); } else if(GetPVarInt(playerid, "Boot") == 1) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective); SetPVarInt(playerid, "Boot", 0); } } return 1; } if(newkeys & KEY_SECONDARY_ATTACK) { if(Spectate[playerid] < 253 && Spectate[playerid] != 255) { TogglePlayerControllable(playerid, 1); TogglePlayerSpectating(playerid, 0); SetPlayerInterior(playerid,Unspec[playerid][sPint]); PlayerInfo[playerid][pInt] = Unspec[playerid][sPint]; PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal]; Unspec[playerid][sLocal] = 255; gTeam[playerid] = PlayerInfo[playerid][pTeam]; SetPlayerToTeamColor(playerid); SendClientMessage(playerid, COLOR_GREEN, "Acum nu mai esti spectator."); PlayerTextDrawHide(playerid, SpecTD); SpawnPlayer(playerid); Spectate[playerid] = 255; return 1; } if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) { if(IsPlayerConnected(playerid)) { if(PlayerToPoint(3.0, playerid, 2315.5696,0.3521,26.7422)) // /rob enter { SetPlayerInterior(playerid, 6); SetPlayerPosEx(playerid, -296.7248,1502.6849,1070.9940); } if(PlayerToPoint(3.0, playerid, -296.7248,1502.6849,1070.9940)) // /rob exit { SetPlayerInterior(playerid, 0); SetPlayerPosEx(playerid, 2315.5696,0.3521,26.7422); } for(new i = 1; i < 26; i++) { if(PlayerToPoint(2.0, playerid, DynamicFactions[extX], DynamicFactions[extY], DynamicFactions[extZ])) { if(PlayerInfo[playerid][pMember] == i || i < 3) EnterFaction(playerid, i); } } for(new i = 1; i < 26; i++) { if(PlayerToPoint(2.0, playerid, DynamicFactions[fcX], DynamicFactions[fcY], DynamicFactions[fcZ])) { if(DynamicFactions[fVW] == GetPlayerVirtualWorld(playerid) && DynamicFactions[fInterior] == GetPlayerInterior(playerid)) ExitFaction(playerid, i); } } for(new i = 1; i < sizeof(HouseInfo); i++) { if(IsPlayerInRangeOfPoint(playerid,2,HouseInfo[hEntrancex], HouseInfo[hEntrancey], HouseInfo[hEntrancez])) { if(PlayerInfo[playerid][pHouse] == i || HouseInfo[hLock] == 0) { SetPlayerInterior(playerid,HouseInfo[hInterior]); SetPlayerPosEx(playerid,HouseInfo[hExitx],HouseInfo[hExity],HouseInfo[hExitz]); PlayerInfo[playerid][pInt] = HouseInfo[hInterior]; PlayerInfo[playerid][pLocal] = i; SetPlayerVirtualWorld(playerid,HouseInfo[hVirtual]); InHouse[playerid] = i; UpdateHouseRadio(i); } else { GameTextForPlayer(playerid, "~r~~h~Inchis", 5000, 1); } } } for(new i = 1; i < sizeof(BizzInfo); i++) { if(IsPlayerInRangeOfPoint(playerid,2,BizzInfo[bEntranceX], BizzInfo[bEntranceY], BizzInfo[bEntranceZ]) && BizzInfo[bStatic] == 0) { if(GetPlayerCash(playerid) >= BizzInfo[bFee]) { if(BizzInfo[bLocked] == 1) { GameTextForPlayer(playerid, "~r~~h~Inchis", 5000, 1); return 1; } GivePlayerCash(playerid,-BizzInfo[bFee]); BizzInfo[bBalance] += BizzInfo[bFee]; if(i == 1 || i == 30 || i == 36) SCM(playerid,COLOR_LIGHTBLUE,"Comenzile disponibile sunt: /withdraw, /deposit, /transfer."); if(i == 25 || i == 37 || i == 38) SCM(playerid,COLOR_LIGHTBLUE,"Comenzile disponibile sunt: /clothes(/skins), /buyhat, /glasses."); if(i == 31) SCM(playerid,COLOR_LIGHTBLUE,"Comenzile disponibile sunt: /clothes(/skins), /buyhat, /glasses."); if(i == 28) SCM(playerid,COLOR_LIGHTBLUE,"Comenzile disponibile sunt: /playdice."); if(i == 2) SCM(playerid,COLOR_LIGHTBLUE,"CComenzile disponibile sunt: /buygun, /eat."); if(i == 26 || i == 27 || i == 39) SCM(playerid,COLOR_LIGHTBLUE,"Comenzile disponibile sunt: /eat."); if(i == 3 || i == 4 || i == 5) { PlayAudioStreamForPlayer(playerid,alhamusic); SCM(playerid,COLOR_LIGHTBLUE,"Comenzi disponibile: /drink."); } if(i == 20 || i == 21 || i == 22 || i == 23 || i == 24 || i == 32) SCM(playerid,COLOR_LIGHTBLUE,"Comenzile disponibile sunt: /buy."); if(i == 6 || i == 33) SCM(playerid,COLOR_LIGHTBLUE,"Comenzile disponibile sunt: /buydildo."); SetPlayerInterior(playerid,BizzInfo[bInterior]); SetPlayerPosEx(playerid,BizzInfo[bExitX],BizzInfo[bExitY],BizzInfo[bExitZ]); PlayerInfo[playerid][pInt] = BizzInfo[bInterior]; PlayerInfo[playerid][pLocal] = i+99; SetPlayerVirtualWorld(playerid,BizzInfo[bVirtual]); InBussines[playerid] = i; Update(playerid, pCashx); new str1[184]; format(str1,sizeof(str1),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='%d'",BizzInfo[bBalance],i); mysql_query(SQL,str1); format(str1, sizeof(str1), "~r~-$%d", BizzInfo[bFee]); GameTextForPlayer(playerid, str1, 1000, 1); } else { GameTextForPlayer(playerid, "~r~~h~Nu ai suma necesara de bani", 5000, 1); } } } if (IsPlayerInRangeOfPoint(playerid,2,1397.0253,-1571.0708,14.2703)) // tribunal { SetPlayerInterior(playerid,5); SetPlayerPosEx(playerid,322.2210,303.0282,999.1484); PlayerInfo[playerid][pInt] = 5; } else if (IsPlayerInRangeOfPoint(playerid,2,1554.7500,-1675.5400,16.1953)) // jaills { SetPlayerInterior(playerid,6); SetPlayerPosEx(playerid,246.8740,63.5291,1003.6406); PlayerInfo[playerid][pInt] = 6; } else if (IsPlayerInRangeOfPoint(playerid,2,246.8740,63.5291,1003.6406)) // jaills { SetPlayerInterior(playerid,0); SetPlayerPosEx(playerid,1554.7500,-1675.5400,16.1953); PlayerInfo[playerid][pInt] = 0; } else if (IsPlayerInRangeOfPoint(playerid,2,1090.7542,-1476.3380,22.7465)) //tatto { SetPlayerInterior(playerid,16); SetPlayerPosEx(playerid,-204.439987,-26.453998,1002.273437); GameTextForPlayer(playerid, "~r~Tatto", 5000, 1); PlayerInfo[playerid][pInt] = 16; } else if (IsPlayerInRangeOfPoint(playerid,2,1765.1732,-1569.0253,1742.4930)) // enter visit { SetPlayerPosEx(playerid,1764.3419,-1567.7599,1742.4967); } else if (IsPlayerInRangeOfPoint(playerid,2,2166.4771,-1671.7883,15.0743)) // drugs house { SetPlayerInterior(playerid,5); SetPlayerPosEx(playerid,318.5867,1115.4735,1083.8828); PlayerInfo[playerid][pInt] = 5; } else if (IsPlayerInRangeOfPoint(playerid,2,1780.6133, -1569.6526, 1737.6211)) // area 51 - afara { if(!IsACop(playerid) && PlayerInfo[playerid][pJailTime] < 1) return 1; SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid, 51); SetPlayerPosEx(playerid,230.0804, 1888.0027, 17.7138); PlayerInfo[playerid][pInt] = 0; } else if (IsPlayerInRangeOfPoint(playerid,2,230.0804, 1888.0027, 17.7138)) // area 51 - inauntru { if(!IsACop(playerid) && PlayerInfo[playerid][pJailTime] < 1) return 1; SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid, 0); SetPlayerPosEx(playerid,1780.6133, -1569.6526, 1737.6211); PlayerInfo[playerid][pInt] = 0; SetTimerEx("UnfreezePlayer", 2000, 0, "%d", playerid); TogglePlayerControllable(playerid, 0); } else if (IsPlayerInRangeOfPoint(playerid,2,2307.2935,-1786.0671,13.5557)) // b'dub house { SetPlayerInterior(playerid,3); SetPlayerPosEx(playerid,1527.229980,-11.574499,1002.097106); GameTextForPlayer(playerid, "~w~B'Dub House", 5000, 1); PlayerInfo[playerid][pInt] = 3; } else if (IsPlayerInRangeOfPoint(playerid,2,157.3923,1903.2848,18.6660)) // armoury NG { if (IsACop(playerid)) { SetPlayerInterior(playerid,10); SetPlayerPosEx(playerid,246.5872,109.0304,1003.2188); GameTextForPlayer(playerid, "~w~National Guard Armoury", 5000, 1); PlayerInfo[playerid][pInt] = 10; SetPlayerVirtualWorld(playerid, 4); InHQ[playerid] = 3; } } else if (IsPlayerInRangeOfPoint(playerid,2,928.3403,-1352.9470,13.3438)) // Cluckin' Bell { SetPlayerInterior(playerid,9); SetPlayerPosEx(playerid,365.7158,-9.8873,1001.8516); GameTextForPlayer(playerid, "~w~Cluckin' Bell", 5000, 1); PlayerInfo[playerid][pInt] = 9; } else if (IsPlayerInRangeOfPoint(playerid,2,2229.3289,-1722.0793,13.5625)) { SetPlayerInterior(playerid,5); SetPlayerPosEx(playerid,772.111999,-3.898649,1000.728820); GameTextForPlayer(playerid, "~w~Ls Gym", 5000, 1); PlayerInfo[playerid][pInt] = 5; } else if (IsPlayerInRangeOfPoint(playerid,2,1833.0640,-1842.5887,13.5781)) { SetPlayerInterior(playerid,4); SetPlayerPosEx(playerid,-27.312299,-29.277599,1003.557250); GameTextForPlayer(playerid, "~w~24/7", 5000, 1); PlayerInfo[playerid][pInt] = 4; } else if (IsPlayerInRangeOfPoint(playerid,2,1481.1063,-1771.2532,18.7958)) { SetPlayerInterior(playerid,3); SetPlayerPosEx(playerid,387.7978,173.8582,1008.3828); PlayerInfo[playerid][pInt] = 3; } else if(PlayerToPoint(5,playerid,387.7978,173.8582,1008.3828)) { SetPlayerPosEx(playerid,1481.1063,-1771.2532,18.7958); SetPlayerInterior(playerid,0); } else if (IsPlayerInRangeOfPoint(playerid,1,306.1372,-141.8831,1004.0547))//gunshopusa 1 { SetPlayerPosEx(playerid,304.0046,-141.7622,1004.0625); } else if (IsPlayerInRangeOfPoint(playerid,1,300.4256,-141.7166,1004.0625))//gunshopusa 2 { SetPlayerPosEx(playerid,299.1350,-141.8335,1004.0547); } else if (IsPlayerInRangeOfPoint(playerid,2,1671.5824,-1329.4281,17.4524)) { if(areape == 1) { SetPlayerInterior(playerid,15); SetPlayerPosEx(playerid,-1423.5153,935.8321,1036.4756); PlayerInfo[playerid][pInt] = 15; } else return SCM(playerid,COLOR_WHITE,"Event area is closed."); } for(new i = 1; i < sizeof(HouseInfo); i++) { if (PlayerToPoint(2, playerid,HouseInfo[hExitx], HouseInfo[hExity], HouseInfo[hExitz]) && HouseInfo[hVirtual] == GetPlayerVirtualWorld(playerid)) { SetPlayerVirtualWorld(playerid,0); StopAudioStreamForPlayer(playerid); SetPlayerInterior(playerid,0); SetPlayerPosEx(playerid,HouseInfo[hEntrancex],HouseInfo[hEntrancey],HouseInfo[hEntrancez]); PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pLocal] = 255; InHouse[playerid] = -1; } } for(new i = 1; i < sizeof(BizzInfo); i++) { if (PlayerToPoint(2, playerid,BizzInfo[bExitX], BizzInfo[bExitY], BizzInfo[bExitZ]) && BizzInfo[bVirtual]==GetPlayerVirtualWorld(playerid)) { SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; SetPlayerPosEx(playerid,BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ]); PlayerInfo[playerid][pLocal] = 255; SetPlayerVirtualWorld(playerid,0); InBussines[playerid] = -1; } if(i == 3) { StopAudioStreamForPlayer(playerid); } } if (IsPlayerInRangeOfPoint(playerid,2,1764.3419,-1567.7599,1742.4967)) // exit visit { SetPlayerPosEx(playerid,1765.1732,-1569.0253,1742.4930); } else if (IsPlayerInRangeOfPoint(playerid,2,322.2210,303.0282,999.1484)) { SetPlayerInterior(playerid,0); SetPlayerPosEx(playerid,1397.0253,-1571.0708,14.2703); PlayerInfo[playerid][pInt] = 0; } else if(IsPlayerInRangeOfPoint(playerid,2,246.5872,109.0304,1003.2188) && GetPlayerVirtualWorld(playerid) == 4) // armoury NG { SetPlayerInterior(playerid,0); SetPlayerPosEx(playerid,157.3923,1903.2848,18.6660); PlayerInfo[playerid][pInt] = 0; SetPlayerVirtualWorld(playerid, 0); InHQ[playerid] = -1; } else if (IsPlayerInRangeOfPoint(playerid,2,-204.439987,-26.453998,1002.273437)) { SetPlayerInterior(playerid,0); SetPlayerPosEx(playerid,1090.7542,-1476.3380,22.7465); PlayerInfo[playerid][pInt] = 0; } else if (IsPlayerInRangeOfPoint(playerid,2,1527.229980,-11.574499,1002.097106)) { SetPlayerInterior(playerid,0); SetPlayerPosEx(playerid,2307.2935,-1786.0671,13.5557); PlayerInfo[playerid][pInt] = 0; } else if (IsPlayerInRangeOfPoint(playerid,1,304.5868,-141.9874,1004.0625))//gunshopusa { SetPlayerPosEx(playerid,305.7950,-141.8203,1004.0547); } else if (IsPlayerInRangeOfPoint(playerid,1,298.8386,-141.9191,1004.0547))//gunshopusa { SetPlayerPosEx(playerid,300.1631,-141.8074,1004.0625); } else if (IsPlayerInRangeOfPoint(playerid,2,834.1988,7.1422,1004.1870)) { SetPlayerInterior(playerid,0); SetPlayerPosEx(playerid,1122.9225,-1127.9012,23.8047); PlayerInfo[playerid][pInt] = 0; } else if (IsPlayerInRangeOfPoint(playerid,2,365.7158,-9.8873,1001.8516)) { SetPlayerInterior(playerid,0); SetPlayerPosEx(playerid,928.3403,-1352.9470,13.3438); PlayerInfo[playerid][pInt] = 0; } else if (IsPlayerInRangeOfPoint(playerid,2,203.7114,-48.8409,1001.8047)) { SetPlayerInterior(playerid,0); SetPlayerPosEx(playerid,2112.8286,-1211.8368,23.9634); PlayerInfo[playerid][pInt] = 0; } else if (IsPlayerInRangeOfPoint(playerid,2,772.111999,-3.898649,1000.728820)) { SetPlayerInterior(playerid,0); SetPlayerPosEx(playerid,2229.3289,-1722.0793,13.5625); PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pLocal] = 255; } else if (IsPlayerInRangeOfPoint(playerid,2,-27.6573,-31.3035,1003.5573)) { SetPlayerInterior(playerid,0); SetPlayerPosEx(playerid,1833.0640,-1842.5887,13.5781); PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pLocal] = 255; } else if (IsPlayerInRangeOfPoint(playerid,2,6.091179,-29.271898,1003.549438)) { SetPlayerInterior(playerid,0); SetPlayerPosEx(playerid,1315.5227,-898.4055,39.5781); PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pLocal] = 255; } else if (IsPlayerInRangeOfPoint(playerid,2,-25.884498,-185.868988,1003.546875)) { SetPlayerInterior(playerid,0); SetPlayerPosEx(playerid,1352.4180,-1758.4011,13.5078); PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pLocal] = 255; } else if (IsPlayerInRangeOfPoint(playerid,2,-25.132598,-139.066986,1003.546875)) { SetPlayerInterior(playerid,0); SetPlayerPosEx(playerid,1929.3660,-1776.2944,13.5469); PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pLocal] = 255; } else if (IsPlayerInRangeOfPoint(playerid,2,-30.946699,-89.609596,1003.546875)) { SetPlayerInterior(playerid,0); SetPlayerPosEx(playerid,1000.1578,-919.8109,42.3281); PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pLocal] = 255; } else if (IsPlayerInRangeOfPoint(playerid,2,-1423.5153,935.8321,1036.4756)) { if(areape == 1) { SetPlayerInterior(playerid,0); SetPlayerPosEx(playerid,1671.5824,-1329.4281,17.4524); PlayerInfo[playerid][pInt] = 0; } else return SCM(playerid,COLOR_WHITE,"Event area is closed."); } } if(GetPlayerVehicleID(playerid) == rentsf[1] || GetPlayerVehicleID(playerid) == rentsf[2] || GetPlayerVehicleID(playerid) == rentsf[3]) { TogglePlayerControllable(playerid, 1); RemovePlayerFromVehicleEx(playerid); } if(GetPlayerVehicleID(playerid) == rentls[1] || GetPlayerVehicleID(playerid) == rentls[2] || GetPlayerVehicleID(playerid) == rentls[3]) { TogglePlayerControllable(playerid, 1); RemovePlayerFromVehicle(playerid); } if(GetPlayerVehicleID(playerid) == rentlv[1] || GetPlayerVehicleID(playerid) == rentlv[2] || GetPlayerVehicleID(playerid) == rentlv[3]) { TogglePlayerControllable(playerid, 1); RemovePlayerFromVehicle(playerid); } if(GetPlayerVehicleID(playerid) == scooter[1] || GetPlayerVehicleID(playerid) == scooter[2] || GetPlayerVehicleID(playerid) == scooter[3] || GetPlayerVehicleID(playerid) == scooter[4] || GetPlayerVehicleID(playerid) == scooter[5]) { TogglePlayerControllable(playerid, 1); RemovePlayerFromVehicleEx(playerid); } if(NoFuel[playerid] == 1) { RemovePlayerFromVehicleEx(playerid); TogglePlayerControllable(playerid, 1); NoFuel[playerid] = 0; } new car = GetClosestVehicle(playerid); new carid = FindSpawnID(car); if(CarInfo[carid][Userid] == PlayerInfo[playerid][pSQLID]) { SetVehicleParamsForPlayer(car, playerid, 0, 0); } if(UsedFly[playerid] == 1) { StopFly(playerid); UsedFly[playerid] = 0; SetPlayerHealthEx(playerid, 100); return 1; } } return 1; } if (newkeys & KEY_ACTION) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { if(GetPVarInt(playerid, "Lights") == 0) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective); SetPVarInt(playerid, "Lights", 1); } else if(GetPVarInt(playerid, "Lights") == 1) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective); SetPVarInt(playerid, "Lights", 0); } } return 1; } if (newkeys & KEY_ANALOG_UP) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { if(GetPVarInt(playerid, "Bonnet") == 0) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective); SetPVarInt(playerid, "Bonnet", 1); } else if(GetPVarInt(playerid, "Bonnet") == 1) { GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(veh,engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective); SetPVarInt(playerid, "Bonnet", 0); } } return 1; } return 0; } Daca stiti va rog mult sa ma ajutati...ma chinui cu problema asta de mult. HELP ME PLZ!
×
×
  • 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.