Jump to content

Джо

Membru
  • Posts

    1.557
  • Joined

  • Last visited

  • Days Won

    28

Everything posted by Джо

  1. Deci copiezi inceputul comenzii adica strcmd.... pana la {.Dupa care pui codul ai aici exemplu comanda /lock1: [pawn][pawn]if(strcmp(cmd, "/lock1", true) == 0) { new keycar = PlayerInfo[playerid][pPcarkey]; if(keycar != 999) { new locked[256]; locked = strtok(cmdtext, idx); if(CarInfo[keycar][cLock] == 1) { for(new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { SetVehicleParamsForPlayer(keycar,i,0,0); } } format(string, sizeof(string), "~w~Vehicle~n~~g~Unlocked"); GameTextForPlayer(playerid, string, 4000, 3); CarInfo[keycar][cLock] = 0; OnPropUpdate(); return 1; } else if(CarInfo[keycar][cLock] == 0) { for(new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { SetVehicleParamsForPlayer(keycar,i,0,1); } } format(string, sizeof(string), "~w~Vehicle~n~~r~Locked"); GameTextForPlayer(playerid, string, 4000, 3); CarInfo[keycar][cLock] = 1; OnPropUpdate(); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You don't have a vehicle at slot 1"); return 1; }[/pawn][/pawn]
  2. Ce windows ai?
  3. ARTIST, cu toate ca nu esti roman,ai fost sa inveti limba romana,imi place tot ce creezi, mai ales ca esti scripter profi.+1 de la mine.
  4. Vrei sa faci comenzile pe rcon sau ce spuneai?
  5. Джо

    JunkBuster

    Asa,nu putem oferi scripturi de acest gen dar iti dau un sfat si anume cauta JunkBuster 11 este cel mai performant.
  6. Faci din properties cate o casa cu coordonatele ei. In loc de pMember= (NR Factiunii LSPD si FBi) pui IsACop
  7. 1. Poti face pentru toti politistii sa poata sa mearga cu masinile MAI cu functia IsACop. 1.Este simplu,iei comanda /gps de pe net dupa care faci tu singur checkpointurile. 3.Este un tutorial pe forum "cum sa adaug noi factiuni pe gm" 4.Ai houses.cfg in scriptfilles?
  8. Cu placere.
  9. Updateaza din nou pawno.
  10. Sti ca trebuia sa postezi intr-un alt topic faza cu /buyprods?Pentru ca in prim plan ai cerut sa te ajutam cu cele doua comenzi,acum doresti sa te ajutam si cu altceva....Cauta si tu in alte GM-uri,o sa gasesti cu siguranta.
  11. Ai doua variante. I.Ori stergi si bagi junkbuster 11 ca si FS si bagi in FS-uri #include <JunkBuster> si in gm la fel. II.Faci updatarile necesare pentru acel junkbuster.
  12. Ai rezolvat,te mai ajutam?
  13. Джо

    Problema

    Phoenix nu este buna comanda ta de /transfer deoarece fiecare player poate sa dea /transfer(si o suma de bani) din orice interior.
  14. Ai 2 variante. I.Updatezi din nou ChatColor. II.Verifica daca ai #include <ChatColor> acolo unde ai #include <a_samp> etc...
  15. Fi atent la pasii urmatori si nu vei gresi iti garantez. I.Intri in folderul cu serverul si vei gasi, pawno>>pawno.exe,deschizi pawno.exe(cel ca o piesa de sah mai deschisa) dupa care sus in stanga ai o bara una cu o foaie alba alta cu un folder galben,deschizi folderul galben si iti va aparea de acolo sa deschizi gamemode-ul. II.Compilezi gamemode-ul de acolo si aia e. Daca se poate sa ne lasi un raspuns daca a mers?
  16. Am testat imi da eroarea file de la liniile dini_IntSet(file,... am scris new file; si mia dat o gramada de erori.
  17. Cauta altceva subt forma de cuff
  18. [pawn] if(strcmp(cmd, "/rentcar", true) == 0) { if(IsPlayerConnected(playerid)) { if(GetPlayerVehicleID(playerid) >= rentcar1 && GetPlayerVehicleID(playerid) <= rentcar16) { new hirefee = HireCost(GetPlayerVehicleID(playerid)); if(GetPlayerVehicleID(playerid) >= rentcar1 && GetPlayerVehicleID(playerid) <= rentcar16) { if(HireCar[playerid] != 299) { gCarLock[HireCar[playerid]] = 0; UnLockCar(HireCar[playerid]); SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You already rent a car,type /unrentcar to unrent previous car !"); return 1; } for(new i=0; i<MAX_PLAYERS; i++) { if(HireCar == GetPlayerVehicleID(playerid)) { SendClientMessage(playerid, COLOR_GREY, "[Eroare]: Someone rented this car !"); return 1; } }[/pawn] Incearca
  19. Comanda este in regula, ai altceva leggat de comanda?
  20. Джо

    Problema

    Incearca: [pawn] if(strcmp(cmd, "/withdraw", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerToPoint(6.0, playerid, 2305.7991,-15.8193,26.7496) || IsAtATMSystem(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: /withdraw [amount]"); format(string, sizeof(string), "[server]: You Have %s in your account.", DecimalPoint(PlayerInfo[playerid][pAccount])); SendClientMessage(playerid, COLOR_GRAD3, string); return 1; } new cashdeposit = strval(tmp); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: /withdraw [amount]"); format(string, sizeof(string), "[server]: You Have %s in your account.", DecimalPoint(PlayerInfo[playerid][pAccount])); SendClientMessage(playerid, COLOR_GRAD3, string); return 1; } if (cashdeposit > PlayerInfo[playerid][pAccount] || cashdeposit < 1) { SendClientMessage(playerid, COLOR_GRAD2, "[Eroare]: You dont have that much !"); return 1; } //ConsumingMoney[playerid] = 1; SafeGivePlayerMoney(playerid,cashdeposit); PlayerInfo[playerid][pAccount]=PlayerInfo[playerid][pAccount]-cashdeposit; format(string, sizeof(string), "[server]: You Have Withdrawn %s from your account Total: %s", DecimalPoint(cashdeposit),DecimalPoint(PlayerInfo[playerid][pAccount])); SendClientMessage(playerid, COLOR_YELLOW, string); return 1; } else { SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You are not at the Bank !"); return 1; } } return 1; } if(strcmp(cmd, "/bank", true) == 0 || strcmp(cmd, "/deposit", true) == 0) { if(IsPlayerConnected(playerid)) { if(!PlayerToPoint(6.0, playerid, 1500.3766,-1038.3237,601.5460) && !IsAtATMSystem(playerid)) { SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You are not at the Bank !"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: /bank [amount]"); format(string, sizeof(string), "[server]: You Have %s in your account.", DecimalPoint(PlayerInfo[playerid][pAccount])); SendClientMessage(playerid, COLOR_GRAD3, string); return 1; } new cashdeposit = strval(tmp); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: /bank [amount]"); format(string, sizeof(string), "[server]: You Have %s in your account.", DecimalPoint(PlayerInfo[playerid][pAccount])); SendClientMessage(playerid, COLOR_GRAD3, string); return 1; } if (cashdeposit > GetPlayerMoney(playerid) || cashdeposit < 1) { SendClientMessage(playerid, COLOR_GRAD2, "[Eroare]: You dont have that much"); return 1; } SafeGivePlayerMoney(playerid,-cashdeposit); new curfunds = PlayerInfo[playerid][pAccount]; PlayerInfo[playerid][pAccount]=cashdeposit+PlayerInfo[playerid][pAccount]; SendClientMessage(playerid, COLOR_WHITE, "|___ BANK STATMENT ___|"); format(string, sizeof(string), "Old Balance: %s", DecimalPoint(curfunds)); SendClientMessage(playerid, COLOR_GRAD2, string); format(string, sizeof(string), "Deposit: %s",DecimalPoint(cashdeposit)); SendClientMessage(playerid, COLOR_GRAD4, string); SendClientMessage(playerid, COLOR_GRAD6, "|-----------------------------------------|"); format(string, sizeof(string), "New Balance: %s", DecimalPoint(PlayerInfo[playerid][pAccount])); SendClientMessage(playerid, COLOR_WHITE, string); return 1; } return 1; } if(strcmp(cmd, "/balance", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerToPoint(6.0, playerid, 1496.6987,-1038.3569,601.5460) || IsAtATMSystem(playerid)) { format(string, sizeof(string), "[server]: You Have %s in your account.",DecimalPoint(PlayerInfo[playerid][pAccount])); SendClientMessage(playerid, COLOR_YELLOW, string); } else { SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You are not at the Bank !"); return 1; } } return 1; }[/pawn] [pawn]if(strcmp(cmd, "/transfer", true) == 0 || strcmp(cmd, "/wiretransfer", true) == 0) { if(IsPlayerConnected(playerid)) { new playersip[24]; new playerspi[24]; if(PlayerInfo[playerid][pLevel] < 3) { SendClientMessage(playerid, COLOR_GRAD1, "[Eroare]: You must be level 3 !"); return 1; } if(!PlayerToPoint(6.0, playerid, 2305.7991,-15.8193,26.7496)) { SendClientMessage(playerid, COLOR_GREY, "[Eroare]: You are not at the Bank !"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "{00A1FF}USAGE{FFFFFF}: /transfer [playerid/PartOfName] [amount]"); return 1; } giveplayerid = ReturnUser(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "{00A1FF}USAGE{FFFFFF}: /transfer [playerid/PartOfName] [amount]"); return 1; } moneys = strval(tmp); if (IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerIp(giveplayerid, playerspi, sizeof(playerspi)); GetPlayerIp(playerid, playersip, sizeof(playersip)); playermoney = PlayerInfo[playerid][pAccount] ; if (moneys > 0 && playermoney >= moneys) { PlayerInfo[playerid][pAccount] -= moneys; PlayerInfo[giveplayerid][pAccount] += moneys; format(string, sizeof(string), "[server]: You have transferd %s to %s's account.", DecimalPoint(moneys), giveplayer,giveplayerid); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); SendClientMessage(playerid, COLOR_GRAD1, string); format(string, sizeof(string), "[server]: You have recieved %s to into your account from %s.", DecimalPoint(moneys), sendername, playerid); SendClientMessage(giveplayerid, COLOR_GRAD1, string); format(string, sizeof(string), "%s(IP: %s) transferd %s to %s(IP: %s)", sendername, playersip, DecimalPoint(moneys), giveplayer, playerspi); PayLog(string); format(string, sizeof(string), "[WARNING]: %s{FFFFFF}(IP: %s){E42217} transferd %s to %s{FFFFFF}(IP: %s)", sendername, playersip, DecimalPoint(moneys), giveplayer, playerspi); if(moneys >= 1) { ABroadCast(0xE42217FF,string,1); } printf("%s", string); PayLog(string); PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0); } else { SendClientMessage(playerid, COLOR_GRAD1, "[Eroare]: Invalid transaction amount."); } } } else { format(string, sizeof(string), "[Eroare]: %d is not an active player.", giveplayerid); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; }[/pawn]
  21. Джо

    Problema

    Si mai te ajutam cu ceva?
  22. Ok,acum am ceva treaba o sa las maine un nou reply.
  23. Джо

    Problema

    Mai exact dane comenzile /balance, /withdraw si /deposit.Si cand intrii in banca dai /save banca ls,dupa intri in Gta San Andreas User Filles/SAMP/Savepoints sau ceva de genul deschizi notepadul si ne dai coordonatele de acolo.
  24. Джо

    Problema

    Ai si setplayermoney cumva?
  25. Pfff...Da unde trebuie pus mai exact acel stock?Nu trebuie pus la sfarsitul gamemode-ului de tot?
×
×
  • 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.