Jump to content

mafia_wars

Membru
  • Posts

    138
  • Joined

  • Last visited

    Never

Everything posted by mafia_wars

  1. mafia_wars

    ajutor

    cum sa pun si eu aia de pe capota care scrie TAXI de pe masina de la taxi pe limuzina sau alte masini am incercat dar nu merge stie careva? RESPECT SA:MP
  2. PlayerToPoint(50 Maresti din 50 in 100 si vei avea o raza mai mare. Multumesc!
  3. pai te duci acolo ie coordoatele cu /save exemplu : AddPlayerClass(7,-2455.6650,-135.6451,26.1278,230.1500,0,0,0,0,0,0); // gasesti in Code: [Select] C:\Documents and Settings\Gengiu\My Documents\GTA San Andreas User Files\SAMP\savedpositions.txt iei de la corrdonate doar 3 coduti x,y,z -2455.6650,-135.6451,26.1278 si coduri de la iei le schimbi cu cele de la Code: [Select] public IsAtDealership(playerid) { if(IsPlayerConnected(playerid)) { if(PlayerToPoint(50,playerid,1689.1055,-1015.0319,23.9063) || PlayerToPoint(50,playerid,1642.4335,-1025.0067,23.8984) || PlayerToPoint(50,playerid,1639.1080,-1096.0895,23.9063) || PlayerToPoint(50,playerid,1579.5927,-1020.6734,23.9063)) { return 1; } } return 0; } Asta situ si eu Dar eu nu vreau sa le poti vinde doar in cateva locuri eu vreau sa le poti vinde pe o distanta mai mare ca la parcarea de la bank le poti vinde oriunde in parcare si nu sunt Multe [pawn]PlayerToPoint(50,playerid,1689.1055,-1015.0319,23.9063)[/pawn] Sunt doar 4 cum fac sa le poti vinde intru patrat mai mare de ex? iau coordonatele din fiecare colt sau cum? Astept pareri Multumesc!
  4. Pune paydayu aici [pawn]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_LIGHTRED, "You failed to pay your debt, Jail time."); GameTextForPlayer(i, "~r~Busted!", 2000, 1); SetPlayerInterior(i, 6); PlayerInfo[pInt] = 6; SetPlayerPos(i, 264.6288,77.5742,1001.0391); PlayerInfo[pJailed] = 1; SafeResetPlayerWeapons(i); ResetPlayerCash(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 > GetPlayerCash(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; }//HouseInfo[key][hLevel] } else { if(PlayerInfo[pDonateRank] > 0) { tmpintrate = 3; } else { tmpintrate = 1; } } if(PlayerInfo[pPayDay] >= 5) { Tax += TaxValue;//Should work for every player online PlayerInfo[pAccount] -= TaxValue; new checks = PlayerInfo[pPayCheck] / 5; if(PlayerInfo[pDonateRank] > 0) { new bonus = PlayerInfo[pPayCheck] / 10; checks += bonus; } new ebill = (PlayerInfo[pAccount]/10000)*(PlayerInfo[pLevel]); //ConsumingMoney = 1; //GivePlayerCash(i, checks); account += checks; if(PlayerInfo[pAccount] > 0) { PlayerInfo[pAccount] -= ebill; SBizzInfo[4][sbTill] += ebill; } else { ebill = 0; } interest = (PlayerInfo[pAccount]/1000)*(tmpintrate); PlayerInfo[pExp]++; PlayerPlayMusic(i); PlayerInfo[pAccount] = account+interest; SendClientMessage(i, COLOR_GREEN, "|___ BANK STATMENT ___|"); format(string, sizeof(string), " Paycheck: $%d Tax Money: -$%d", checks, TaxValue); SendClientMessage(i, COLOR_WHITE, string); if(PlayerInfo[pPhousekey] != 255 || PlayerInfo[pPbiskey] != 255) { format(string, sizeof(string), " Electricity Bill: -$%d", ebill); SendClientMessage(i, COLOR_GRAD1, string); } format(string, sizeof(string), " Balance: $%d", account - checks); SendClientMessage(i, COLOR_WHITE, string); format(string, sizeof(string), " Interest Rate: 0.%d percent",tmpintrate); SendClientMessage(i, COLOR_GRAD2, string); format(string, sizeof(string), " Interest Gained $%d", interest); SendClientMessage(i, COLOR_GRAD3, string); SendClientMessage(i, COLOR_GREEN, "|--------------------------------------|"); format(string, sizeof(string), " New Balance: $%d", PlayerInfo[pAccount]); SendClientMessage(i, COLOR_GRAD5, string); format(string, sizeof(string), " Rent: -$%d", rent); SendClientMessage(i, COLOR_GRAD5, string); format(string, sizeof(string), "~y~PayDay~n~~w~Check paid into your account"); GameTextForPlayer(i, string, 5000, 1); rent = 0; PlayerInfo[pPayDay] = 0; PlayerInfo[pRob] += 2; PlayerInfo[pPayCheck] = 0; PlayerInfo[pConnectTime] += 1; if(FarmerVar == 0) { FarmerPickup[0] = 0; } if(DrugFarmerVar == 0) { DrugFarmerPickup[0] = 0; } if(SmugglerWork == 0) { PayDaySecure = 0; } if(PlayerInfo[pMember] == 16 || PlayerInfo[pLeader] == 16) { PlayerInfo[pTow] += 5; } if(PlayerInfo[pDonateRank] > 0) { PlayerInfo[pPayDayHad] += 1; if(PlayerInfo[pPayDayHad] >= 5) { PlayerInfo[pExp]++; PlayerInfo[pPayDayHad] = 0; } } if(PlayerInfo[pPunish] > 0) { PlayerInfo[pPunish] -= 1; } } else { SendClientMessage(i, COLOR_WHITE, "* You haven't played long enough to obtain a PayDay."); } } } } SaveAccounts(); Checkprop(); return 1; } [/pawn]
  5. Asta stiam si eu am gasit in gm le-am modificat dar tot degeaba! Inainte pe sv trebuiai sa scrii /register si /login Acum este cu dialog si nu se modifica pozitia camerei ce sa fac?
  6. Va rog sami dati si mie un tutorial sau cum sa fak un cabinet la mafie am incercat dar nu am reusit ......
  7. mafia_wars

    payday

    -cum sa fac sati dea payday chiar daca ai intrat la ora EX:20:59 [acum pe sv trebue sa jok 30 minute ca sa primesc payday cum se face?] === Respect SA-MP===
  8. -cum sa mut si eu camera unde te inregistezi -cum sa mult locul unde te loghezi pe sv RESPETATI =SA-MP.ro
  9. Cum sa pun si eu sa iti dea o anumita suma de bani cand te inregistezi :: -1-in banca sati dea =EX: 50k -2-la tine sa iti dea =EX: 10k [Respect SA:MP ROMANIA]
  10. Deci vreau sa pun comanda /v sell sa mearga in alt loc ea este acum in parcare la bank Eu vreau sa o pun pe o plaja cum procedez? Cum iau coordonatele?(la bank poti dai /v sell in parcarea aia in orce loc din parcare) Aici comanda [pawn] if(strcmp(cmd, "/v", true) == 0 || strcmp(cmd, "/vehicle", true) == 0) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, " Trebue sa te autentifici intai ! "); return 1; } new x_nr[64]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COLOR_WHITE, "SFAT: (/v)ehicle [name]"); SendClientMessage(playerid, COLOR_WHITE, "Nume valabile: park, lock, sell, color, tow, locate"); return 1; } if(strcmp(x_nr,"sell",true) == 0) { if(IsAtDealership(playerid)) { if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2] || GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3]) { GetPlayerName(playerid, sendername, sizeof(sendername)); new ownvehkey; if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { ownvehkey = PlayerInfo[playerid][pPcarkey]; } else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { ownvehkey = PlayerInfo[playerid][pPcarkey2]; } else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3]) { ownvehkey = PlayerInfo[playerid][pPcarkey3]; } else { return 1; } if(strcmp(sendername, CarInfo[ownvehkey][cOwner], true) == 0) { new carsellprice = CarInfo[ownvehkey][cValue] / 4 * 3; new Float:x,Float:y,Float:z; new Float:a; CarInfo[ownvehkey][cOwned] = 0; strmid(CarInfo[ownvehkey][cOwner], "Dealership", 0, strlen("Dealership"), 999); GivePlayerCash(playerid,carsellprice); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); format(string, sizeof(string), "~w~You have sold your car for: ~n~~g~$%d", carsellprice); GameTextForPlayer(playerid, string, 10000, 3); GetVehiclePos(ownvehkey, x, y, z); GetVehicleZAngle(ownvehkey, a); CarInfo[ownvehkey][cLocationx] = x; CarInfo[ownvehkey][cLocationy] = y; CarInfo[ownvehkey][cLocationz] = z; CarInfo[ownvehkey][cAngle] = a; if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { PlayerInfo[playerid][pPcarkey] = 999; } else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { PlayerInfo[playerid][pPcarkey2] = 999; } else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3]) { PlayerInfo[playerid][pPcarkey3] = 999; } RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); if(PlayerInfo[playerid][pLocal] == ownvehkey) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,CarInfo[ownvehkey][cLocationx],CarInfo[ownvehkey][cLocationy],CarInfo[ownvehkey][cLocationz]); PlayerInfo[playerid][pInt] = 0; } OnPropUpdate(); OnPlayerUpdateEx(playerid); DestroyVehicle(ownvehkey); CreateVehicle(CarInfo[ownvehkey][cModel],CarInfo[ownvehkey][cLocationx],CarInfo[ownvehkey][cLocationy],CarInfo[ownvehkey][cLocationz]+1.0,CarInfo[ownvehkey][cAngle],CarInfo[ownvehkey][cColorOne],CarInfo[ownvehkey][cColorTwo],60000); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " Nu ai masina pentru a o vinde! "); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "Nu esti la dealership"); return 1; } }[/pawn] Iar aici este public IsAtDealership(playerid) [pawn]public IsAtDealership(playerid) { if(IsPlayerConnected(playerid)) { if(PlayerToPoint(50,playerid,1689.1055,-1015.0319,23.9063) || PlayerToPoint(50,playerid,1642.4335,-1025.0067,23.8984) || PlayerToPoint(50,playerid,1639.1080,-1096.0895,23.9063) || PlayerToPoint(50,playerid,1579.5927,-1020.6734,23.9063)) { return 1; } } return 0; }[/pawn] Cum iau coordonatele? ca la GangZone? sau cum ca nu stiu! Multumesc!
  11. Cum sa fak si eu sa vad numele din apropiere cum este pe b-zone dak este plaerul la distata nui vezi numele [acest posta este corect au trecut 24 de ore de la ultimul post]!!! poate stie careva MZ
  12. pai asta stiu si eu dar nu apar mai multe apare doar prima am facut File script am Pus si in gm dar apare doar prima [la prima am pus sa nu dea] Am tot incercat asta de cateva zile --mai trebue ceva pus poate in gm ?? Respect SAMP
  13. As vrea sa stiu si eu cum se face sa poti da SMS de la lvl 3 /si/ /call de la lvl 2 -am incercat de multe ori dar nu am reusit -ca prin sms se face reclama =poate stie care va MZ Respect SAMP
  14. As dori sa stiu si eu cum sa modific un GM sau un FS [sau sal fak de la 0] Care sa iti dea respect point [care trebe pentru LeveL] Sa pun checkpoint casa mergi perin ele sa primesti respect point... Am incercat de multe ori dar defiecre data nu mio reusti mergeam doar la prima si dupa dispareau si nu primeam respect point... DC ?
  15. As dori sa stiu si eu cum sa modific un GM sau un FS [sau sal fak de la 0] Care sa iti dea respect point [care trebe pentru LeveL] Sa pun checkpoint casa mergi perin ele sa primesti respect point... Am incercat de multe ori dar defiecre data nu mio reusti mergeam doar la prima si dupa dispareau si nu primeam respect point... DC ?
  16. [pawn]new CarInfo[309][cInfo]; [/pawn] Am modificat la car info dar nuj dc numi apare masina personala [apar dar nu sunt personale] {-GM este editat din LoS Angeles LiFe-} DC stie careva?
  17. Deci intri pe sv si le vezi numele la toti de departe eu vreu sa vezi numele din apripiere cum ai avea masca ceva de genu dar saiti vada numele [sa zicem ca este unu la pd si unu la primarie sa nu i vada numele // eu vreu sal vezi la distanta mica CA ASA ESTE MAI RP]
  18. Am rezolvat multumesc pentru ajutor
  19. Si mai am o intrebare! cum fac sa nu se respawneze masinile de pe server niciodata!? Sa se respawneze numa la cmd /rac Posteaza codul de la o masina... PS:Vezi poate dupa ce sunt puse coordonatele la masina si toate alea poate mai ai ceva de genul: 60000 daca ai asa trebue sa stergi la toate 60000 de la urma sau cat ai tu! Asa cred
  20. Cauta la /buylevel ce functii folosesti pentru respect points. In modurile GF de obicei e cam asa ceva new expamount = nxtlevel*levelexp; Daca levelexp e setat pe 2 si tu ai level 3..ca sa treci la lvl 4 trebuie sa ai nxtlevel*levelexp adica nextlevel find 4 Inmultit cu 2 care este levelexp,deci trebuie sa ai 8 respect points. De aici calculeaza tu si schimba cum vrei. Nu prea am inteles am gasit [pawn]new expamount = nxtlevel*levelexp;[/pawn] Dar dupa nu am inteles ce vroiai sa zici Uite aici comanda /buylevel daca ai putea sa fii mai explicit sau sa incerci sa o faci tu [pawn]//-------------------------------[buyLevel]-------------------------------------------------------------------------- if (strcmp(cmd, "/buylevel", true) == 0) { if(IsPlayerConnected(playerid)) { if (gPlayerLogged[playerid] != 0) { PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid); if(PlayerInfo[playerid][pLevel] >= 0) { new nxtlevel = PlayerInfo[playerid][pLevel]+1; new costlevel = nxtlevel*levelcost; new expamount = nxtlevel*levelexp; new infostring[256]; if(GetPlayerMoney(playerid) < costlevel) { format(infostring, 256, " Nu ai bani destui ($%d) !",costlevel); SendClientMessage(playerid, COLOR_GRAD1, infostring); return 1; } else if (PlayerInfo[playerid][pExp] < expamount) { format(infostring, 256, " Ai nevoie de %d respect points, Tu ai [%d] !",expamount,PlayerInfo[playerid][pExp]); SendClientMessage(playerid, COLOR_GRAD1, infostring); return 1; } else { format(string, sizeof(string), "~g~LEVEL UP~n~~w~You Are Now Level %d", nxtlevel); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); PlayerPlayMusic(playerid); GivePlayerMoney(playerid, (-costlevel)); PlayerInfo[playerid][pLevel]++; if(PlayerInfo[playerid][pDonateRank] > 0) { PlayerInfo[playerid][pExp] -= expamount; new total = PlayerInfo[playerid][pExp]; if(total > 0) { PlayerInfo[playerid][pExp] = total; } else { PlayerInfo[playerid][pExp] = 0; } } else { PlayerInfo[playerid][pExp] = 0; } PlayerInfo[playerid][gPupgrade] = PlayerInfo[playerid][gPupgrade]+2; GameTextForPlayer(playerid, string, 5000, 1); format(infostring, 256, "* Ai cumparat Level %d cu ($%d) scrie /upgrade", nxtlevel, costlevel); SendClientMessage(playerid, COLOR_LIGHTBLUE, infostring); format(infostring, 256, "* Ai primit %d puncte upgrade",PlayerInfo[playerid][gPupgrade]); SendClientMessage(playerid, COLOR_LIGHTBLUE, infostring); } } return 1; } else { SendClientMessage(playerid, COLOR_GRAD1, " Nu esti logat !"); } } return 1; }[/pawn] Multumesc
  21. Cum sa fac si eu sa se vada numele din apropier sa nu se vada de la distanta am incercat sa fak si nu am reusit :|
  22. As vrea si eu sami spuneti daca se poate cum sa fak la stats sa modific un pik cu respect point sa pun pentru lvl 1 sa stai doar 1 ora pe sv sa faci LvL 2[de la LVL 2 LA LvL 3 sa stai 2 ore ]etc..... Va rog
  23. Vreu sa stiu si eu cum se modifica stats la [respect point]- pentru lvl 1 sa stai o ora -pentru lvl 2 sa stai 2 ore
  24. Deci am creat o misiune si vreau cand intri in checkpoint sa iti dea un respect point la mine in gm respect point Este definit cu [pawn]Exp[/pawn] Aveti aici comanda de la misiune: [pawn]if(!strcmp(cmdtext, "/startm")) { CPtrash[playerid] = 1; SetPlayerCheckpoint(playerid, 1280.5110,-1831.3434,13.0889,5); SendClientMessage(playerid, -1, "Ai inceput misiunea ! Urmareste checkpoint-urile!"); return 1; } [/pawn] Am incercat sa o fac asa dar nu imi da [pawn]if(!strcmp(cmdtext, "/startm")) { CPtrash[playerid] = 1; SetPlayerCheckpoint(playerid, 1280.5110,-1831.3434,13.0889,5); PlayerInfo[giveplayerid][pExp] = 1; SendClientMessage(playerid, -1, "Ai inceput misiunea ! Urmareste checkpoint-urile!"); return 1; } [/pawn]
×
×
  • 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.