Jump to content

NumberOne

Membru
  • Content Count

    14
  • Joined

  • Last visited

  • Days Won

    1

NumberOne last won the day on September 1 2018

NumberOne had the most liked content!

Community Reputation

1 Neutru

About NumberOne

  • Rank
    Membru

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Uite prin /ah, dar trebuie sa fie ori /makeleader sau /setleader, vezi tu.
  2. Sistemul il dai free sau e cu bani? Ca vad ca nu ai postat link de descarcare sau pastebin.
  3. Asta cum? Daca merge pe fiecare masina vipname sau?
  4. EVILS, inainte se numea Manevra RPG.
  5. Salut, e un bug la /vipname si nu inteleg cum sa il rezolv. As fi foarte multumit daca m-ar ajuta cineva. Deci, problema e ca cand dau /vipname pe masina pe si setez un nume, alt player care tot isi ia masina si pune /vipname ii apare vipname care la pus el si vipname-ul meu pe masina lui. 2 in 1. Si se mai intampla ca apare vipname-ul meu chiar daca ala nu a pus vipname.. Poftim CMD la vipname: https://pastebin.com/AfNfjfC0
  6. Din baza de date sau din Gamemode la EstiFondator, in loc de Ionut, scrii numele care il ai pe server.
  7. Mi-am dat seama deja singur, dar ms oricum))
  8. Salut, am si eu o problema cu comanda /accept car. Cand dau /sellcarto unui player totul merge ok, imi apare ca i-am propus lui X sa ii vand masina pe X bani, iar cand acesta da /accept car ii zice "This player has not offered you a car." Chiar nu inteleg cum sa rezolv.. Comanda accept car: CMD:accept(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(IsPlayerConnected(playerid)) { new x_job[256], id, sendername[25], giveplayer[25], string[300], tmpcar = GetPlayerVehicleID(playerid), ccar = IsPlayerInAnyVehicle(playerid); if(sscanf(params, "s[256]u",x_job,id)) { SendClientMessage(playerid, COLOR_WHITE,"{AB0000}Syntax: {FFFFFF}/accept <Name> <Name/Playerid>"); SendClientMessage(playerid, COLOR_WHITE,"Available names: Drugs, Repair, House, Materials, Dice, Gun."); SendClientMessage(playerid, COLOR_WHITE,"Available names: Car, Taxi, Medic, Live, Lawyer, Cinvite."); SendClientMessage(playerid, COLOR_WHITE,"Available names: Mechanic, Ticket, Refill, Invite, Free."); return 1; } si dupa merg toate alea drugs etc.. Si la sfarsit e asta cu /accept car: else if(strcmp(x_job,"car",true) == 0) { if(IsPlayerConnected(ofercar[playerid])) { if(ofercar[playerid] != id) return SCM(playerid,COLOR_WHITE,"This player has not offered you a car."); if(GetPlayerCash(playerid) >= carprice[playerid]) { new vehh = GetPlayerVehicleID(id),tipmasina,myvehh = GetPlayerVehicleID(playerid),vehiculprimit; if(primesccar[playerid] == 1) { if(vehh != personalcar[0][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE,"Vehicle seller needs to be at his selling car."); if(myvehh != personalcar[0][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE,"You need to be in the offered vehicle."); tipmasina = 1; } if(primesccar[playerid] == 2) { if(vehh != personalcar[1][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE,"Vehicle seller needs to be at his selling car."); if(myvehh != personalcar[1][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE,"You need to be in the offered vehicle."); tipmasina = 2; } if(primesccar[playerid] == 3) { if(vehh != personalcar[2][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE,"Vehicle seller needs to be at his selling car."); if(myvehh != personalcar[2][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE,"You need to be in the offered vehicle."); tipmasina = 3; } if(primesccar[playerid] == 4) { if(vehh != personalcar[3][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE,"Vehicle seller needs to be at his selling car."); if(myvehh != personalcar[3][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE,"You need to be in the offered vehicle."); tipmasina = 4; } if(primesccar[playerid] == 5) { if(vehh != personalcar[4][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE,"Vehicle seller needs to be at his selling car."); if(myvehh != personalcar[4][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE,"You need to be in the offered vehicle."); tipmasina = 5; } if(primesccar[playerid] == 6) { if(vehh != personalcar[5][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE,"Vehicle seller needs to be at his selling car."); if(myvehh != personalcar[5][ofercar[playerid]]) return SendClientMessage(playerid, COLOR_WHITE,"You need to be in the offered vehicle."); tipmasina = 6; } if(PlayerInfo[playerid][pPremiumAccount] == 0 && PlayerInfo[playerid][pPlusSlot1] == 0 && PlayerInfo[playerid][pPlusSlot2] == 0) { if(PlayerInfo[playerid][pPcarkey] == 0) { if(cartype[playerid] == 1) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pPcarkey]; PlayerInfo[ofercar[playerid]][pPcarkey] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pPcarkeyx); } if(cartype[playerid] == 2) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pmotokey]; PlayerInfo[ofercar[playerid]][pmotokey] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pmotokeyx); } if(cartype[playerid] == 3) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pprcarkey]; PlayerInfo[ofercar[playerid]][pprcarkey] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pprcarkeyx); } if(cartype[playerid] == 4) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pprcarkey2]; PlayerInfo[ofercar[playerid]][pprcarkey2] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pprcarkey2x); } if(cartype[playerid] == 5) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pPPluscarkey]; PlayerInfo[ofercar[playerid]][pPPluscarkey] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pPPluscarkeyx); } if(cartype[playerid] == 6) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pPPluscarkey2]; PlayerInfo[ofercar[playerid]][pPPluscarkey2] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pPPluscarkey2x); } vehiculprimit = 1; } else if(PlayerInfo[playerid][pmotokey] == 0) { if(cartype[playerid] == 1) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pPcarkey]; PlayerInfo[ofercar[playerid]][pPcarkey] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pPcarkeyx); } if(cartype[playerid] == 2) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pmotokey]; PlayerInfo[ofercar[playerid]][pmotokey] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pmotokeyx); } if(cartype[playerid] == 3) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pprcarkey]; PlayerInfo[ofercar[playerid]][pprcarkey] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pprcarkeyx); } if(cartype[playerid] == 4) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pprcarkey2]; PlayerInfo[ofercar[playerid]][pprcarkey2] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pprcarkey2x); } if(cartype[playerid] == 5) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pPPluscarkey]; PlayerInfo[ofercar[playerid]][pPPluscarkey] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pPPluscarkeyx); } if(cartype[playerid] == 6) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pPPluscarkey2]; PlayerInfo[ofercar[playerid]][pPPluscarkey2] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pPPluscarkey2x); } vehiculprimit = 2; } else return SendClientMessage(playerid, COLOR_WHITE,"You already have 2 cars."); } if(PlayerInfo[playerid][pPremiumAccount] > 0 && PlayerInfo[playerid][pPlusSlot1] == 0 && PlayerInfo[playerid][pPlusSlot2] == 0) { if(PlayerInfo[playerid][pPcarkey] == 0) { if(cartype[playerid] == 1) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pPcarkey]; PlayerInfo[ofercar[playerid]][pPcarkey] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pPcarkeyx); } if(cartype[playerid] == 2) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pmotokey]; PlayerInfo[ofercar[playerid]][pmotokey] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pmotokeyx); } if(cartype[playerid] == 3) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pprcarkey]; PlayerInfo[ofercar[playerid]][pprcarkey] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pprcarkeyx); } if(cartype[playerid] == 4) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pprcarkey2]; PlayerInfo[ofercar[playerid]][pprcarkey2] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pprcarkey2x); } if(cartype[playerid] == 5) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pPPluscarkey]; PlayerInfo[ofercar[playerid]][pPPluscarkey] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pPPluscarkeyx); } if(cartype[playerid] == 6) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pPPluscarkey2]; PlayerInfo[ofercar[playerid]][pPPluscarkey2] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pPPluscarkey2x); } vehiculprimit = 1; } else if(PlayerInfo[playerid][pmotokey] == 0) { if(cartype[playerid] == 1) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pPcarkey]; PlayerInfo[ofercar[playerid]][pPcarkey] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pPcarkeyx); } if(cartype[playerid] == 2) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pmotokey]; PlayerInfo[ofercar[playerid]][pmotokey] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pmotokeyx); } if(cartype[playerid] == 3) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pprcarkey]; PlayerInfo[ofercar[playerid]][pprcarkey] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pprcarkeyx); } if(cartype[playerid] == 4) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pprcarkey2]; PlayerInfo[ofercar[playerid]][pprcarkey2] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pprcarkey2x); } if(cartype[playerid] == 5) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pPPluscarkey]; PlayerInfo[ofercar[playerid]][pPPluscarkey] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pPPluscarkeyx); } if(cartype[playerid] == 6) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pPPluscarkey2]; PlayerInfo[ofercar[playerid]][pPPluscarkey2] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pPPluscarkey2x); } vehiculprimit = 2; } else if(PlayerInfo[playerid][pprcarkey] == 0) { if(cartype[playerid] == 1) { PlayerInfo[playerid][pprcarkey] = PlayerInfo[ofercar[playerid]][pPcarkey]; PlayerInfo[ofercar[playerid]][pPcarkey] = 0; Update(playerid,pprcarkeyx); Update(ofercar[playerid],pPcarkeyx); } if(cartype[playerid] == 2) { PlayerInfo[playerid][pprcarkey] = PlayerInfo[ofercar[playerid]][pmotokey]; PlayerInfo[ofercar[playerid]][pmotokey] = 0; Update(playerid,pprcarkeyx); Update(ofercar[playerid],pmotokeyx); } if(cartype[playerid] == 3) { PlayerInfo[playerid][pprcarkey] = PlayerInfo[ofercar[playerid]][pprcarkey]; PlayerInfo[ofercar[playerid]][pprcarkey] = 0; Update(playerid,pprcarkeyx); Update(ofercar[playerid],pprcarkeyx); } if(cartype[playerid] == 4) { PlayerInfo[playerid][pprcarkey] = PlayerInfo[ofercar[playerid]][pprcarkey2]; PlayerInfo[ofercar[playerid]][pprcarkey2] = 0; Update(playerid,pprcarkeyx); Update(ofercar[playerid],pprcarkey2x); } if(cartype[playerid] == 5) { PlayerInfo[playerid][pprcarkey] = PlayerInfo[ofercar[playerid]][pPPluscarkey]; PlayerInfo[ofercar[playerid]][pPPluscarkey] = 0; Update(playerid,pprcarkeyx); Update(ofercar[playerid],pPPluscarkeyx); } if(cartype[playerid] == 6) { PlayerInfo[playerid][pprcarkey] = PlayerInfo[ofercar[playerid]][pPPluscarkey2]; PlayerInfo[ofercar[playerid]][pPPluscarkey2] = 0; Update(playerid,pprcarkeyx); Update(ofercar[playerid],pPPluscarkey2x); } vehiculprimit = 3; } else if(PlayerInfo[playerid][pprcarkey2] == 0) { if(cartype[playerid] == 1) { PlayerInfo[playerid][pprcarkey2] = PlayerInfo[ofercar[playerid]][pPcarkey]; PlayerInfo[ofercar[playerid]][pPcarkey] = 0; Update(playerid,pprcarkey2x); Update(ofercar[playerid],pPcarkeyx); } if(cartype[playerid] == 2) { PlayerInfo[playerid][pprcarkey2] = PlayerInfo[ofercar[playerid]][pmotokey]; PlayerInfo[ofercar[playerid]][pmotokey] = 0; Update(playerid,pprcarkey2x); Update(ofercar[playerid],pmotokeyx); } if(cartype[playerid] == 3) { PlayerInfo[playerid][pprcarkey2] = PlayerInfo[ofercar[playerid]][pprcarkey]; PlayerInfo[ofercar[playerid]][pprcarkey] = 0; Update(playerid,pprcarkey2x); Update(ofercar[playerid],pprcarkeyx); } if(cartype[playerid] == 4) { PlayerInfo[playerid][pprcarkey2] = PlayerInfo[ofercar[playerid]][pprcarkey2]; PlayerInfo[ofercar[playerid]][pprcarkey2] = 0; Update(playerid,pprcarkey2x); Update(ofercar[playerid],pprcarkey2x); } if(cartype[playerid] == 5) { PlayerInfo[playerid][pprcarkey2] = PlayerInfo[ofercar[playerid]][pPPluscarkey]; PlayerInfo[ofercar[playerid]][pPPluscarkey] = 0; Update(playerid,pprcarkey2x); Update(ofercar[playerid],pPPluscarkeyx); } if(cartype[playerid] == 6) { PlayerInfo[playerid][pprcarkey2] = PlayerInfo[ofercar[playerid]][pPPluscarkey2]; PlayerInfo[ofercar[playerid]][pPPluscarkey2] = 0; Update(playerid,pprcarkey2x); Update(ofercar[playerid],pPPluscarkey2x); } vehiculprimit = 4; } else return SendClientMessage(playerid, COLOR_WHITE,"You already have 2 cars + 2 premium cars."); } if(PlayerInfo[playerid][pPremiumAccount] > 0 && PlayerInfo[playerid][pPlusSlot1] == 1 && PlayerInfo[playerid][pPlusSlot2] == 0) { if(PlayerInfo[playerid][pPcarkey] == 0) { if(cartype[playerid] == 1) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pPcarkey]; PlayerInfo[ofercar[playerid]][pPcarkey] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pPcarkeyx); } if(cartype[playerid] == 2) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pmotokey]; PlayerInfo[ofercar[playerid]][pmotokey] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pmotokeyx); } if(cartype[playerid] == 3) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pprcarkey]; PlayerInfo[ofercar[playerid]][pprcarkey] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pprcarkeyx); } if(cartype[playerid] == 4) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pprcarkey2]; PlayerInfo[ofercar[playerid]][pprcarkey2] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pprcarkey2x); } if(cartype[playerid] == 5) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pPPluscarkey]; PlayerInfo[ofercar[playerid]][pPPluscarkey] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pPPluscarkeyx); } if(cartype[playerid] == 6) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pPPluscarkey2]; PlayerInfo[ofercar[playerid]][pPPluscarkey2] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pPPluscarkey2x); } vehiculprimit = 1; } else if(PlayerInfo[playerid][pmotokey] == 0) { if(cartype[playerid] == 1) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pPcarkey]; PlayerInfo[ofercar[playerid]][pPcarkey] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pPcarkeyx); } if(cartype[playerid] == 2) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pmotokey]; PlayerInfo[ofercar[playerid]][pmotokey] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pmotokeyx); } if(cartype[playerid] == 3) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pprcarkey]; PlayerInfo[ofercar[playerid]][pprcarkey] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pprcarkeyx); } if(cartype[playerid] == 4) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pprcarkey2]; PlayerInfo[ofercar[playerid]][pprcarkey2] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pprcarkey2x); } if(cartype[playerid] == 5) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pPPluscarkey]; PlayerInfo[ofercar[playerid]][pPPluscarkey] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pPPluscarkeyx); } if(cartype[playerid] == 6) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pPPluscarkey2]; PlayerInfo[ofercar[playerid]][pPPluscarkey2] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pPPluscarkey2x); } vehiculprimit = 2; } else if(PlayerInfo[playerid][pprcarkey] == 0) { if(cartype[playerid] == 1) { PlayerInfo[playerid][pprcarkey] = PlayerInfo[ofercar[playerid]][pPcarkey]; PlayerInfo[ofercar[playerid]][pPcarkey] = 0; Update(playerid,pprcarkeyx); Update(ofercar[playerid],pPcarkeyx); } if(cartype[playerid] == 2) { PlayerInfo[playerid][pprcarkey] = PlayerInfo[ofercar[playerid]][pmotokey]; PlayerInfo[ofercar[playerid]][pmotokey] = 0; Update(playerid,pprcarkeyx); Update(ofercar[playerid],pmotokeyx); } if(cartype[playerid] == 3) { PlayerInfo[playerid][pprcarkey] = PlayerInfo[ofercar[playerid]][pprcarkey]; PlayerInfo[ofercar[playerid]][pprcarkey] = 0; Update(playerid,pprcarkeyx); Update(ofercar[playerid],pprcarkeyx); } if(cartype[playerid] == 4) { PlayerInfo[playerid][pprcarkey] = PlayerInfo[ofercar[playerid]][pprcarkey2]; PlayerInfo[ofercar[playerid]][pprcarkey2] = 0; Update(playerid,pprcarkeyx); Update(ofercar[playerid],pprcarkey2x); } if(cartype[playerid] == 5) { PlayerInfo[playerid][pprcarkey] = PlayerInfo[ofercar[playerid]][pPPluscarkey]; PlayerInfo[ofercar[playerid]][pPPluscarkey] = 0; Update(playerid,pprcarkeyx); Update(ofercar[playerid],pPPluscarkeyx); } if(cartype[playerid] == 6) { PlayerInfo[playerid][pprcarkey] = PlayerInfo[ofercar[playerid]][pPPluscarkey2]; PlayerInfo[ofercar[playerid]][pPPluscarkey2] = 0; Update(playerid,pprcarkeyx); Update(ofercar[playerid],pPPluscarkey2x); } vehiculprimit = 3; } else if(PlayerInfo[playerid][pprcarkey2] == 0) { if(cartype[playerid] == 1) { PlayerInfo[playerid][pprcarkey2] = PlayerInfo[ofercar[playerid]][pPcarkey]; PlayerInfo[ofercar[playerid]][pPcarkey] = 0; Update(playerid,pprcarkey2x); Update(ofercar[playerid],pPcarkeyx); } if(cartype[playerid] == 2) { PlayerInfo[playerid][pprcarkey2] = PlayerInfo[ofercar[playerid]][pmotokey]; PlayerInfo[ofercar[playerid]][pmotokey] = 0; Update(playerid,pprcarkey2x); Update(ofercar[playerid],pmotokeyx); } if(cartype[playerid] == 3) { PlayerInfo[playerid][pprcarkey2] = PlayerInfo[ofercar[playerid]][pprcarkey]; PlayerInfo[ofercar[playerid]][pprcarkey] = 0; Update(playerid,pprcarkey2x); Update(ofercar[playerid],pprcarkeyx); } if(cartype[playerid] == 4) { PlayerInfo[playerid][pprcarkey2] = PlayerInfo[ofercar[playerid]][pprcarkey2]; PlayerInfo[ofercar[playerid]][pprcarkey2] = 0; Update(playerid,pprcarkey2x); Update(ofercar[playerid],pprcarkey2x); } if(cartype[playerid] == 5) { PlayerInfo[playerid][pprcarkey2] = PlayerInfo[ofercar[playerid]][pPPluscarkey]; PlayerInfo[ofercar[playerid]][pPPluscarkey] = 0; Update(playerid,pprcarkey2x); Update(ofercar[playerid],pPPluscarkeyx); } if(cartype[playerid] == 6) { PlayerInfo[playerid][pprcarkey2] = PlayerInfo[ofercar[playerid]][pPPluscarkey2]; PlayerInfo[ofercar[playerid]][pPPluscarkey2] = 0; Update(playerid,pprcarkey2x); Update(ofercar[playerid],pPPluscarkey2x); } vehiculprimit = 4; } else if(PlayerInfo[playerid][pPPluscarkey] == 0) { if(cartype[playerid] == 1) { PlayerInfo[playerid][pPPluscarkey] = PlayerInfo[ofercar[playerid]][pPcarkey]; PlayerInfo[ofercar[playerid]][pPcarkey] = 0; Update(playerid,pPPluscarkeyx); Update(ofercar[playerid],pPcarkeyx); } if(cartype[playerid] == 2) { PlayerInfo[playerid][pPPluscarkey] = PlayerInfo[ofercar[playerid]][pmotokey]; PlayerInfo[ofercar[playerid]][pmotokey] = 0; Update(playerid,pPPluscarkeyx); Update(ofercar[playerid],pmotokeyx); } if(cartype[playerid] == 3) { PlayerInfo[playerid][pPPluscarkey] = PlayerInfo[ofercar[playerid]][pprcarkey]; PlayerInfo[ofercar[playerid]][pprcarkey] = 0; Update(playerid,pPPluscarkeyx); Update(ofercar[playerid],pprcarkeyx); } if(cartype[playerid] == 4) { PlayerInfo[playerid][pPPluscarkey] = PlayerInfo[ofercar[playerid]][pprcarkey2]; PlayerInfo[ofercar[playerid]][pprcarkey2] = 0; Update(playerid,pPPluscarkeyx); Update(ofercar[playerid],pprcarkey2x); } if(cartype[playerid] == 5) { PlayerInfo[playerid][pPPluscarkey] = PlayerInfo[ofercar[playerid]][pPPluscarkey]; PlayerInfo[ofercar[playerid]][pPPluscarkey2] = 0; Update(playerid,pPPluscarkeyx); Update(ofercar[playerid],pPPluscarkeyx); } if(cartype[playerid] == 6) { PlayerInfo[playerid][pPPluscarkey] = PlayerInfo[ofercar[playerid]][pPPluscarkey2]; PlayerInfo[ofercar[playerid]][pPPluscarkey2] = 0; Update(playerid,pPPluscarkeyx); Update(ofercar[playerid],pPPluscarkey2x); } vehiculprimit = 5; } else return SendClientMessage(playerid, COLOR_WHITE,"You already have 2 cars + 2 premium cars + 1 plus car."); } if(PlayerInfo[playerid][pPremiumAccount] > 0 && PlayerInfo[playerid][pPlusSlot1] == 1 && PlayerInfo[playerid][pPlusSlot2] == 1) { if(PlayerInfo[playerid][pPcarkey] == 0) { if(cartype[playerid] == 1) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pPcarkey]; PlayerInfo[ofercar[playerid]][pPcarkey] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pPcarkeyx); } if(cartype[playerid] == 2) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pmotokey]; PlayerInfo[ofercar[playerid]][pmotokey] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pmotokeyx); } if(cartype[playerid] == 3) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pprcarkey]; PlayerInfo[ofercar[playerid]][pprcarkey] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pprcarkeyx); } if(cartype[playerid] == 4) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pprcarkey2]; PlayerInfo[ofercar[playerid]][pprcarkey2] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pprcarkey2x); } if(cartype[playerid] == 5) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pPPluscarkey]; PlayerInfo[ofercar[playerid]][pPPluscarkey] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pPPluscarkeyx); } if(cartype[playerid] == 6) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pPPluscarkey2]; PlayerInfo[ofercar[playerid]][pPPluscarkey2] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pPPluscarkey2x); } vehiculprimit = 1; } else if(PlayerInfo[playerid][pmotokey] == 0) { if(cartype[playerid] == 1) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pPcarkey]; PlayerInfo[ofercar[playerid]][pPcarkey] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pPcarkeyx); } if(cartype[playerid] == 2) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pmotokey]; PlayerInfo[ofercar[playerid]][pmotokey] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pmotokeyx); } if(cartype[playerid] == 3) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pprcarkey]; PlayerInfo[ofercar[playerid]][pprcarkey] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pprcarkeyx); } if(cartype[playerid] == 4) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pprcarkey2]; PlayerInfo[ofercar[playerid]][pprcarkey2] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pprcarkey2x); } if(cartype[playerid] == 5) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pPPluscarkey]; PlayerInfo[ofercar[playerid]][pPPluscarkey] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pPPluscarkeyx); } if(cartype[playerid] == 6) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pPPluscarkey2]; PlayerInfo[ofercar[playerid]][pPPluscarkey2] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pPPluscarkey2x); } vehiculprimit = 2; } else if(PlayerInfo[playerid][pprcarkey] == 0) { if(cartype[playerid] == 1) { PlayerInfo[playerid][pprcarkey] = PlayerInfo[ofercar[playerid]][pPcarkey]; PlayerInfo[ofercar[playerid]][pPcarkey] = 0; Update(playerid,pprcarkeyx); Update(ofercar[playerid],pPcarkeyx); } if(cartype[playerid] == 2) { PlayerInfo[playerid][pprcarkey] = PlayerInfo[ofercar[playerid]][pmotokey]; PlayerInfo[ofercar[playerid]][pmotokey] = 0; Update(playerid,pprcarkeyx); Update(ofercar[playerid],pmotokeyx); } if(cartype[playerid] == 3) { PlayerInfo[playerid][pprcarkey] = PlayerInfo[ofercar[playerid]][pprcarkey]; PlayerInfo[ofercar[playerid]][pprcarkey] = 0; Update(playerid,pprcarkeyx); Update(ofercar[playerid],pprcarkeyx); } if(cartype[playerid] == 4) { PlayerInfo[playerid][pprcarkey] = PlayerInfo[ofercar[playerid]][pprcarkey2]; PlayerInfo[ofercar[playerid]][pprcarkey2] = 0; Update(playerid,pprcarkeyx); Update(ofercar[playerid],pprcarkey2x); } if(cartype[playerid] == 5) { PlayerInfo[playerid][pprcarkey] = PlayerInfo[ofercar[playerid]][pPPluscarkey]; PlayerInfo[ofercar[playerid]][pPPluscarkey] = 0; Update(playerid,pprcarkeyx); Update(ofercar[playerid],pPPluscarkeyx); } if(cartype[playerid] == 6) { PlayerInfo[playerid][pprcarkey] = PlayerInfo[ofercar[playerid]][pPPluscarkey2]; PlayerInfo[ofercar[playerid]][pPPluscarkey2] = 0; Update(playerid,pprcarkeyx); Update(ofercar[playerid],pPPluscarkey2x); } vehiculprimit = 3; } else if(PlayerInfo[playerid][pprcarkey2] == 0) { if(cartype[playerid] == 1) { PlayerInfo[playerid][pprcarkey2] = PlayerInfo[ofercar[playerid]][pPcarkey]; PlayerInfo[ofercar[playerid]][pPcarkey] = 0; Update(playerid,pprcarkey2x); Update(ofercar[playerid],pPcarkeyx); } if(cartype[playerid] == 2) { PlayerInfo[playerid][pprcarkey2] = PlayerInfo[ofercar[playerid]][pmotokey]; PlayerInfo[ofercar[playerid]][pmotokey] = 0; Update(playerid,pprcarkey2x); Update(ofercar[playerid],pmotokeyx); } if(cartype[playerid] == 3) { PlayerInfo[playerid][pprcarkey2] = PlayerInfo[ofercar[playerid]][pprcarkey]; PlayerInfo[ofercar[playerid]][pprcarkey] = 0; Update(playerid,pprcarkey2x); Update(ofercar[playerid],pprcarkeyx); } if(cartype[playerid] == 4) { PlayerInfo[playerid][pprcarkey2] = PlayerInfo[ofercar[playerid]][pprcarkey2]; PlayerInfo[ofercar[playerid]][pprcarkey2] = 0; Update(playerid,pprcarkey2x); Update(ofercar[playerid],pprcarkey2x); } if(cartype[playerid] == 5) { PlayerInfo[playerid][pprcarkey2] = PlayerInfo[ofercar[playerid]][pPPluscarkey]; PlayerInfo[ofercar[playerid]][pPPluscarkey] = 0; Update(playerid,pprcarkey2x); Update(ofercar[playerid],pPPluscarkeyx); } if(cartype[playerid] == 6) { PlayerInfo[playerid][pprcarkey2] = PlayerInfo[ofercar[playerid]][pPPluscarkey2]; PlayerInfo[ofercar[playerid]][pPPluscarkey2] = 0; Update(playerid,pprcarkey2x); Update(ofercar[playerid],pPPluscarkey2x); } vehiculprimit = 4; } else if(PlayerInfo[playerid][pPPluscarkey] == 0) { if(cartype[playerid] == 1) { PlayerInfo[playerid][pPPluscarkey] = PlayerInfo[ofercar[playerid]][pPcarkey]; PlayerInfo[ofercar[playerid]][pPcarkey] = 0; Update(playerid,pPPluscarkeyx); Update(ofercar[playerid],pPcarkeyx); } if(cartype[playerid] == 2) { PlayerInfo[playerid][pPPluscarkey] = PlayerInfo[ofercar[playerid]][pmotokey]; PlayerInfo[ofercar[playerid]][pmotokey] = 0; Update(playerid,pPPluscarkeyx); Update(ofercar[playerid],pmotokeyx); } if(cartype[playerid] == 3) { PlayerInfo[playerid][pPPluscarkey] = PlayerInfo[ofercar[playerid]][pprcarkey]; PlayerInfo[ofercar[playerid]][pprcarkey] = 0; Update(playerid,pPPluscarkeyx); Update(ofercar[playerid],pprcarkeyx); } if(cartype[playerid] == 4) { PlayerInfo[playerid][pPPluscarkey] = PlayerInfo[ofercar[playerid]][pprcarkey2]; PlayerInfo[ofercar[playerid]][pprcarkey2] = 0; Update(playerid,pPPluscarkeyx); Update(ofercar[playerid],pprcarkey2x); } if(cartype[playerid] == 5) { PlayerInfo[playerid][pPPluscarkey] = PlayerInfo[ofercar[playerid]][pPPluscarkey]; PlayerInfo[ofercar[playerid]][pPPluscarkey] = 0; Update(playerid,pPPluscarkeyx); Update(ofercar[playerid],pPPluscarkeyx); } if(cartype[playerid] == 6) { PlayerInfo[playerid][pPPluscarkey] = PlayerInfo[ofercar[playerid]][pPPluscarkey2]; PlayerInfo[ofercar[playerid]][pPPluscarkey2] = 0; Update(playerid,pPPluscarkeyx); Update(ofercar[playerid],pPPluscarkey2x); } vehiculprimit = 5; } else if(PlayerInfo[playerid][pPPluscarkey2] == 0) { if(cartype[playerid] == 1) { PlayerInfo[playerid][pPPluscarkey2] = PlayerInfo[ofercar[playerid]][pPcarkey]; PlayerInfo[ofercar[playerid]][pPcarkey] = 0; Update(playerid,pPPluscarkey2x); Update(ofercar[playerid],pPcarkeyx); } if(cartype[playerid] == 2) { PlayerInfo[playerid][pPPluscarkey2] = PlayerInfo[ofercar[playerid]][pmotokey]; PlayerInfo[ofercar[playerid]][pmotokey] = 0; Update(playerid,pPPluscarkey2x); Update(ofercar[playerid],pmotokeyx); } if(cartype[playerid] == 3) { PlayerInfo[playerid][pPPluscarkey2] = PlayerInfo[ofercar[playerid]][pprcarkey]; PlayerInfo[ofercar[playerid]][pprcarkey] = 0; Update(playerid,pPPluscarkey2x); Update(ofercar[playerid],pprcarkeyx); } if(cartype[playerid] == 4) { PlayerInfo[playerid][pPPluscarkey2] = PlayerInfo[ofercar[playerid]][pprcarkey2]; PlayerInfo[ofercar[playerid]][pprcarkey2] = 0; Update(playerid,pPPluscarkey2x); Update(ofercar[playerid],pprcarkey2x); } if(cartype[playerid] == 5) { PlayerInfo[playerid][pPPluscarkey2] = PlayerInfo[ofercar[playerid]][pPPluscarkey]; PlayerInfo[ofercar[playerid]][pPPluscarkey] = 0; Update(playerid,pPPluscarkey2x); Update(ofercar[playerid],pPPluscarkeyx); } if(cartype[playerid] == 6) { PlayerInfo[playerid][pPPluscarkey2] = PlayerInfo[ofercar[playerid]][pPPluscarkey2]; PlayerInfo[ofercar[playerid]][pPPluscarkey2] = 0; Update(playerid,pPPluscarkey2x); Update(ofercar[playerid],pPPluscarkey2x); } vehiculprimit = 6; } else return SendClientMessage(playerid, COLOR_WHITE,"You already have 2 cars + 2 premium cars + 2 plus cars."); } if(PlayerInfo[playerid][pPremiumAccount] == 0 && PlayerInfo[playerid][pPlusSlot1] == 1 && PlayerInfo[playerid][pPlusSlot2] == 0) { if(PlayerInfo[playerid][pPcarkey] == 0) { if(cartype[playerid] == 1) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pPcarkey]; PlayerInfo[ofercar[playerid]][pPcarkey] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pPcarkeyx); } if(cartype[playerid] == 2) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pmotokey]; PlayerInfo[ofercar[playerid]][pmotokey] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pmotokeyx); } if(cartype[playerid] == 3) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pprcarkey]; PlayerInfo[ofercar[playerid]][pprcarkey] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pprcarkeyx); } if(cartype[playerid] == 4) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pprcarkey2]; PlayerInfo[ofercar[playerid]][pprcarkey2] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pprcarkey2x); } if(cartype[playerid] == 5) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pPPluscarkey]; PlayerInfo[ofercar[playerid]][pPPluscarkey2] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pPPluscarkeyx); } if(cartype[playerid] == 6) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pPPluscarkey2]; PlayerInfo[ofercar[playerid]][pPPluscarkey2] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pPPluscarkey2x); } vehiculprimit = 1; } else if(PlayerInfo[playerid][pmotokey] == 0) { if(cartype[playerid] == 1) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pPcarkey]; PlayerInfo[ofercar[playerid]][pPcarkey] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pPcarkeyx); } if(cartype[playerid] == 2) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pmotokey]; PlayerInfo[ofercar[playerid]][pmotokey] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pmotokeyx); } if(cartype[playerid] == 3) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pprcarkey]; PlayerInfo[ofercar[playerid]][pprcarkey] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pprcarkeyx); } if(cartype[playerid] == 4) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pprcarkey2]; PlayerInfo[ofercar[playerid]][pprcarkey2] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pprcarkey2x); } if(cartype[playerid] == 5) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pPPluscarkey]; PlayerInfo[ofercar[playerid]][pPPluscarkey] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pPPluscarkeyx); } if(cartype[playerid] == 6) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pPPluscarkey2]; PlayerInfo[ofercar[playerid]][pPPluscarkey2] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pPPluscarkey2x); } vehiculprimit = 2; } else if(PlayerInfo[playerid][pPPluscarkey] == 0) { if(cartype[playerid] == 1) { PlayerInfo[playerid][pPPluscarkey] = PlayerInfo[ofercar[playerid]][pPcarkey]; PlayerInfo[ofercar[playerid]][pPcarkey] = 0; Update(playerid,pPPluscarkeyx); Update(ofercar[playerid],pPcarkeyx); } if(cartype[playerid] == 2) { PlayerInfo[playerid][pPPluscarkey] = PlayerInfo[ofercar[playerid]][pmotokey]; PlayerInfo[ofercar[playerid]][pmotokey] = 0; Update(playerid,pPPluscarkeyx); Update(ofercar[playerid],pmotokeyx); } if(cartype[playerid] == 3) { PlayerInfo[playerid][pPPluscarkey] = PlayerInfo[ofercar[playerid]][pprcarkey]; PlayerInfo[ofercar[playerid]][pprcarkey] = 0; Update(playerid,pPPluscarkeyx); Update(ofercar[playerid],pprcarkeyx); } if(cartype[playerid] == 4) { PlayerInfo[playerid][pPPluscarkey] = PlayerInfo[ofercar[playerid]][pprcarkey2]; PlayerInfo[ofercar[playerid]][pprcarkey2] = 0; Update(playerid,pPPluscarkeyx); Update(ofercar[playerid],pprcarkey2x); } if(cartype[playerid] == 5) { PlayerInfo[playerid][pPPluscarkey] = PlayerInfo[ofercar[playerid]][pPPluscarkey]; PlayerInfo[ofercar[playerid]][pPPluscarkey] = 0; Update(playerid,pPPluscarkeyx); Update(ofercar[playerid],pPPluscarkeyx); } if(cartype[playerid] == 6) { PlayerInfo[playerid][pPPluscarkey] = PlayerInfo[ofercar[playerid]][pPPluscarkey2]; PlayerInfo[ofercar[playerid]][pPPluscarkey2] = 0; Update(playerid,pPPluscarkeyx); Update(ofercar[playerid],pPPluscarkey2x); } vehiculprimit = 5; } else return SendClientMessage(playerid, COLOR_WHITE,"You already have 2 cars + 1 plus car."); } if(PlayerInfo[playerid][pPremiumAccount] == 0 && PlayerInfo[playerid][pPlusSlot1] == 1 && PlayerInfo[playerid][pPlusSlot2] == 1) { if(PlayerInfo[playerid][pPcarkey] == 0) { if(cartype[playerid] == 1) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pPcarkey]; PlayerInfo[ofercar[playerid]][pPcarkey] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pPcarkeyx); } if(cartype[playerid] == 2) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pmotokey]; PlayerInfo[ofercar[playerid]][pmotokey] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pmotokeyx); } if(cartype[playerid] == 3) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pprcarkey]; PlayerInfo[ofercar[playerid]][pprcarkey] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pprcarkeyx); } if(cartype[playerid] == 4) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pprcarkey2]; PlayerInfo[ofercar[playerid]][pprcarkey2] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pprcarkey2x); } if(cartype[playerid] == 5) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pPPluscarkey]; PlayerInfo[ofercar[playerid]][pPPluscarkey] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pPPluscarkeyx); } if(cartype[playerid] == 6) { PlayerInfo[playerid][pPcarkey] = PlayerInfo[ofercar[playerid]][pPPluscarkey2]; PlayerInfo[ofercar[playerid]][pPPluscarkey2] = 0; Update(playerid,pPcarkeyx); Update(ofercar[playerid],pPPluscarkey2x); } vehiculprimit = 1; } else if(PlayerInfo[playerid][pmotokey] == 0) { if(cartype[playerid] == 1) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pPcarkey]; PlayerInfo[ofercar[playerid]][pPcarkey] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pPcarkeyx); } if(cartype[playerid] == 2) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pmotokey]; PlayerInfo[ofercar[playerid]][pmotokey] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pmotokeyx); } if(cartype[playerid] == 3) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pprcarkey]; PlayerInfo[ofercar[playerid]][pprcarkey] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pprcarkeyx); } if(cartype[playerid] == 4) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pprcarkey2]; PlayerInfo[ofercar[playerid]][pprcarkey2] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pprcarkey2x); } if(cartype[playerid] == 5) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pPPluscarkey]; PlayerInfo[ofercar[playerid]][pPPluscarkey] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pPPluscarkeyx); } if(cartype[playerid] == 6) { PlayerInfo[playerid][pmotokey] = PlayerInfo[ofercar[playerid]][pPPluscarkey2]; PlayerInfo[ofercar[playerid]][pPPluscarkey2] = 0; Update(playerid,pmotokeyx); Update(ofercar[playerid],pPPluscarkey2x); } vehiculprimit = 2; } else if(PlayerInfo[playerid][pPPluscarkey] == 0) { if(cartype[playerid] == 1) { PlayerInfo[playerid][pPPluscarkey] = PlayerInfo[ofercar[playerid]][pPcarkey]; PlayerInfo[ofercar[playerid]][pPcarkey] = 0; Update(playerid,pPPluscarkeyx); Update(ofercar[playerid],pPcarkeyx); } if(cartype[playerid] == 2) { PlayerInfo[playerid][pPPluscarkey] = PlayerInfo[ofercar[playerid]][pmotokey]; PlayerInfo[ofercar[playerid]][pmotokey] = 0; Update(playerid,pPPluscarkeyx); Update(ofercar[playerid],pmotokeyx); } if(cartype[playerid] == 3) { PlayerInfo[playerid][pPPluscarkey] = PlayerInfo[ofercar[playerid]][pprcarkey]; PlayerInfo[ofercar[playerid]][pprcarkey] = 0; Update(playerid,pPPluscarkeyx); Update(ofercar[playerid],pprcarkeyx); } if(cartype[playerid] == 4) { PlayerInfo[playerid][pPPluscarkey] = PlayerInfo[ofercar[playerid]][pprcarkey2]; PlayerInfo[ofercar[playerid]][pprcarkey2] = 0; Update(playerid,pPPluscarkeyx); Update(ofercar[playerid],pprcarkey2x); } if(cartype[playerid] == 5) { PlayerInfo[playerid][pPPluscarkey] = PlayerInfo[ofercar[playerid]][pPPluscarkey]; PlayerInfo[ofercar[playerid]][pPPluscarkey] = 0; Update(playerid,pPPluscarkeyx); Update(ofercar[playerid],pPPluscarkeyx); } if(cartype[playerid] == 6) { PlayerInfo[playerid][pPPluscarkey] = PlayerInfo[ofercar[playerid]][pPPluscarkey2]; PlayerInfo[ofercar[playerid]][pPPluscarkey2] = 0; Update(playerid,pPPluscarkeyx); Update(ofercar[playerid],pPPluscarkey2x); } vehiculprimit = 5; } else if(PlayerInfo[playerid][pPPluscarkey2] == 0) { if(cartype[playerid] == 1) { PlayerInfo[playerid][pPPluscarkey2] = PlayerInfo[ofercar[playerid]][pPcarkey]; PlayerInfo[ofercar[playerid]][pPcarkey] = 0; Update(playerid,pPPluscarkey2x); Update(ofercar[playerid],pPcarkeyx); } if(cartype[playerid] == 2) { PlayerInfo[playerid][pPPluscarkey2] = PlayerInfo[ofercar[playerid]][pmotokey]; PlayerInfo[ofercar[playerid]][pmotokey] = 0; Update(playerid,pPPluscarkey2x); Update(ofercar[playerid],pmotokeyx); } if(cartype[playerid] == 3) { PlayerInfo[playerid][pPPluscarkey2] = PlayerInfo[ofercar[playerid]][pprcarkey]; PlayerInfo[ofercar[playerid]][pprcarkey] = 0; Update(playerid,pPPluscarkey2x); Update(ofercar[playerid],pprcarkeyx); } if(cartype[playerid] == 4) { PlayerInfo[playerid][pPPluscarkey2] = PlayerInfo[ofercar[playerid]][pprcarkey2]; PlayerInfo[ofercar[playerid]][pprcarkey2] = 0; Update(playerid,pPPluscarkey2x); Update(ofercar[playerid],pprcarkey2x); } if(cartype[playerid] == 5) { PlayerInfo[playerid][pPPluscarkey2] = PlayerInfo[ofercar[playerid]][pPPluscarkey]; PlayerInfo[ofercar[playerid]][pPPluscarkey] = 0; Update(playerid,pPPluscarkey2x); Update(ofercar[playerid],pPPluscarkeyx); } if(cartype[playerid] == 6) { PlayerInfo[playerid][pPPluscarkey2] = PlayerInfo[ofercar[playerid]][pPPluscarkey2]; PlayerInfo[ofercar[playerid]][pPPluscarkey2] = 0; Update(playerid,pPPluscarkey2x); Update(ofercar[playerid],pPPluscarkey2x); } vehiculprimit = 6; } else return SendClientMessage(playerid, COLOR_WHITE,"You already have 2 cars + 2 plus cars."); } if(tipmasina == 1) { personalcar[0][id] = 0; } if(tipmasina == 2) { personalcar[1][id] = 0; } if(tipmasina == 3) { personalcar[2][id] = 0; } if(tipmasina == 4) { personalcar[3][id] = 0; } if(tipmasina == 5) { personalcar[4][id] = 0; } if(tipmasina == 6) { personalcar[5][id] = 0; } new sendernames[30],giveplayers[30],stringy[256],vehID = OwnedVeh(GetPlayerVehicleID(playerid)); GetPlayerName(playerid,sendernames,sizeof(sendernames)); GetPlayerName(ofercar[playerid],giveplayers,sizeof(giveplayers)); format(stringy, sizeof(stringy), "* %s sold his %s [car:%d] to %s for $%s.",giveplayers,CarInfo[vehID][cDescription],CarInfo[vehID][cID],sendernames,FormatNumber(carprice[playerid])); ProxDetector(30.0, playerid, stringy, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SendClientMessage(playerid, COLOR_LIGHTBLUE, stringy); SendClientMessage(ofercar[playerid], COLOR_LIGHTBLUE, stringy); ABroadCast(COLOR_YELLOW, stringy,1); new var100[256],y,m,d,h,mi,s,string2[256],string3[256]; getdate(y,m,d); gettime(h,mi,s); format(string2,sizeof(string2),"[%02d-%02d-%d %02d:%02d:%02d] %s[user:%d] sold car %d to %s[user:%d] for $%s.",d,m,y,h,mi,s,giveplayers,PlayerInfo[ofercar[playerid]][pSQLID],CarInfo[vehID][cID],sendernames,PlayerInfo[playerid][pSQLID],FormatNumber(carprice[playerid])); mysql_real_escape_string(string2, string3); mysql_format(SQL, var100, sizeof(var100), "INSERT INTO playerlogs (`playerid`,`giverid`,`action`,`time`) VALUES ('%d','%d','%s','%02d-%02d-%d %02d:%02d:%02d')", PlayerInfo[playerid][pSQLID],PlayerInfo[ofercar[playerid]][pSQLID],string3,d,m,y,h,mi,s); mysql_tquery(SQL,var100,"",""); new vehhh = GetPlayerVehicleID(playerid); if(vehiculprimit == 1) { personalcar[0][playerid] = vehhh; } else if(vehiculprimit == 2) { personalcar[1][playerid] = vehhh; } else if(vehiculprimit == 3) { personalcar[2][playerid] = vehhh; } else if(vehiculprimit == 4) { personalcar[3][playerid] = vehhh; } else if(vehiculprimit == 5) { personalcar[4][playerid] = vehhh; } else if(vehiculprimit == 6) { personalcar[5][playerid] = vehhh; } RemovePlayerFromVehicleEx(ofercar[playerid]); GivePlayerCash(playerid, - carprice[playerid]); GivePlayerCash(ofercar[playerid], carprice[playerid]); Update(playerid,pCashx); Update(ofercar[playerid],pCashx); strmid(CarInfo[CarID[playerid]][cOwner], PlayerInfo[playerid][pNormalName], 0, 25, 999); vUpdate(CarID[playerid],cOwnerx); ofercar[playerid] = -1; carprice[playerid] = 0; primesccar[playerid] = 0; cartype[playerid] = 0; CarID[playerid] = -1; SwitchKey[playerid] = 1; } else return SCM(playerid,COLOR_WHITE,"You don't have money needed."); } else return SendClientMessage(playerid, COLOR_WHITE,"Error: Player not connected."); } else { SendClientMessage(playerid, COLOR_WHITE,"Available names: Drugs, Repair, House, Materials, Dice, Gun."); SendClientMessage(playerid, COLOR_WHITE,"Available names: Vehicle, Taxi, Medic, Live, Lawyer, Cinvite."); SendClientMessage(playerid, COLOR_WHITE,"Available names: Mechanic, Ticket, Refill, Invite, Free."); return 1; } } return 1; } My skype: kent.nw JuKeS
  9. Ma poti ajuta sa rezolv problema? Ca chiar nu inteleg cum sa o rezolv, pliz. Add me skype: kent.nw JuKeS
  10. Boss, gamemodeul este foarte fain, doar ca nu ai pus server_log.txt si nu se vad iconitele la case si bizuri, si garajele de la PD nu-s, si mai e bug la /vipname, nu se pune vipname pe masina. In rest buguri nu-s. Doar ca bugul cu iconitele alea de la case si bizuri nush cum sa rezolv... Ma poti ajuta bro?
×
×
  • Create New...

Important Information

This site uses cookies. By continuing browsing, you agree to the use of this information. For more details, see Terms of Use and Privacy Policy.