Jump to content

wifi123

Membru
  • Posts

    37
  • Joined

  • Last visited

Everything posted by wifi123

  1. 1.Nu am houses.cfg. Am folderu properties unde sunt toate casele in fisiere diferite 2.Eu zic sa poata sa mearga FBi cu masinile de la lspd , cand intru in masina zice ca nu am cheile de la ea si lspd lafel nu poate sa mearga cu masinile de la FBI
  2. Salut am si eu mai multe probleme si intrebari. 1.Cum fac ca si FBi sa aibe acces la masinile de la LSPD ? 2.De unde pot lua fs-ul sau comanda /gps sau /where 2.Cum pot adauga si factiunea NG in gm ? Nu o am 3.Cum pot crea case noi ? Cam atat , sper sa ma ajutati
  3. Am scris si /edit products 999 si tot asa face. Si nu e bizz e in fata acolo unde dai licenta pentru permis si sunt in parcare niste masini si cand scrii /rentcar sau /rentbike zice out of stock...
  4. wifi123

    Problema

    am pus si numai /balance si /withdraw merg celalalte gen /transfer /deposit nu merg.... zice ca nu sunt in banca..
  5. wifi123

    Problema

    [pawn] if(strcmp(cmd, "/withdraw", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerToPoint(6.0, playerid, 1504.2522,-1038.8168,601.5460) || 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, 1496.3708,-1027.3900,601.5460)) { 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] AddPlayerClass(23,2305.7991,-15.8193,26.7496,260.7323,0,0,0,0,0,0); // banca ls
  6. wifi123

    Problema

    Salut , am o problema cu un gamemode rpg , am un bug la banca din ls , intru in ea si cand scriu /balance sau /withdraw zice ca nu sunt in banca...
  7. Salut SA:MP Ro am si eu o mica problema cu un gm RPG , nu pot inchiria nimic ca zice out of stock... Uitati linia cu , comanda /rentcar [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(SBizzInfo[0][sbProducts] == 0) { GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1); return 1; } 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]
  8. Salut SA:MP Ro am si eu o mica problema cu un gm godfather , nu merge sa deschid nici o poarta de la factiuni , zice in chat ca poarta s-a deschis si ca se v-a inchide peste 5 secunde dar nu se intampla nimic Uitati una dintre liniile cu porti: [pawn] if (newkeys==KEY_FIRE) { if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) { if(IsPlayerConnected(playerid)) { if(PlayerToPoint(10, playerid,1588.1082,-1634.5288,13.3828) || PlayerToPoint(10, playerid,1588.6952,-1640.6711,13.1626)) { MoveDynamicObject(gatepd, 1598.268677, -1638.331177, 13.752552, 4.0); SendClientMessage(playerid, 0xE422E9F8, "{00FF00}[Cenzurat]: {FF8000}Poarta LSPD s-a deschis si se va inchide in 5 secunde !"); SetTimer("gatepdclose",4000, false); return 1; } } } }[/pawn]
  9. wifi123

    Ajutor !

    Salut SA-MP.Ro am si eu nevoie de ajutor intr-o mica problema, am in gm comanda /gps dar merge doar sa o folosesc doar intr-un anumit loc si eu vreau sa o folosesc peste tot.Uitati liniile din pawno [pawn] if (strcmp(cmdtext, "/gps", true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerToPoint(3, playerid, 1524.9498,-1583.8481,13.5469)) { ShowPlayerDialog(playerid, MAPMENU, DIALOG_STYLE_LIST, "GPS Los Santos","Librarie\nArme\nCaserie\nPiata neagra\nScoala auto\nInchisoare\nBanca\nPrimarie\n24-7\nJob distribuitor\nPaintball", "Marchez", "Refuz"); LSMap[playerid] = 1; } } return 1; }[/pawn]
  10. Nu imi apar armele cand apas pe butonu weapons in dialogu ala....
  11. Salut , imi puteti da si mie un system de gang/clan care sa mearga ? Cel facut de gireada nu merge deloc.
×
×
  • 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.