Jump to content

Size

Premium
  • Posts

    221
  • Joined

  • Last visited

Everything posted by Size

  1. new avatar :3 You like :?

  2. Foloseste asta: TRUNCATE `users` Poti crea o comanda, sau pur si simplu poti apasa pe butonul de 'empty' in baza de date, de la tabelul dorit.
  3. Creditele ii apartin lui Shad0w. https://www.youtube.com/watch?v=xo2Q2vhgIB0
  4. Sugestie: Playerii care au wanted sa nu mai poata folosi elicopterele. Cum crezi ca ar ajuta serverul: Ar fi mult mai usor pentru PD sa prinda un suspect cu wanted, acesta stand in aer nu are cum sa fie prins.
  5. Size

    System house

    Mersi :*.
  6. Size

    System house

    Mersi fain. @RedGun, este un site: http://grovestreetngg.forumotion.com/t26-house-interiors-list
  7. forward HideBonusTextDraw(playerid); public HideBonusTextDraw(playerid) { PlayerTextDrawHide(playerid, Bonus[playerid]); return 1; } Incearca acuma.
  8. Size

    System house

    Sistemul nu este complet, azi, abia am inceput sa-l rescriu. O sa revin cu un video dupa ce o sa-l termin. Sper sa va placa. Vizionare placuta! https://www.youtube.com/watch?v=3qiUz6CpGvg&feature=youtu.be PS: Scuzati claritatea videoului, PC de paie. :) Nu serios, nu stiu ce sa-i fac.
  9. Pune scriptul in PHP cu sistemul.
  10. A, presupun ca ai GameMode de pe net B**Zone, cauta functia 'GetPlayerMoney()'. Si inlocuieste asa: 'GetPlayerMoney(playerid, +amount)'
  11. Ti-a explicat RedGun, iti recomand acest link: http://forum.sa-mp.c...ad.php?t=598933 este mult mai usor de realizat scriptul. Descarca acel, include 'LY.inc' si punel in folderul cu pawno, la includes. Adaugi in GameMode: #include <LY> Uite un exemplu foarte bun, fara sa-ti mai explicam: pVar[playerid][pMoney] - your variable suffix pVar[playerid][pMoneyLY] - your variable prefix //adding money to the bank UpdateLY(pVar[playerid][pMoneyLY], pVar[playerid][pMoney], amount); //<-- set your amount GivePlayerMoney(playerid,-amount); //the payment from the bank if(IsValueContainLY(pVar[playerid][pMoneyLY], pVar[playerid][pMoney], amount)){ //<-- set your amount UpdateLY(pVar[playerid][pMoneyLY], pVar[playerid][pMoney], -amount); GivePlayerMoney(playerid,amount); } else { //you do not have enough money } //The amount of money in bank new mymoney[LY_STRING_LEN], buffer[128]; GetLYString(pVar[playerid][pMoneyLY], pVar[playerid][pMoney], mymoney); format(buffer,sizeof buffer,"You money in bank: %s",mymoney); SendClientMessage(playerid,-1,buffer); Acea functie, iti 'desparte' un anumit numar. Spre exemplu $1000, ii poti scrie $1,000, daca folosesti acea functie. Exemplu: new amount = 1000; new string[120]; format(string, sizeof(string), "Value: %s", FormatNumber(amount)); SendClientMessage(playerid, -1, string); Mesajul va fi ceva gen: 'Value: 1,000', in loc de 'Value: 1000'. Atentie: In loc de '%s', pune '%d'. Nu sunt sigur cum este la tine in GameMode acea functie scrisa.
  12. http://forum.sa-mp.com/showthread.php?t=372994 Poti gasi mai multe rezultate. Incearca asta.
  13. Update-uri GameMode: [1.145]: - adaugat sistem pentru taximestristi - sistem pentru cops (/confiscate licence) - confisca licenta de condus. - anticheat imbunatatit. - rezolvat un bug la sistemul de anti reclama.\;./ - playerii care fac parte dintr-un departament de politie nu le mai scad orele pentru licenta de arme. (acesta nu va mai expira cat timp sunteti polititsti) - acuma cand folosesti (/park) trebuie sa ai motorul masini oprit si minim 500% din viata masini. - adaugata comanda /towcar pentru a respawna masina mai rapid. - adaugata optiunea 'Unstuck vehicle' in /v. - logurile se sterg dupa 30 minute (daca sunt mai mult de 200 pentru unu anumit player) - player logs. - adaugatam loguri pentru omoruri, adaugata comanda /lastkills pentru a vedea ultimele 10 omoruri avute. [1.148]: Cars: - Vehiculele personale: Se salveaza damage-ul facut si health-ul masini. - Adaugat top speed in /v si la dealership. - reparat un bug in care atunci cand cumparai un vehicul din DS sa iti explodeze de repetate ori. Reparate mici vulnerabilitati. - logurile mai vechi de 30 de zile se sterg din last punish (LP). - admini care se logheaza dintr-o alta locatie, decat cea din care se logeaza de obicei, vor primi kick la conectarea pe server. Sistem VIP: - Adaugate comenzile /vipnamecolor, /vipname, /vipwheels. Se pot schimba culorile pe vehiculul respectiv, si textul desigur. Comanda /vipwheels, este folosita pentru a schimba jentile unui vehicul care poate fi upgradat VIP. (Sultan, Infernus sau BUllet) In viitor vor fi adaugate mai multe vehicule care pot fi Upgradate. [1.150]: - adaugat un sistem de anticheat pentru playerii din factiuniile de tip mafie. Pentru mai multe detalii sampcac.xyz. Nu se vor mai putea folosi coduri de nici un fel pe SA:MP. (pentru cei care sunt in factiuniile de tip mafie) - dupa un interval de 5 minute de inactivitate, admini ce sunt on duty vor fi pusi automat off duty. - logurile de la chat se sterg daca sunt mai mult de 200+ pentru un player. - /getdrugs poate fi folosita in interiorul HQ-ului, 500$ * 1g de drog. in **** house 1000$ * 1g drog. - acuma folosind comanda /gdeposit, se pot depune si droguri in seif. - cand un player este cautat prin comanda /find si acesta este intr-un business, casa sau HQ ii arata distanta si CP-ul celui care il cauta pe casa / HQ-ul sau business-ul acelui player. - rezolvat un bug la /news, in care puteai sa dai news-uri fara sa scri vreo litera. - adaugata comanda /tradecar, poti sa faci schimbul de vehiculele dar insa va trebui sa platesti si diferenta pentru acesta. -intarita securit atea la logarea cu proxy/vpn. - adaugate comenzile /santahat, /hallownskin si /hallowenhat. - acestea vor fi adaugate doar de sarbatori. - cand ataci un player si esti spec pe un alt player care se afla langa playerul omorat ii apare adminului de cine a fost omorat acel player si cu ce. - adaugata comanda /addhouse pentru admini 6+, pentru a adauga case pe server. - adaugate comenzile /fspec, /fchat si /fspcid. - anticheat imbunatatit. - se poate folosi /eject pe un player care sta PE masina ta (car surfing), iar playerul respectiv va primi un slap. - adaugata comanda /fly pentru admini. - rezolvate mici buguri la jobul pizza boy.
  14. La multi ani, celor care poarta numele de Gabriel sau Mihail.

  15. CMD:ticket(playerid,params[]) { new ru[200],ti; if(!IsPlayerInRangeOfPoint(playerid, 10.0, 545.8136, -1967.5376, 1.4453)) return SendClientMessage(playerid, -1, "You are not at the buying ticket location."); if(IsLottoStarted==false)return SendClientMessage(playerid, 0xFF4500AA, "Lottery has not been started yet."); if(sscanf(params,"i",ti))return SendClientMessage(playerid,-1,"{ff0000}Wrong Usage of command | Correct Usage : /ticket [your number]"); format(ru,sizeof(ru),"The nuber should be in range of 0-%i",numrange); if(ti > numrange || ti < 0)return SendClientMessage(playerid,0xFF4500AA,ru); format(ru,sizeof(ru),"You need to have %i $ to buy ticket.",ticketprice); if(GetPlayerMoney(playerid)<ticketprice)return SendClientMessage(playerid,0xFF4500AA,ru); if(takenticket[playerid]==1)return SendClientMessage(playerid,0xFF4500AA,"You have already taken a lottrey ticket."); if(IsNumTaken(ti))return SendClientMessage(playerid,0xFF4500AA,"The number has already been chosen by other user. | Please chose other number"); takenticket[playerid]=1; GivePlayerMoney(playerid,-ticketprice); ticketnum[playerid]=ti; format(ru,sizeof(ru),"You have chosen %i as your lucky number!!",ti); SendClientMessage(playerid,0xCCFF00,ru); return 1; } Uite comanda.
  16. Ce faceti?

    1. BuLLDoG Gamer
    2. Nicolae Generalu

      Nicolae Generalu

      Bine sizee, tu ce faci ?

    3. Size

      Size

      Heiii. <3 Uite, bine... stau sa termin raportul in NR. :D

  17. Size

    problema cod

    Cauta in GameMode la tine, mai exact la OnGameModeInit, 'usebox'. Si sterge acel textdraw.
  18. Exact. Fiecare functie sa fie definita. La OnPlayerConnect / OnPlayerDisconnect, seteaza valorile pe 0.
  19. if(!isnull(inputtext)) for(new strPos; inputtext[strPos] > 0; strPos++) if(inputtext[strPos] == '%') inputtext[strPos] = '\0'; Ceva mai simplu.
  20. CMD:n(playerid, params[]) { if(playerVariables[playerid][pAdmin] == 0 && playerVariables[playerid][pHelper] == 0) { if(playerVariables[playerid][nTimeOut] == 0) { if(playerVariables[playerid][timeN] > 0) return SendClientMessage(playerid, COLOR_ERROR, "You have muted from /n. You can't use this now."); new helper; new szClearMsg[600]; if(haveQuestion[playerid] == 0) { if(playerVariables[playerid][pTogN] == 0) { playerVariables[playerid][pTogN] = 1; SS(playerid, COLOR_ACTION, "Help chat enabled. Use /togn to disable it.", "Chat de ajutor activat. Foloseste /togn pentru a-l dezactiva."); new query[120]; format(query, sizeof(query), "UPDATE playeraccounts SET playerTogN = '%d' WHERE playerID = '%d'", playerVariables[playerid][pTogN], playerVariables[playerid][pInternalID]); mysql_query(db, query); } format(szMessage, sizeof(szMessage), "* Newbie %s: %s", pName(playerid), params); S(playerid, COLOR_NEWBIES, szMessage); format(playerVariables[playerid][pReportMessage], 300, "%s", params); format(playerVariables[playerid][pReportMessage2], 300, "%s", params); playerVariables[playerid][nTimeOut] = 120; haveQuestion[playerid] = 1; format(szClearMsg, sizeof(szClearMsg), "INSERT INTO chatlogs (value, playerinternalid, chat) VALUES('%s', '%d', 'newbie')", szMessage, playerVariables[playerid][pInternalID]); mysql_query(handle, szClearMsg); foreach(Player, i) { if(playerVariables[i][pHelperDuty] == 1 && playerVariables[i][pHelper] >= 1 || playerVariables[i][pAdmin] >= 1) { helper = i; break; } } new strings[300]; if(helperQuestion[helper] == 0 && helperQuestionID[helper] == -1 && playerVariables[helper][pHelperDuty] == 1) { format(strings, sizeof(strings), "{FFAB00}** {FFEB00}Question from %s (%d, level %d) {FFAB00}**", pName(playerid), playerid, playerVariables[playerid][pLevel]); SendClientMessage(helper, COLOR_BLUE, strings); format(strings, sizeof(szMessage), "%s", params); S(helper, COLOR_YELLOW, strings); helperQuestion[helper] = 1; helperQuestionID[helper] = playerid; } } else return SS(playerid, COLOR_ERROR, "You already sent a question to /n. Please wait.", "Ai trimis deja o intrebare pe /n. Asteapta.."); } else { format(szMessage, sizeof(szMessage), "Poti folosi /n peste %d secunde.", playerVariables[playerid][nTimeOut]); SendClientMessage(playerid, COLOR_ERROR, szMessage); } } else { if(helperQuestion[playerid] == 1) { if(helperQuestionID[playerid] != -1) { new hd, q; new id = helperQuestionID[playerid]; foreach(Player, i) { if(playerVariables[i][pHelperDuty] == 1) { hd++; } if(haveQuestion[i] == 1) { q++; } } if(playerVariables[playerid][pLanguage] == 1) { format(szMessage, sizeof(szMessage), "Raspuns trimis: %s", params); } else if(playerVariables[playerid][pLanguage] == 2) { format(szMessage, sizeof(szMessage), "Answer send: %s", params); } S(playerid, COLOR_GREY, szMessage); if(q >= hd && q > 0) { SS(playerid, COLOR_GREY, "You can use /nnext to receive a new question.", "Poti folosi comanda /nnext pentru a primi o intrebare noua."); } if(haveQuestion[id] == 1) { foreach(Player, i) { if(i != playerid && i != id) { format(szMessage, sizeof(szMessage), "* Newbie %s: %s", GetName(id), playerVariables[id][pReportMessage]); if(playerVariables[i][pTogN] == 1) S(i, COLOR_NEWBIES, szMessage); } } } foreach(Player, z) { if(id != z && z != playerid) { if(playerVariables[playerid][pAdmin] >= 1) { format(szMessage, sizeof(szMessage), "* Admin %s: @%s, %s", pName(playerid), pName(id), params); } else if(playerVariables[playerid][pHelper] >= 1) { format(szMessage, sizeof(szMessage), "* Helper %s: @%s, %s", pName(playerid), pName(id), params); } if(playerVariables[z][pTogN] == 1) S(z, COLOR_NEWBIES, szMessage); } else if(id == z && z != playerid) { if(playerVariables[playerid][pAdmin] >= 1) { format(szMessage, sizeof(szMessage), "* Admin %s: %s", pName(playerid), params); } else if(playerVariables[playerid][pHelper] >= 1) { format(szMessage, sizeof(szMessage), "* Helper %s: %s", pName(playerid), params); } S(z, COLOR_YELLOW, szMessage); } haveQuestion[id] = 0; } } else S(playerid, COLOR_ERROR, "Invalid question / user ID."); } else SS(playerid, COLOR_ERROR, "You don't have a question active.", "Nu ai nici o intrebare."); } return 1; } Un +1 ar merge? :D Comanda este facuta fix ca cea de la comunitatea Bugged.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. 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.

moduri samp