Jump to content

Джо

Membru
  • Posts

    1.557
  • Joined

  • Last visited

  • Days Won

    28

Everything posted by Джо

  1. Джо

    server samp

    Topic Closed,respecta modelul.
  2. Bun pune stiu si eu o definite pentru pompier spre exemplu: La Enum pInfo sau pData: pPompierMerge, La OnPlayerConnect PlayerInfo[playerid][pPompierMerge] = 0; Incearca asa //=======================pompier================================================ if(strcmp("/Pompier", cmdtext, true, 10) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pPompierMerge] != 0) { SendClientMessage(playerid, COLOR_GREY, "Ai facut deja jobul!Asteapta pana la payday"); return 1; } if(PlayerInfo[playerid][pJob] == 19) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 407) { PompierJob[playerid] = 1; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "* %s Este Pompier.", name ); SendClientMessageToAll(COLOR_AQUA, string); PlayerInfo[playerid][pPompierMerge] = 1; GameTextForPlayer(playerid, "~g~!!~w~Ai inceput sa ~r~Lucrezi~b~Succes~g~!!!...", 2000, 5); SetPlayerCheckpoint(playerid,1099.0345,-1194.4751,18.1079,4); GivePlayerWeapon(playerid, 42, 99999); SendClientMessage(playerid,COLOR_YELLOW,"* Dute Si stinge focul!"); return 1; } SendClientMessage(playerid, COLOR_RED,"Doar cu masina de Pompier Incepi jobu!"); } else SendClientMessage(playerid, COLOR_RED,"Doar cei care au jobul Pompier pot folosi aceasta comanda!"); } } Bun iar la payday pune asa fix cum ti-am dat eu. public PayDay() { new string[128]; new account,interest; new rent = 0; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[pLevel] > 0) { if(MoneyMessage==1) { SendClientMessage(i, COLOR_1RED, "You failed to pay your debt, Jail time."); GameTextForPlayer(i, "~r~Busted!", 2000, 1); SetPlayerInterior(i, 6); PlayerInfo[pInt] = 6; new rand = random(23); switch(rand) { case 0: SetPlayerPos(i, 1778.6909,-1564.3738,1734.9430); case 1: SetPlayerPos(i, 1774.3809,-1564.6334,1734.9430); case 2: SetPlayerPos(i, 1769.9397,-1564.6521,1734.9430); case 3: SetPlayerPos(i, 1765.9397,-1564.6521,1734.9430); case 4: SetPlayerPos(i, 1761.9397,-1564.6521,1734.9430); case 5: SetPlayerPos(i, 1757.9397,-1564.6521,1734.9430); case 6: SetPlayerPos(i, 1778.8190,-1582.3438,1734.9430); case 7: SetPlayerPos(i, 1774.8190,-1582.3438,1734.9430); case 8: SetPlayerPos(i, 1769.8190,-1582.3438,1734.9430); case 9: SetPlayerPos(i, 1765.8190,-1582.3438,1734.9430); case 10: SetPlayerPos(i, 1761.8190,-1582.3438,1734.9430); case 11: SetPlayerPos(i, 1757.8190,-1582.3438,1734.9430); case 12: SetPlayerPos(i, 1778.6909,-1564.3738,1738.9430); case 13: SetPlayerPos(i, 1774.3809,-1564.6334,1738.9430); case 14: SetPlayerPos(i, 1769.9397,-1564.6521,1738.9430); case 15: SetPlayerPos(i, 1765.9397,-1564.6521,1738.9430); case 16: SetPlayerPos(i, 1761.9397,-1564.6521,1738.9430); case 17: SetPlayerPos(i, 1757.9397,-1564.6521,1738.9430); case 18: SetPlayerPos(i, 1778.8190,-1582.3438,1738.9430); case 19: SetPlayerPos(i, 1774.8190,-1582.3438,1738.9430); case 20: SetPlayerPos(i, 1769.8190,-1582.3438,1738.9430); case 21: SetPlayerPos(i, 1765.8190,-1582.3438,1738.9430); case 22: SetPlayerPos(i, 1761.8190,-1582.3438,1738.9430); case 23: SetPlayerPos(i, 1757.8190,-1582.3438,1738.9430); } TogglePlayerControllable(i, 0); OToggleControl = SetTimerEx("OToggle", 2000, false, "i", i); PlayerInfo[pJailed] = 1; ResetPlayerWeapons(i); ResetPlayerMoney(i); WantedPoints = 0; PlayerInfo[pJailTime] = 240; format(string, sizeof(string), "You are jailed for %d seconds. Bail: Unable", PlayerInfo[pJailTime]); SendClientMessage(i, COLOR_WHITE, string); } new playername2[MAX_PLAYER_NAME]; GetPlayerName(i, playername2, sizeof(playername2)); account = PlayerInfo[pAccount]; new key = PlayerInfo[pPhousekey]; if(key != 255) { rent = HouseInfo[key][hRent]; if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0) { rent = 0; } else if(rent > GetPlayerMoney(i)) { PlayerInfo[pPhousekey] = 255; SendClientMessage(i, COLOR_WHITE, "You have been evicted."); rent = 0; } HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent; } new tmpintrate; if (key != 255 && strcmp(playername2, HouseInfo[key][hOwner], true) == 0) { if(PlayerInfo[pDonateRank] > 0) { tmpintrate = intrate+4; } else { tmpintrate = intrate+2; } } else { if(PlayerInfo[pDonateRank] > 0) { tmpintrate = 3; } else { tmpintrate = 1; } } if(PlayerInfo[pPayDay] >= 5) { Tax += TaxValue; PlayerInfo[pAccount] -= TaxValue; new checks = PlayerInfo[pPayCheck] / 3; if(PlayerInfo[pDonateRank] > 0) { new bonus = PlayerInfo[pPayCheck] / 5; checks += bonus; } new ebill = (PlayerInfo[pAccount]/10000)*(PlayerInfo[pLevel]); ConsumingMoney = 1; GivePlayerMoney(i, checks); if(PlayerInfo[pAccount] > 0) { PlayerInfo[pAccount] -= ebill; SBizzInfo[4][sbTill] += ebill; } else { ebill = 0; } interest = (PlayerInfo[pAccount]/1000)*(tmpintrate); PlayerInfo[pExp]++; PlayerInfo[pCoin]++; PlayerPlayMusic(i); PlayerInfo[pAccount] = account+interest; SendClientMessage(i, COLOR_WHITE, "{00A1FF}|___ BANK STATMENT ___|"); format(string, sizeof(string), " Paycheck: {33ff33}$%d {FFFFFF}Tax Money: {33ff33}-$%d", checks, TaxValue); SendClientMessage(i, COLOR_WHITE, string); format(string, sizeof(string), " Tax Money: {33ff33}-$%d", TaxValue); SendClientMessage(i, COLOR_WHITE, string); if(PlayerInfo[pPhousekey] != 255 || PlayerInfo[pPbiskey] != 255) { format(string, sizeof(string), " Electricity Bill: {33ff33}-$%d", ebill); SendClientMessage(i, COLOR_WHITE, string); } format(string, sizeof(string), " Balance: {33ff33}$%d", account - checks); SendClientMessage(i, COLOR_WHITE, string); format(string, sizeof(string), " Interest Rate: {33ff33}0.%d percent",tmpintrate); SendClientMessage(i, COLOR_WHITE, string); format(string, sizeof(string), " Interest Gained: {33ff33}$%d", interest); SendClientMessage(i, COLOR_WHITE, string); SendClientMessage(i, COLOR_WHITE, "{00A1FF}|--------------------------------------|"); format(string, sizeof(string), " New Balance: {33ff33}$%d", PlayerInfo[pAccount]); SendClientMessage(i, COLOR_WHITE, string); format(string, sizeof(string), " Rent: {33ff33}-$%d", rent); SendClientMessage(i, COLOR_WHITE, string); format(string, sizeof(string), " Coin: {33ff33}%d", PlayerInfo[pCoin]); SendClientMessage(i, COLOR_WHITE, string); format(string, sizeof(string), "~y~PayDay~n~~w~Check paid into your account"); GameTextForPlayer(i, string, 5000, 1); rent = 0; PlayerInfo[pRob] += 1; PlayerInfo[pPayDay] = 0; PlayerInfo[pPayCheck] = 0; PlayerInfo[pConnectTime] += 1; PlayerInfo[playerid][pPompierMerge] = 0; if(PlayerInfo[pDonateRank] > 0) { PlayerInfo[pPayDayHad] += 1; if(PlayerInfo[pPayDayHad] >= 5) { PlayerInfo[pExp]++; PlayerInfo[pCoin]++; PlayerInfo[pPayDayHad] = 0; } } } else { SendClientMessage(i, COLOR_WHITE, "* You haven't played long enough to obtain a PayDay."); } } } } SaveAccounts(); Checkprop(); return 1; } Deci eu ti l-am facut asta pentru a da odata pe h /pompier.
  3. Nu,cand ascult colinde imi aduc aminte de familie,de faptul ca eram mic si mergeam la colindat dupa mergeam la un club si mergeam pe 3 carari acasa:))
  4. Youre speak englesh de balta. Posteaza comanda prin care pornesti jobul.
  5. :* Deschide poarta cretine Ca vin si eu pe la tine Servim jin pan' la betie. Cine e Gogaie al meu?)) Bravo ma ai talent.
  6. Hmm...Pai pune o verificare la comanda /pompier sa vada daca a mai facut in ultima ora jobul..
  7. Fain,bravo. 10/10.
  8. Джо

    SA-MP 0.4a - True?

    Se va pregati din anul 2015(de pe 1-2 ianuarie aproximativ) versiunea 0.4 :* Asa am auzit.
  9. Ai http://wiki.sa-mp.com/wiki/AttachObjectToPlayer La OnPlayerCommandText pui if(!strcmp(cmdtext, "/santa", true)) { SetPlayerAttachedObject(playerid, 3, 19065, 2, 0.120000, 0.040000, -0.003500, 0, 100, 100, 1.4, 1.4, 1.4); return SendClientMessage(playerid, 0x00FF00FF, "Ti-ai pus caciula!"); } if(!strcmp(cmdtext, "/scoate", true)) { if(IsPlayerAttachedObjectSlotUsed(playerid, 3)) { RemovePlayerAttachedObject(playerid, 3); SendClientMessage(playerid, 0x00FF00FF, "Ti-ai dat caciula jos."); } return 1; } return 0; }
  10. Asta e problema legata de scripting.
  11. Unde ai pus astinsfocul[playerid]=0; ?
  12. Esti beat ma,dute si te culca,Maurice avea de mult cont aici,doar ca acum a activat pe el.Si stiam ca de el este facut tutorialul acela dupa care te-ai luat doar ca nu am vrut sa comentez.
  13. 1.Eu nu inteleg de ce ai mai pus un textdraw cu data in care suntem daca tu ai unul sus in dreapta(uitate unde ai heal-ul) 2.Posteaza scriptul la care ai problema.
  14. Frumos,simplu dar buna ideea.
  15. Arata in ce interior se spawneaza,exemplu,ce faci inainte sa intrii in garaj?Ti-as sugera sa creez o mapa din MTA(exista obiectul) si sa muti tot acolo pentru a rezolva aceasta problema,asa am patit-o si eu...
  16. Джо

    Ajutor

    Foloseste asta,e simplu si rapid.
  17. Topic Closed. Motiv : 48 de ore fara postare.
  18. Topic Closed. Motiv : 48 de ore fara postare.
  19. Masina ta nu dispare,masina ta apare in alt virtual world.
  20. Topic Closed+30% warning pentru injurii la adresa unui moderator global.
  21. else if(strcmp(x_nr,"buy",true) == 0) { new car = 1; new model = GetVehicleModel(idcar); if(IsASalesVehicle(idcar)) { if(PlayerInfo[playerid][pLevel] < 2) { SendClientMessage(playerid, COLOR_GREY, "You need to be level 2 to buy a vehicle!"); return 1; } if(PlayerInfo[playerid][pPcarkey] == 9999 || PlayerInfo[playerid][pPcarkey3] == 9999 || PlayerInfo[playerid][pPcarkey2] == 9999 || PlayerInfo[playerid][pPcarkey4] == 9999) { if(GetPlayerMoney(playerid) >= GetVehiclePrice(idcar)) { if(PlayerInfo[playerid][pCarLic] == 1) { for(new h = 1; h < sizeof(CarInfo); h++) { if(CarInfo[h][cOwned] == 0) { car = h; h = 9999; } } format(string, sizeof(string),"LARP/Vehicles/%d.ini",car) dini_Create(string); if(PlayerInfo[playerid][pPcarkey] == 9999) { PlayerInfo[playerid][pPcarkey] = car; } else if(PlayerInfo[playerid][pPcarkey2] == 9999) { PlayerInfo[playerid][pPcarkey2] = car; } else if( PlayerInfo[ playerid ][ pPcarkey3 ] == 9999 ) { if(PlayerInfo[playerid][pVip] >= 1)// Daca aici are variabila cu >= 1 inseamna ca daca are vip 1 sau mai mult poate cumpara masina de pe slotul 3 ceea ce te scuteste de munca. { PlayerInfo[playerid][pPcarkey3] = car; } else if(PlayerInfo[playerid][pVip] == 0) { SendClientMessage(playerid,-1, "Trebuie sa fii VIP pentru a folosi al 3-lea slot!" ); return 1; } } else if(PlayerInfo[playerid][pPcarkey3] == 9999) { PlayerInfo[playerid][pPcarkey3] = car; } else if( PlayerInfo[ playerid ][ pPcarkey4 ] == 9999 ) { if(PlayerInfo[playerid][pVip] == 2) { PlayerInfo[playerid][pPcarkey4] = car; } else if(PlayerInfo[playerid][pVip] == 0) { SendClientMessage(playerid,-1, "Trebuie sa fii VIP level2 pentru a folosi al 4-lea slot!" ); return 1; } } else if(PlayerInfo[playerid][pPcarkey4] == 9999) { PlayerInfo[playerid][pPcarkey4] = car; } CarInfo[car][cOwned] = 1; strmid(CarInfo[car][cOwner], sendername, 0, strlen(sendername), 999); SafeGivePlayerMoney(playerid,-GetVehiclePrice(idcar)); if(IsModelAPlane(idcar) || IsModelAHeli(idcar)) { CarInfo[car][cLocationx] = 93.3057; CarInfo[car][cLocationy] = 2502.0701; CarInfo[car][cLocationz] = 16.4007; CarInfo[car][cAngle] = 208.7506; SendClientMessage(playerid, COLOR_YELLOW2, "Your Aircraft has been deliveried to Las Venturas Airport, you can get it there!"); SendClientMessage(playerid, COLOR_YELLOW2, "Your vehicle is unlocked so you can pay someone to deliver it to your new spawn point!"); SendClientMessage(playerid, COLOR_NICERED, "REMEMBER: Leaving your car in the deliver point can get your car SOLD by an administration without refund!"); SetPlayerCheckpoint(playerid, 93.3057,2502.0701,16.4007, 3.0); GameTextForPlayer(playerid, "~p~Congratulations~n~~w~Don't forget to pickup your car at the ~b~Las Venturas Airport!", 5000, 3); } else if(IsModelABoat(idcar)) { CarInfo[car][cLocationx] = 225.8744; CarInfo[car][cLocationy] = -1912.4093; CarInfo[car][cLocationz] = 1.0907; CarInfo[car][cAngle] = 208.7506; SendClientMessage(playerid, COLOR_YELLOW2, "Your Boat has been deliveried to San Fierro Docks, you can get it there!"); SendClientMessage(playerid, COLOR_YELLOW2, "Your vehicle is unlocked so you can pay someone to deliver it to your new spawn point!"); SendClientMessage(playerid, COLOR_NICERED, "REMEMBER: Leaving your car in the deliver point can get your car SOLD by an administration without refund!"); SetPlayerCheckpoint(playerid, 225.8744, -1912.4093, 1.0907, 3.0); GameTextForPlayer(playerid, "~p~Congratulations~n~~w~Don't forget to pickup your car at the ~b~San Fierro Docks!", 5000, 3); } else { CarInfo[car][cLocationx] = -1589.2644; CarInfo[car][cLocationy] = 106.9119; CarInfo[car][cLocationz] = 3.5495; CarInfo[car][cAngle] = 317.1649; SendClientMessage(playerid, COLOR_YELLOW2, "Your vehicle has been deliveried to San Fierro Docks, you can get it there!"); SendClientMessage(playerid, COLOR_YELLOW2, "Your vehicle is unlocked so you can pay someone to deliver it to your new spawn point!"); SendClientMessage(playerid, COLOR_NICERED, "REMEMBER: Leaving your car in the deliver point can get your car SOLD by an administration without refund!"); SetPlayerCheckpoint(playerid, -1589.2644,106.91193,3.5495, 3.0); GameTextForPlayer(playerid, "~p~Congratulations~n~~w~Don't forget to pickup your car at the ~b~San Fierro Docks!", 5000, 3); } CarInfo[car][cModel] = model; CarInfo[car][cGas] = 0; CarInfo[car][cparcare] = 0; CarInfo[car][cinparcare] = 0; VehicleKM[car] = 0; CarInfo[car][cVirWorld] = 0; CarInfo[car][cPaintjob] = 999; CarInfo[car][cColorOne] = 1; CarInfo[car][cColorTwo] = 1; CarInfo[car][cComponent0] = 0; CarInfo[car][cComponent1] = 0; CarInfo[car][cComponent2] = 0; CarInfo[car][cComponent3] = 0; CarInfo[car][cComponent4] = 0; CarInfo[car][cComponent5] = 0; CarInfo[car][cComponent6] = 0; CarInfo[car][cComponent7] = 0; CarInfo[car][cComponent8] = 0; CarInfo[car][cComponent9] = 0; CarInfo[car][cComponent10] = 0; CarInfo[car][cComponent11] = 0; CarInfo[car][cComponent12] = 0; CarInfo[car][cComponent13] = 0; DestroyVehicle(car); ownedcar[car] = CreateVehicle(CarInfo[car][cModel],CarInfo[car][cLocationx],CarInfo[car][cLocationy],CarInfo[car][cLocationz],90.0,1,1,30000); PlayerPlayMusic(playerid); SendClientMessage(playerid, COLOR_GRAD2, "Congratulations on your new purchase!"); SendClientMessage(playerid, COLOR_GRAD2, "Type /vehiclehelp to view the vehicle manual!"); gEngine[playerid] = 0; engineOn[GetPlayerVehicleID(playerid)] = false; SendClientMessage(playerid, COLOR_GREY, "Remember to set the new Security Code of the Car!"); new pass[24]; format(pass, sizeof(pass),"%d%d%d",random(9),random(9),random(9)); CarInfo[car][cCode] = strval(pass); OnPropUpdate(4,car); OnPlayerUpdateEx(playerid); } else { SendClientMessage(playerid, COLOR_WHITE, "* For security reasons, a Driving License is needed to buy a car!"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash with you ! "); return 1; } } else if(PlayerInfo[playerid][pPcarkey] != 9999 && PlayerInfo[playerid][pPcarkey3] != 9999 && PlayerInfo[playerid][pPcarkey2] != 9999) { SendClientMessage(playerid, COLOR_GREY, "Nu ai sloturi! "); return 1; } } }
  22. if(strcmp(cmd, "/gethere", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: /gethere [playerid/PartOfName]"); return 1; } new Float:plocx,Float:plocy,Float:plocz; new plo; plo = ReturnUser(tmp); if (IsPlayerConnected(plo)) { if(plo != INVALID_PLAYER_ID) { if(PlayerInfo[plo][pJailed] == 1) { SendClientMessage(playerid,COLOR_GREY,"[Server]: Acest player nu sia terminat inca sentinta (/jl) !"); return 1; } if(WantedLevel[plo] >= 1) { SendClientMessage(playerid,COLOR_GREY,"[Server]: Acest player are wanted,este posibil sa fie urmarit de politie !"); return 1; } if(PlayerInfo[plo][pAdmin] > PlayerInfo[playerid][pAdmin]) { SendClientMessage(playerid, COLOR_GRAD1,"[Server]: Nu poti teleporta admini mai mari in grad ca tine !"); return 1; } GetPlayerPos(playerid, plocx, plocy, plocz); if(GetPlayerInterior(playerid) > 0) { SetPlayerInterior(plo,GetPlayerInterior(playerid)); PlayerInfo[plo][pInt] = GetPlayerInterior(playerid); PlayerInfo[plo][pVirWorld] = GetPlayerVirtualWorld(playerid); SetPlayerVirtualWorld(plo,GetPlayerVirtualWorld(playerid)); } if(GetPlayerInterior(playerid) == 0) { SetPlayerInterior(plo,0); PlayerInfo[plo][pVirWorld] = 0; SetPlayerVirtualWorld(plo,0); } if(plocz > 930.0 && GetPlayerInterior(playerid) == 0) //the highest land point in sa = 526.8 { SetPlayerInterior(plo,1); PlayerInfo[plo][pInt] = 1; PlayerInfo[plo][pVirWorld] = 1; SetPlayerVirtualWorld(plo,1); } if (GetPlayerState(plo) == 2) { TelePos[plo][0] = 0.0; TelePos[plo][1] = 0.0; new tmpcar = GetPlayerVehicleID(plo); SetVehiclePos(tmpcar, plocx, plocy+4, plocz); } else { SetPlayerPos(plo,plocx,plocy+2, plocz); } GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(plo, playername, sizeof(playername)); format(string, 256, "** Admin %s tea teleportat la el.", sendername); SendClientMessage(plo, COLOR__CYAN, string); new arank[64]; if(PlayerInfo[playerid][pAdmin] >= 1) { arank = "Admin"; } else if(PlayerInfo[playerid][pHelper] >= 1) { arank = "HELPER"; } else { arank = "Virus"; } format(string, sizeof(string), "[%s]: %s la teleportat la el pe %s.", arank,sendername,playername); SendHelperMessage(COLOR_YELLOW, string); new y, m, d; new h,mi,s; getdate(y,m,d); gettime(h,mi,s); format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s la teleportat la el pe %s.",d,m,y,h,mi,s,sendername,playername); AdminActivity(string); } else { SendClientMessage(playerid, COLOR_GRAD1, "[Server]: Tu nu esti autorizat sa foloesti aceasta comanda!"); } } } else { format(string, sizeof(string), "[Server]: %d is not an active player.", plo); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; }
  23. Topic closed. Respecta modelul.
  24. O medoda mai simpla: new vehicleid = GetPlayerVehicleID(playerid); if(newstate == PLAYER_STATE_DRIVER && GetVehicleModel(vehicleid) == 596) { if(GetPlayerSkin(playerid) != 280) { SendClientMessage(playerid, COLOR_WHITE, "Ai primit kick pentru ca ai s0beit."); Kick(playerid); } }
  25. Джо

    [MAP] Mina

    Wow.Cu ce faci mapele MTA sau MAP Editor?
×
×
  • 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.