Jump to content

KiDo

Membru
  • Posts

    26
  • Joined

  • Last visited

    Never

Everything posted by KiDo

  1. Cand adaug la OnplayerPickPickup asta [pawn]GivePlayerMoney(playerid, 10000);[/pawn] imi da banii dar mi scade la loc probabil din cauza anti hackului, cum fac sa nu mi scada?
  2. am dat UP pt ca astept de ieri si nu am primit nici un rasp.
  3. 1.Vezi daca ai toate pluginurile puse in server.cfg sa le ai asa "plugins streamer.so sscanf.so" etc (is numa un exemplu) .so este pentru linux .dll pentru windows SAU 2.Downloadeaza samp server linux si ala baga-l nu pentru windows.
  4. Cum sa fac ca la jucatorul care a castigat sa ii dea 50 k?
  5. Salutare, vreau sa va intreb cum se face un sistem de backup, adica la fiecare ora fixa(payday) sa se salveze conturile undeva, ce anume imi trebuie sau cum sa fac. Multumesc.
  6. [pawn]else if(strcmp(x_job,"pills",true) == 0) { if(PillsOffer[playerid] < 999) { if(GetPlayerMoney(playerid) > PillsPrice[playerid]) { if(PlayerInfo[playerid][pPills] < 7) { if(IsPlayerConnected(PillsOffer[playerid])) { GetPlayerName(PillsOffer[playerid], giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* You bought %d pills for %s from Medic %s.",Pills[playerid],FormatMoney(PillsPrice[playerid]),giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* %s has bought your %d pills, the %s was added to your PayCheck.",sendername,Pills[playerid],FormatMoney(PillsPrice[playerid])); SendClientMessage(PillsOffer[playerid], COLOR_LIGHTBLUE, string); PlayerInfo[PillsOffer[playerid]][pPayCheck] += PillsPrice[playerid]; GivePlayerMoneyEx(playerid, -PillsPrice[playerid]); PlayerInfo[playerid][pPills] += Pills[playerid]; PlayerInfo[PillsOffer[playerid]][pPills] -= Pills[playerid]; PillsOffer[playerid] = 999; PillsPrice[playerid] = 0; Pills[playerid] = 0; return 1; } return 1; } else { SendClientMessage(playerid, COLOR_GREY, " You are fully loaded with Pills, use them first !"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " You can't afford those Pills !"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " No-one offerd you any Pills !"); return 1; } }[/pawn] Am gasit ceva :-?
  7. pai asa ii si la /accept drugs nu are comanda.... am cautat peste tot /accept pills si nu este si am cautat si /accept drugs ti tot nu este. la drugs merge si la pills nu
  8. La aproape orice comanda imi apare Server: unknown Command. si daca comanda merge tot apare eroarea. cum o scot? Multumesc.
  9. ii acolo nu am alta comanda, ii la fel ca si la /accept drugs .
  10. Bun am sistemul de Pills pe server, dar nu merge comanda /accept pills cand un medic da /sell pills. [pawn]if(strcmp(cmd, "/sellpills", true) == 0) { if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /sellpills [playerid/PartOfName] [ammount] [price]"); return 1; } new playa; new money; new needed; playa = ReturnUser(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { return 1; } needed = strval(tmp); if(needed < 1 || needed > 50) { SendClientMessage(playerid, COLOR_GREY, " Grams not lower then 1, or above 50!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { return 1; } money = strval(tmp); if(money < 1 || money > 1000) { SendClientMessage(playerid, COLOR_GREY, " Price not lower then 1, or above 1000!"); return 1; } if(needed > PlayerInfo[playerid][pPills]) { SendClientMessage(playerid, COLOR_GREY, " You dont have that much Pills with you !"); return 1; } if(IsPlayerConnected(playa)) { if(playa != INVALID_PLAYER_ID) { if (ProxDetectorS(8.0, playerid, playa)) { new giveplayamoney = GetPlayerMoney(playa); if( moneys > giveplayamoney ) { SendClientMessage(playerid ,COLOR_GRAD2 , "That player doesn't have the cash to pay the pills"); } if(playa == playerid) { SendClientMessage(playerid, COLOR_GREY, " Cant sell to yourself!"); return 1; } GetPlayerName(playa, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* You offerd %s %d pills for %s .", giveplayer, needed, FormatMoney(money)); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Medic %s wants to sell you %d pills for %s, (type /accept pills) to buy.", sendername, needed, FormatMoney(money)); SendClientMessage(playa, COLOR_LIGHTBLUE, string); PillsOffer[playa] = playerid; PillsPrice[playa] = money; Pills[playa] = needed; } else { SendClientMessage(playerid, COLOR_GREY, " That player is not near you !"); } } } else { SendClientMessage(playerid, COLOR_GREY, " You are not a News Reporter !"); } } return 1; }[/pawn] Va rog sa ma ajutati .
  11. Bun as vrea sa stiu cum sa sterg unele obiecte din San Andreas? Folosesc JerneL Map editor
  12. KiDo

    Salut

    As vrea sa stiu si eu cum se numeste FS-ul acela daca ai de exemplu ak47 deagle cand ti setat deagle sa iti puna ak47 in spate si cand ii setat ak47 sa iti puna deagle la pantaloni?
  13. asta nu ii cu addvehicle se creaza in joc si se creaza in scriptfiles un fisier cu masina http://forum.sa-mp.com/showthread.php?t=276887
  14. Deci am o problema masinile se salveaza cu id 1 2 3 si mi se strica masinile de pe server daca intru in masina de YKZ zice ca nu sunt LCN.Cum fac sa imi adauge masini fr la id 1000+ sau cumva sa nu se mai strice? vreau sa va spun ca numai dupa restart se strica.
  15. cum sa fac gang wars cu comanda de /startwar ?
  16. Nu asta-i problema eu vreau sa ma scoata direct adica ii un fialog si cand apas Yes Sau No sa ma scoata afara direct.
  17. Deci sitemul de masini este asa sunt 12 modele pe server te duci intri intr-o masina si iti apare un dialog vrei sa cumperi masina ? Yes or No daca dai Yes iti apre ca ai cumparat-o si masina ti-o respawneaza la DealerShip Garage dar nu te da afara din masina de model(in cea care intri si iti apare daca o cumperi sau nu), eu as dori sa ma de-a afara din masina, ca si cand ai intra intr-o masian de factiune si ar zice ca nu ai key fix asa se intampla si daca dai No adica sa nu o cumperi nu te da afara, pe scurt mi-as dori cand o cumpar sau nu sa ma dea afara din masina.
  18. KiDo

    Problema Dialog

    Am rezolvat problema printr-o alta metoda, am schimbat id urile la dialoguri. In loc de asta [pawn]#define DIALOG_ERROR 12346[/pawn] puneti asta [pawn]#define DIALOG_ERROR 123465768[/pawn]
  19. Salut deci am o comanda asa [pawn]case DIALOG_VEHICLE_BUY: { new vehicleid = GetPVarInt(playerid, "DialogValue1"); new caption[32], info[256]; format(caption, sizeof(caption), "Vehicle ID %d", vehicleid); format(info, sizeof(info), "This vehicle is for sale ($%d)\nWould you like to buy it?", VehicleValue[vehicleid]); ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_MSGBOX, caption, info, "Yes", "No"); }[/pawn] intri in masina si te intreaba This vehicle is for sale (250000$) Would you like to buy it? si mai jos apare Yes No. Problema este urmatoarea cand dau No imi da Server Closed Connection,eu vreau cand da jucatorul No sa il scoata din masina. Cine ma paote ajuta ?
  20. Salut sa-mp.ro daca puteti si stiti cum fac sa apara numele colorat in chat cand scri adica daca esti LCN sa iti apara cu portocaliu daca esti YKZ sa iti apara cu verde in functie de ce factiune esti culoarea aia sa apara. ? Mi-a dat Ice un tutorial dar nu functioneaza am vorbit cu cel care a creat tutorialu si a spus ca a fost facut pentru 0.3c si probabil au aparut buguri, deci l-a facut el pentru mine deoarece mie nu mi-a iesit de loc si imi dadea diferite buguri scriam de x2 si daca scriam eu de ex la PD vedea ce scriu playerul din LV.
  21. Salut sa-mp.ro daca puteti si stiti cum fac sa apara numele colorat in chat cand scri adica daca esti LCN sa iti apara cu portocaliu daca esti YKZ sa iti apara cu verde in functie de ce factiune esti culoarea aia sa apara. ?
×
×
  • 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.