Jump to content

iamCibu

Membru
  • Posts

    41
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by iamCibu

  1. cum adica din playerid in i poti te rog sa imi explici ?
  2. am si eu o problema daca ma puteti ajuta. https://imgur.com/a/FqcIYcN format(gString, 65, "Savanna~n~~w~~h~you have %d crates.", totalcrates(i)); PlayerTextDrawSetPreviewModel(i, CratePTD[0], 567); PlayerTextDrawSetString(i, CratePTD[1], gString); PlayerTextDrawShow(i, CratePTD[0]); if(CrateTime[i] <= 0) { if(Iter_Count(MyVehicle[i]) >= GetSlots(i)) { PlayerInfo[i][pCrates][4] ++; save_crates(i); SCM(i, COLOR_LIGHTGREEN, "Nu ai un slot liber, ai primit crate-ul inapoi."); CrateModel[i] = -1; KillTimer(TimerCratesEx[i]); return true; } else { KillTimer(TimerCratesEx[i]); CrateModel[i] = -1; GiveVehicle(i, 567, 0, 0, 0, 0, 0); format(gString, 120,"(( {7556ff}Crates System {A9C4E4}- %s a deschis Vehicle Crate si a castigat Savanna. ))", GetName(i)); SCMTA(COLOR_CLIENT, gString); PlayerTextDrawHide(i, CratePTD[1]); PlayerTextDrawHide(i, CratePTD[0]); } } } } else { switch(rand) { case 0..12: { amount = RandomEx(30, 250); format(gString, 65, "~n~~w~~h~you have %d crates.", totalcrates(i)); PlayerTextDrawSetPreviewModel(i, CratePTD[0], 411); PlayerTextDrawSetString(i, CratePTD[1], gString); PlayerTextDrawShow(i, CratePTD[0]); if(CrateTime[i] <= 0) { KillTimer(TimerCratesEx[i]); CrateModel[i] = -1; GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]500000000); format(gString, 120, "(( {7556ff}Crate System {A9C4E4}- %s a deschis Money Crate si a castigat $500.000.000. ))", GetName(i)); SCMTA(COLOR_CLIENT, gString); PlayerTextDrawHide(i, CratePTD[1]); PlayerTextDrawHide(i, CratePTD[0]); } } } case 13..22: { amount = random(20) + 20; format(gString, 64, "1.000.000.000~n~~w~~h~you have %d crates.", totalcrates(i)); PlayerTextDrawSetPreviewModel(i, CratePTD[0], 600); PlayerTextDrawSetString(i, CratePTD[1], gString); PlayerTextDrawShow(i, CratePTD[0]); if(CrateTime[i] == 0) { KillTimer(TimerCratesEx[i]); CrateModel[i] = -1; GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]1000000000); format(gString, 120,"(( {7556ff}Crate System {A9C4E4}- %s a deschis Money Crate si a castigat $1.000.000.000. ))", GetName(i)); SCMTA(COLOR_CLIENT,gString); PlayerTextDrawHide(i, CratePTD[1]); PlayerTextDrawHide(i, CratePTD[0]); } } } case 23..33: { format(gString, 65, "$100.000.000~n~~w~~h~you have %d crates.", totalcrates(i)); PlayerTextDrawSetPreviewModel(i, CratePTD[0], 523); PlayerTextDrawSetString(i, CratePTD[1], gString); PlayerTextDrawShow(i, CratePTD[0]); if(CrateTime[i] <= 0) { KillTimer(TimerCratesEx[i]); CrateModel[i] = -1; GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]100000000); format(gString, 120,"(( {7556ff}Crate System {A9C4E4}- %s a deschis Money Crate si a castigat $100.000.000. ))", GetName(i)); SCMTA(COLOR_CLIENT, gString); PlayerTextDrawHide(i, CratePTD[1]); PlayerTextDrawHide(i, CratePTD[0]); } } } case 34..46: { format(gString, 65, "$1~n~~w~~h~you have %d crates.", totalcrates(i)); PlayerTextDrawSetPreviewModel(i, CratePTD[0], 522); PlayerTextDrawSetString(i, CratePTD[1], gString); PlayerTextDrawShow(i, CratePTD[0]); if(CrateTime[i] <= 0) { KillTimer(TimerCratesEx[i]); CrateModel[i] = -1; GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]1); format(gString, 120,"(( {7556ff}Crates System {A9C4E4}- %s a deschis Money Crate si a castigat $1. ))", GetName(i)); SCMTA(COLOR_CLIENT,gString); PlayerTextDrawHide(i, CratePTD[1]); PlayerTextDrawHide(i, CratePTD[0]); } } } case 47..53: { format(gString, 65, "696969696$~n~~w~~h~you have %d crates.", totalcrates(i)); PlayerTextDrawSetPreviewModel(i, CratePTD[0], 1581); PlayerTextDrawSetString(i, CratePTD[1], gString); PlayerTextDrawShow(i, CratePTD[0]); if(CrateTime[i] <= 0) { KillTimer(TimerCratesEx[i]); CrateModel[i] = -1; GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]696969696); format(gString, 120,"(( {7556ff}Crates System {A9C4E4}- %s a deschis Money Crate si a castigat $696.969.696 . ))", GetName(i)); SCMTA(COLOR_CLIENT, gString); PlayerTextDrawHide(i, CratePTD[1]); PlayerTextDrawHide(i, CratePTD[0]); } } case 54..66: { format(gString, 65, "ticket (VIP)~n~~w~~h~you have %d crates.", totalcrates(i)); PlayerTextDrawSetPreviewModel(i, CratePTD[0], 1581); PlayerTextDrawSetString(i, CratePTD[1], gString); PlayerTextDrawShow(i, CratePTD[0]); if(CrateTime[i] <= 0) { KillTimer(TimerCratesEx[i]); CrateModel[i] = -1; PlayerInfo[i][pTickete][1] ++; save_tickete(i); format(gString, 120,"(( {7556ff}Crates System {A9C4E4}- %s a deschis Money Crate si a castigat Vip Ticket. ))", GetName(i)); SCMTA(COLOR_CLIENT,gString); PlayerTextDrawHide(i, CratePTD[1]); PlayerTextDrawHide(i, CratePTD[0]); } } case 67..74: { format(gString, 65, "Bullet (PREMIUM)~n~~w~~h~you have %d crates.", totalcrates(i)); PlayerTextDrawSetPreviewModel(i, CratePTD[0], 541); PlayerTextDrawSetString(i, CratePTD[1], gString); PlayerTextDrawShow(i, CratePTD[0]); if(CrateTime[i] <= 0) { KillTimer(TimerCratesEx[i]); CrateModel[i] = -1; Give format(gString, 120,"(( {7556ff}Crates System {A9C4E4}- %s a deschis Money Crate si a castigat Bullet PREMIUM. ))", GetName(i)); SCMTA(COLOR_CLIENT,gString); PlayerTextDrawHide(i, CratePTD[1]); PlayerTextDrawHide(i, CratePTD[0]); } } } case 75..81: { format(gString, 65, "$2.500.000.000~n~~w~~h~you have %d crates.", totalcrates(i)); PlayerTextDrawSetPreviewModel(i, CratePTD[0], 560); PlayerTextDrawSetString(i, CratePTD[1], gString); PlayerTextDrawShow(i, CratePTD[0]); if(CrateTime[i] <= 0) { KillTimer(TimerCratesEx[i]); CrateModel[i] = -1; GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]2500000000); format(gString, 120,"(( {7556ff}Crates System {A9C4E4}- %s a deschis Money Crate si a castigat $2.500.000.000. ))", GetName(i)); SCMTA(COLOR_CLIENT,gString); PlayerTextDrawHide(i, CratePTD[1]); PlayerTextDrawHide(i, CratePTD[0]); } } } case 82..88: { format(gString, 65, "$700.000.000~n~~w~~h~you have %d crates.", totalcrates(i)); PlayerTextDrawSetPreviewModel(i, CratePTD[0], 451); PlayerTextDrawSetString(i, CratePTD[1], gString); PlayerTextDrawShow(i, CratePTD[0]); if(CrateTime[i] <= 0) { KillTimer(TimerCratesEx[i]); CrateModel[i] = -1; GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]700000000); format(gString, 120,"(( {7556ff}Crates System {A9C4E4}- %s a deschis Money Crate si a castigat $700.000.000. ))", GetName(i)); SCMTA(COLOR_CLIENT,gString); PlayerTextDrawHide(i, CratePTD[1]); PlayerTextDrawHide(i, CratePTD[0]); } } } case 89..94: { format(gString, 65, "$5.000.000.000~n~~w~~h~you have %d crates.", totalcrates(i)); PlayerTextDrawSetPreviewModel(i, CratePTD[0], 451); PlayerTextDrawSetString(i, CratePTD[1], gString); PlayerTextDrawShow(i, CratePTD[0]); if(CrateTime[i] <= 0) { KillTimer(TimerCratesEx[i]); CrateModel[i] = -1; GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]5000000000); format(gString, 120,"(( {7556ff}Crates System {A9C4E4}- %s a deschis Money Crate si a castigat $5.000.000.000. ))", GetName(i)); SCMTA(COLOR_CLIENT,gString); PlayerTextDrawHide(i, CratePTD[1]); PlayerTextDrawHide(i, CratePTD[0]); } } } case 95..100: { format(gString, 65, "$10.000.000.000~n~~w~~h~you have %d crates.", totalcrates(i)); PlayerTextDrawSetPreviewModel(i, CratePTD[0], 451); PlayerTextDrawSetString(i, CratePTD[1], gString); PlayerTextDrawShow(i, CratePTD[0]); if(CrateTime[i] <= 0) { KillTimer(TimerCratesEx[i]); CrateModel[i] = -1; GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]10000000000); format(gString, 120,"(( {7556ff}Crates System {A9C4E4}- %s a deschis Money Crate si a castigat $10.000.000.000. ))", GetName(i)); SCMTA(COLOR_CLIENT,gString); PlayerTextDrawHide(i, CratePTD[1]); PlayerTextDrawHide(i, CratePTD[0]); } } } default: { format(gString, 65, "$10.000.000~n~~w~~h~you have %d crates.", totalcrates(i)); PlayerTextDrawSetPreviewModel(i, CratePTD[0], 567); PlayerTextDrawSetString(i, CratePTD[1], gString); PlayerTextDrawShow(i, CratePTD[0]); if(CrateTime[i] <= 0) { KillTimer(TimerCratesEx[i]); CrateModel[i] = -1; GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]10000000); format(gString, 120,"(( {7556ff}Crates System {A9C4E4}- %s a deschis Money Crate si a castigat $10.000.000. ))", GetName(i)); SCMTA(COLOR_CLIENT, gString); PlayerTextDrawHide(i, CratePTD[1]); PlayerTextDrawHide(i, CratePTD[0]); }; }; return true; }
  3. Salut! Cum pot face si eu asa ceva? Acolo unde e incercuit cu rosu.
  4. } SelectedItem[playerid] = listitem; asta e linia unde imi apar erorile alea
  5. rpg1_bhood.pwn(10488) : error 002: only a single statement (or expression) can follow each "case" rpg1_bhood.pwn(10488) : error 029: invalid expression, assumed zero rpg1_bhood.pwn(10488) : warning 215: expression has no effect rpg1_bhood.pwn(10488) : error 001: expected token: ";", but found "]" rpg1_bhood.pwn(10488) : fatal error 107: too many error messages on one line da erorile astea. ce sa fac
  6. linia 10489 este } SelectedItem;[playerid] = listitem
  7. rpg1_bhood.pwn(10484) : warning 217: loose indentation rpg1_bhood.pwn(10487) : warning 217: loose indentation rpg1_bhood.pwn(10489) : error 002: only a single statement (or expression) can follow each "case" rpg1_bhood.pwn(10489) : error 029: invalid expression, assumed zero rpg1_bhood.pwn(10489) : warning 215: expression has no effect rpg1_bhood.pwn(10489) : error 001: expected token: ";", but found "]" rpg1_bhood.pwn(10489) : fatal error 107: too many error messages on one line cod: case DIALOG_SHOP: { new szDialog[1100]; if(!response) { InShop[playerid] = 0; ShowPlayerDialog(playerid, DIALOG_SHOPMENU, DIALOG_STYLE_TABLIST_HEADERS, "Shop Menu", "Shop Type\tItem\n{FFEA3B}[+] Shop Info{FFFFFF}\nNormal Shop\t17 items\nVip Cars\t9 items\nExtra Peacks\t3 items\t8 items", "Select", "Cancel"); return true; } switch(ShopType[playerid]) { case 1: { switch(listitem) { case 0: { format(szDialog, sizeof(szDialog), "Esti sigur ca vrei sa-ti achizitionezi un clan ?\nPentru asta, ai nevoie de 300 Premium Points.\n\n\ Avantaje:\n- Clan disponibil 60 zile (se poate prelungi)\n- Poti invita 40 playeri"); SetPVarInt(playerid, "PremiumPoints", 300); } case 1: { format(szDialog, sizeof(szDialog), "Esti sigur ca vrei sa-ti schimbi numele?\nPentru asta, ai nevoie de 50 Premium Points. "); SetPVarInt(playerid, "PremiumPoints", 50); } case 2: { format(szDialog, sizeof(szDialog), "Esti sigur ca vrei sa-ti achizitionezi o culoare hidden?\nPentru asta, ai nevoie de 40 Premium Points."); SetPVarInt(playerid, "PremiumPoints", 40); } case 3: { format(szDialog, sizeof(szDialog), "Esti sigur ca vrei sa-ti achizitionezi un slot de vehicule?\nCosta 40 Premium Points."); SetPVarInt(playerid, "PremiumPoints", 40); } case 4: { format(szDialog, sizeof(szDialog), "Esti sigur ca vrei sa-ti stergi un warn?\nPentru asta, ai nevoie de 30 Premium Points."); SetPVarInt(playerid, "PremiumPoints", 30); } case 5: { format(szDialog, sizeof(szDialog), "Esti sigur ca vrei sa-ti stergi kilometrii la unul dintre vehiculele tale personale?\nPentru asta, ai nevoie de 35 Premium Points."); SetPVarInt(playerid, "PremiumPoints", 35); } case 6: { format(szDialog, sizeof(szDialog), "Esti sigur ca vrei sa-ti achizitionezi un MP3?\nPentru asta, ai nevoie de 20 Premium Points."); SetPVarInt(playerid, "PremiumPoints", 20); } case 7: { format(szDialog, sizeof(szDialog), "Esti sigur ca vrei sa-ti achizitionezi un iPhone?\nPentru asta, ai nevoie de 20 Premium Points.\n\n\ Avantaje:\n- Numar format din 4 cifre\n- Texte modificate la /call respectiv /sms\n- Acces la comanda /reply (/re)."); SetPVarInt(playerid, "PremiumPoints", 20); } case 8: { new bouse = PlayerInfo[playerid][pHouse]; if(bouse != 999 && strcmp(GetName(playerid), HouseInfo[PlayerInfo[playerid][pHouse]][hOwner], true) == 0) { if(HouseInfo[PlayerInfo[playerid][pHouse]][hRadio] == 1) return SCM(playerid, -1, "Aceasta afacere are deja un radio!"); format(szDialog, sizeof(szDialog), "Esti sigur ca vrei sa-ti achizitionezi radio in casa?\nCosta 15 Premium Points."); SetPVarInt(playerid, "PremiumPoints", 15); } else return SCM(playerid, COLOR_GREY, "Nu ai o casa!"); } case 9: { if(PlayerInfo[playerid][pBizz] == 255) return SCM(playerid, -1, "Nu ai o afacere!"); if(BizzInfo[PlayerInfo[playerid][pBizz]][bRadio] == 1) return SCM(playerid, -1, "Aceasta afacere are deja un radio!"); format(szDialog, sizeof(szDialog), "Esti sigur ca vrei sa-ti achizitionezi radio in afacere?\nCosta 15 Premium Points."); SetPVarInt(playerid, "PremiumPoints", 15); } case 10: { format(szDialog, sizeof(szDialog), "Esti sigur ca vrei sa-ti achizitionezi un Boost job?\nCosta 20 Premium Points."); SetPVarInt(playerid, "PremiumPoints", 20); } case 11: { format(szDialog, sizeof(szDialog), "Esti sigur ca vrei sa-ti achizitionezi un Rare Vocuher?\nCosta 55 Premium Points."); SetPVarInt(playerid, "PremiumPoints", 55); } case 12: { format(szDialog, sizeof(szDialog), "Esti sigur ca vrei sa-ti achizitionezi un Epic Vocuher?\nCosta 110 Premium Points."); SetPVarInt(playerid, "PremiumPoints", 110); } case 13: { format(szDialog, sizeof(szDialog), "Esti sigur ca vrei sa-ti achizitionezi un Legendary Vocuher?\nCosta 525 Premium Points."); SetPVarInt(playerid, "PremiumPoints", 525); } case 14: { format(szDialog, sizeof(szDialog), "Esti sigur ca vrei sa-ti achizitionezi un Mythic Vocuher?\nCosta 255 Premium Points."); SetPVarInt(playerid, "PremiumPoints", 255); } case 15: { format(szDialog, sizeof(szDialog), "Esti sigur ca vrei sa-ti achizitionezi un Clear FP?\nCosta 99 Premium Points."); SetPVarInt(playerid, "PremiumPoints", 99); } } ShowPlayerDialog(playerid, DIALOG_SHOP1, DIALOG_STYLE_MSGBOX, "Shop: Normal", szDialog, "Ok", "Back"); } case 2: { switch(listitem) { case 0: { format(szDialog, sizeof(szDialog), "Esti sigur ca vrei sa-ti achizitionezi un Infernus Premium?\nAcesta costa 5600 Premium points, Acesta prinde viteaza de 300 km/h"); SetPVarInt(playerid, "PremiumPoints", 5600); } case 1: { format(szDialog, sizeof(szDialog), "Esti sigur ca vrei sa-ti achizitionezi un Hotering A?\nAcesta costa 5400 Premium Points."); SetPVarInt(playerid, "PremiumPoints", 5400); } case 2: { format(szDialog, sizeof(szDialog), "Esti sigur ca vrei sa-ti achizitionezi un Hotering B?\nAcesta costa 5400 Premium Points."); SetPVarInt(playerid, "PremiumPoints", 5400); } case 3: { format(szDialog, sizeof(szDialog), "Esti sigur ca vrei sa-ti achizitionezi un Hotering C?\nAcesta costa 5400 Premium Points."); SetPVarInt(playerid, "PremiumPoints", 5400); } case 4: { format(szDialog, sizeof(szDialog), "Esti sigur ca vrei sa-ti achizitionezi un Streach?\nPentru asta, ai nevoie de 5450 Premium Points."); SetPVarInt(playerid, "PremiumPoints", 5450); } case 5: { format(szDialog, sizeof(szDialog), "Esti sigur ca vrei sa-ti achizitionezi un Sparrow?\nCosta 5400 Premium Points."); SetPVarInt(playerid, "PremiumPoints", 5400); } case 6: { format(szDialog, sizeof(szDialog), "Esti sigur ca vrei sa-ti achizitionezi un Maverick?\nPentru asta, ai nevoie de 5500 Premium Points."); SetPVarInt(playerid, "PremiumPoints", 5500); } case 7: { format(szDialog, sizeof(szDialog), "Esti sigur ca vrei sa-ti achizitionezi Shamal?\nPentru asta, ai nevoie de 5800 Premium Points."); SetPVarInt(playerid, "PremiumPoints", 5800); } case 8: { format(szDialog, sizeof(szDialog), "Esti sigur ca vrei sa-ti achizitionezi Monster?\nPentru asta, ai nevoie de 6200 Premium Points."); SetPVarInt(playerid, "PremiumPoints", 6200); } } ShowPlayerDialog(playerid, DIALOG_SHOP1, DIALOG_STYLE_MSGBOX, "Shop: VIP Cars", szDialog, "Ok", "Back"); } case 3: { switch(listitem) { case 0: { format(szDialog, sizeof(szDialog), "INFO: Daca deti unul dintre aceste produse nu le vei primi!\n\nCe primesc dupa ce cumpar acest pachet? (1000 Premium Points)\n> Vip User\n> Premium Account\n> iPhone\n> +$20,000,000"); SetPVarInt(playerid, "PremiumPoints", 1000); } case 1: { format(szDialog, sizeof(szDialog), "INFO: Daca deti unul dintre aceste produse nu le vei primi!\n\nCe primesc dupa ce cumpar acest pachet? (850 Premium Points)\n1x Legendary Voucher\n2x Epic Voucher\n3x Rare Voucher"); SetPVarInt(playerid, "PremiumPoints", 850); } case 2: { format(szDialog, sizeof(szDialog), "INFO: Daca deti unul dintre aceste produse nu le vei primi!\n\nCe primesc dupa ce cumpar acest pachet? (1000 Premium Points)\n> Hotring Racer A/B/C\n4x Hidden Color\n1x Slot"); SetPVarInt(playerid, "PremiumPoints", 500); } } ShowPlayerDialog(playerid, DIALOG_SHOP1, DIALOG_STYLE_MSGBOX, "Shop: Extra Packs", szDialog, "Ok", "Back"); } case 4: { switch(listitem) { case 0: { format(szDialog, sizeof(szDialog), "Esti sigur ca vrei sa-ti achizitionezi un cont premium?\nPentru asta, ai nevoie de 150 puncte premium.\n\n\ Avantaje:\n-Interes 0.2 la payday\n- 2 RP-uri o data la 5 ore\n- Poti avea 5 masini personale in total\n\ - numarul (/carplate) o sa fie de culoare portocalie.\n- acces la comanda /pcolor.\n- Poti pune pana la 100 obiecte in casa\nChat (/pc)."); SetPVarInt(playerid, "PremiumPoints", 150); } case 1: { format(szDialog, sizeof(szDialog), "Esti sigur ca vrei sa-ti achizitionezi %s?\n{FFFFFF}Pentru asta, ai nevoie de %d Premium Points.", UpgradeVip(PlayerInfo[playerid][pVip]+1), PriceVIP(PlayerInfo[playerid][pVip]+1)); SetPVarInt(playerid, "PremiumPoints", PriceVIP(PlayerInfo[playerid][pVip]+1)); } } ShowPlayerDialog(playerid, DIALOG_SHOP1, DIALOG_STYLE_MSGBOX, "Shop: Account Upgrade", szDialog, "Ok", "Back"); } SelectedItem[playerid] = listitem; case DIALOG_SHOP1: { if(!response) { InShop[playerid] = 0; ShowShop(playerid); return true; } switch(ShopType[playerid]) { case 4: { new gold = GetPVarInt(playerid, "PremiumPoints"); if(PlayerInfo[playerid][pPremiumPoints] < gold) return ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Shop", "Nu ai suficiente Premium Points pentru a achizitiona acest produs.", "Ok", ""); switch(SelectedItem[playerid]) { case 0: { if(PlayerInfo[playerid][pPremiumAccount] == 1) return SCM(playerid, -1, "Contul tau deja este Premium."); SCM(playerid, COLOR_GREEN, "(SHOP INFO){FFFFFF} Felicitari! Contul tau, este acum, unul de tip Premium."); PlayerInfo[playerid][pPremiumAccount] = 1; Update(playerid, pPremiumAccountx); PlayerInfo[playerid][pPremiumPoints]-=100; format(string, sizeof(string), "%s si-a achizitionat cont premium pentru 100 Premium Points.", GetName(playerid)); InsertLog(playerid, string, LOG_SHOP); } case 1: { if(PlayerInfo[playerid][pVip] == 2) return SCM(playerid, -1, "Ai upgradat la maximum"); PlayerInfo[playerid][pVip] ++; PlayerInfo[playerid][pBackpack] = 2; SetPlayerAttachedObject( playerid, 8, 3026, 1, -0.172813, -0.112569, -0.022387, 0.000000, 0.000000, 3.390071, 1.000000, 1.000000, 1.130721); Update(playerid, pVipx); Update(playerid, pBackpackx); switch(PlayerInfo[playerid][pVip]) { case 1: { SCM(playerid, COLOR_GREEN, "(SHOP INFO){FFFFFF} Felicitari! Contul tau este acum unul de tip VIP."); Update3DTextLabelText(vipLabel[playerid], 0x7DE41BFF, "VIP USER"); } case 2: { SCM(playerid, COLOR_GREEN, "(SHOP INFO){FFFFFF} Felicitari! Ti-ai upgradat contul la unul de tip VIP Plus."); Update3DTextLabelText(vipLabel[playerid], 0xF28036FF, "VIP USER"); } } PlayerInfo[playerid][pPremiumPoints] -= PriceVIP(PlayerInfo[playerid][pVip]); Attach3DTextLabelToPlayer(vipLabel[playerid], playerid, 0.0, 0.0, 0.4); format(string, sizeof(string), "%s si-a achizitionat un cont %s pentru %d Premium Points.", GetName(playerid), UpgradeVip(PlayerInfo[playerid][pVip]), PriceVIP(PlayerInfo[playerid][pVip])); InsertLog(playerid, string, LOG_SHOP); } case 1: { if(PlayerInfo[playerid][pClanRank] == 7) return SCM(playerid, COLOR_WHITE, "Ai deja un clan."); if(PlayerInfo[playerid][pClan] != 0) return SCM(playerid, COLOR_WHITE, "Faci parte dintr-un clan deja."); sSlot[playerid] = 40; ShowPlayerDialog(playerid, DIALOG_CLAN, DIALOG_STYLE_INPUT, "Shop:", "Esti pe cale sa-ti creezi un clan cu 40 locuri disponibile.\nTot ce trebuie sa faci in acest moment,\ este sa-ti alegi numele clanului.\nNumele clanului trebuie sa contina intre 3 si 10 caractere.", "Ok", ""); format(string, sizeof(string), "%s si-a achizitionat un clan mare pentru 300 Premium Points.", GetName(playerid)); InsertLog(playerid, string, LOG_SHOP); } case 2: ShowPlayerDialog(playerid, DIALOG_CHANGENAME, DIALOG_STYLE_INPUT, "Shop:", "Esti pe cale sa-ti schimbi numele.\nTot ce trebuie sa faci in acest moment, este sa-ti alegi un nume care nu este luat de altcineva.\nLimita este de 3 si 24 caractere.", "Ok", "Back"); case 3: { PlayerInfo[playerid][pHidden] ++; UpdateVar(playerid, "Hidden", PlayerInfo[playerid][pHidden]); PlayerInfo[playerid][pPremiumPoints] -= 30; SCM(playerid, COLOR_GREEN, "(SHOP INFO){FFFFFF} Felicitari! Ti-ai cumparat o culoare hidden pentru 30 premium points."); format(string, sizeof(string), "%s si-a achizitionat o culoare hidden pentru %d Premium Points.", GetName(playerid), GetPVarInt(playerid, "PremiumPoints")); InsertLog(playerid, string, LOG_SHOP); } case 2: { if(GetSlots(playerid) >= TotalSlots(playerid)) return SCM(playerid, -1, "Ai numarul maxim de sloturi!"); PlayerInfo[playerid][pSlot] ++; PlayerInfo[playerid][pPremiumPoints] -= 20; Update(playerid, pPremiumPointsx); UpdateSlots(playerid); SCM(playerid, COLOR_GREEN, "(SHOP INFO){FFFFFF} Ti-ai cumparat un slot pentru vehicule in schimbul a 20 Premium Points."); format(string, sizeof(string), "%s si-a achizitionat un slot (vehicul) pentru 20 Premium Points.", GetName(playerid)); InsertLog(playerid, string, LOG_SHOP); } case 3: { if(PlayerInfo[playerid][pWarns] == 0) return SCM(playerid, COLOR_GREY, "Nu ai warn-uri."); PlayerInfo[playerid][pWarns] -= 1; UpdateVar(playerid, "Warnings", PlayerInfo[playerid][pWarns]); PlayerInfo[playerid][pPremiumPoints] -= 30; format(string, sizeof(string), "%s si-a sters un Warn pentru %d Premium Points.", GetName(playerid), GetPVarInt(playerid, "PremiumPoints")); InsertLog(playerid, string, LOG_SHOP); } case 4: { if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid, COLOR_GREY, "Nu esti intr-un vehicul!"); new idd; if(Iter_Count(MyVehicle[playerid]) == 0) return SCM(playerid, COLOR_WHITE, "Acest vehicul nu iti apartine!"); idd = PersonalCar(playerid); if(idd == -1) return SCM(playerid, COLOR_WHITE, "Acest vehicul nu iti apartine!"); pCar[playerid] = idd; ShowPlayerDialog(playerid, DIALOG_RESETKM, DIALOG_STYLE_MSGBOX, "Shop:", "Esti sigur ca vrei sa resetezi kilometrii acestui vehicul?", "Da", "Back"); } case 5: { if(PlayerInfo[playerid][pMP3] == 1) return SCM(playerid,COLOR_WHITE, "Ai deja un radio."); PlayerInfo[playerid][pMP3] = 1; SCM(playerid,COLOR_GREEN, "(SHOP INFO){FFFFFF} Felicitari! Ti-ai cumparat un MP3 din magazin. Foloseste /mp3 pentru a asculta muzica."); Update(playerid, pRadiox); PlayerInfo[playerid][pPremiumPoints] -= GetPVarInt(playerid, "PremiumPoints"); format(string, sizeof(string), "%s si-a achizitionat un MP3 pentru %d Premium Points.", GetName(playerid), GetPVarInt(playerid, "PremiumPoints")); InsertLog(playerid, string, LOG_SHOP); } case 6: { ShowPlayerDialog(playerid, DIALOG_IPHONE, DIALOG_STYLE_INPUT, "Shop:", "Esti pe cale sa-ti achizitionezi un iPhone.\nTot ce trebuie sa faci in acest moment, este sa-ti alegi un numar format din 4 cifre.", "Ok", "Back"); } case 7: { if(PlayerInfo[playerid][pPremiumPoints] < 15) return SCM(playerid, -1, "Nu ai suficiente Premium Points!"); PlayerInfo[playerid][pPremiumPoints] -= 15; Update(playerid, pPremiumPointsx); HouseInfo[PlayerInfo[playerid][pHouse]][hRadio] = 0; format(query, sizeof(query), "UPDATE `houses` SET `Radio`='1' WHERE `ID`='%d'", PlayerInfo[playerid][pHouse]); SCM(playerid, COLOR_GREEN, "(SHOP INFO){FFFFFF} Acum poti pune radio in casa ta! Foloseste comanda /hradio pentru a pune."); format(string, sizeof(string), "%s si-a achizitionat un radio (casa) pentru 15 Premium Points.", GetName(playerid)); InsertLog(playerid, string, LOG_SHOP); } case 8: { if(PlayerInfo[playerid][pPremiumPoints] < 15) return SCM(playerid, -1, "Nu ai suficiente Premium Points!"); PlayerInfo[playerid][pPremiumPoints] -= 15; Update(playerid, pPremiumPointsx); if(BizzInfo[PlayerInfo[playerid][pBizz]][bStatic] == 1) return SCM(playerid, -1, "Nu poti pune radio in aceasta afacere."); BizzInfo[PlayerInfo[playerid][pBizz]][bRadio] = 0; format(query, sizeof(query), "UPDATE `bizz` SET `Radio`='1' WHERE `ID`='%d'", PlayerInfo[playerid][pBizz]); SCM(playerid, COLOR_GREEN, "(SHOP INFO){FFFFFF} Acum poti pune radio in afacerea ta! Foloseste comanda /bradio pentru a pune."); format(string, sizeof(string), "%s si-a achizitionat un radio (bizz) pentru 15 Premium Points.", GetName(playerid)); InsertLog(playerid, string, LOG_SHOP); } case 9: { if(PlayerInfo[playerid][pPremiumPoints] < 20) return SCM(playerid, -1, "Nu ai suficiente Premium Points"); PlayerInfo[playerid][pPremiumPoints] -= 20; PlayerInfo[playerid][pJobBoost] += 5; SetPVarInt(playerid, "PremiumPoints", PlayerInfo[playerid][pPremiumPoints]); SCMEx(playerid, COLOR_GREEN, "(SHOP INFO){FFFFFF} Felicitari %s ti-ai cumparat 5x Boost job pentru suma de 20 Premium Points!",GetName(playerid)); format(string, sizeof(string), "%s si-a achizitionat 5x Boost job pentru 20 Premium Points.", GetName(playerid)); InsertLog(playerid, string, LOG_SHOP); Update(playerid, pJobBoostx); } case 10: { if(PlayerInfo[playerid][pPremiumPoints] < 55) return SCM(playerid, -1, "Nu ai suficiente Premium Points"); PlayerInfo[playerid][pPremiumPoints] -= 55; PlayerInfo[playerid][pVoucher][0] ++; SetPVarInt(playerid, "PremiumPoints", PlayerInfo[playerid][pPremiumPoints]); SCMEx(playerid, COLOR_GREEN, "(SHOP INFO){FFFFFF} Felicitari %s ti-ai cumparat un Rare Voucher pentru suma de 55 Premium Points!",GetName(playerid)); format(string, sizeof(string), "%s si-a achizitionat un Rare Voucher pentru 55 Premium Points.", GetName(playerid)); InsertLog(playerid, string, LOG_SHOP); save_vouchers(playerid); } case 11: { if(PlayerInfo[playerid][pPremiumPoints] < 110) return SCM(playerid, -1, "Nu ai suficiente Premium Points"); PlayerInfo[playerid][pPremiumPoints] -= 110; PlayerInfo[playerid][pVoucher][1] ++; SetPVarInt(playerid, "PremiumPoints", PlayerInfo[playerid][pPremiumPoints]); SCMEx(playerid, COLOR_GREEN, "(SHOP INFO){FFFFFF} Felicitari %s ti-ai cumparat un Epic Voucher pentru suma de 110 Premium Points!",GetName(playerid)); format(string, sizeof(string), "%s si-a achizitionat un Epic Voucher pentru 110 Premium Points.", GetName(playerid)); InsertLog(playerid, string, LOG_SHOP); save_vouchers(playerid); } case 12: { if(PlayerInfo[playerid][pPremiumPoints] < 525) return SCM(playerid, -1, "Nu ai suficiente Premium Points"); PlayerInfo[playerid][pPremiumPoints] -= 525; PlayerInfo[playerid][pVoucher][2] ++; SetPVarInt(playerid, "PremiumPoints", PlayerInfo[playerid][pPremiumPoints]); SCMEx(playerid, COLOR_GREEN, "(SHOP INFO){FFFFFF} Felicitari %s ti-ai cumparat un Legendary Voucher pentru suma de 525 Premium Points!",GetName(playerid)); format(string, sizeof(string), "%s si-a achizitionat un Legendary Voucher pentru 525 Premium Points.", GetName(playerid)); InsertLog(playerid, string, LOG_SHOP); save_vouchers(playerid); } case 13: { if(PlayerInfo[playerid][pPremiumPoints] < 255) return SCM(playerid, -1, "Nu ai suficiente Premium Points"); PlayerInfo[playerid][pPremiumPoints] -= 255; PlayerInfo[playerid][pVoucher][3] ++; SetPVarInt(playerid, "PremiumPoints", PlayerInfo[playerid][pPremiumPoints]); SCMEx(playerid, COLOR_GREEN, "(SHOP INFO){FFFFFF} Felicitari %s ti-ai cumparat un Mythic Voucher pentru suma de 255 Premium Points!",GetName(playerid)); format(string, sizeof(string), "%s si-a achizitionat un Mythic Voucher pentru 255 Premium Points.", GetName(playerid)); InsertLog(playerid, string, LOG_SHOP); save_vouchers(playerid); } case 14: { if(PlayerInfo[playerid][pPremiumPoints] < 99) return SCM(playerid, -1, "Nu ai suficiente Premium Points"); PlayerInfo[playerid][pPremiumPoints] -= 99; PlayerInfo[playerid][pFpunish] = 0; UpdateVar(playerid, "FPunish", 0); SCMEx(playerid, COLOR_GREEN, "(SHOP INFO){FFFFFF} Felicitari %s ti-ai cumparat un Clear FP pentru suma de 99 Premium Points!",GetName(playerid)); format(string, sizeof(string), "%s si-a achizitionat un Clear FP pentru 99 Premium Points.", GetName(playerid)); } }
  8. salut imi dai si mie sail testez pe localhost? imi dai samp-server.exe?
  9. YCMD:setslot(playerid, params[], help) { if(PlayerInfo[playerid][pAdmin] < 7) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu ai acces la aceasta comanda."); new id, slot; if(sscanf(params, "ui", id, slot)) return SCM(playerid, COLOR_GREY, "Syntax: {FFFFFF}/setslot <playerid/name> <slot>"); gString[0] = EOS; format(gString, sizeof(gString), "(/setslot) %s set %s slot %d"); SendAdminMessage(COLOR_RED, gString, 5); return true; } function SQL_CheckPlayer(playerid, id) { if(cache_num_rows() == 0) return ShowPlayerDialog(playerid, DIALOG_REGISTER5, DIALOG_STYLE_INPUT, "Referral:", "Insert referral:\nInvalid id.", "Select", "Close"); new ORM:ormid = orm_create("users"); gString[0] = EOS; orm_addvar_string(ormid, gString, MAX_PLAYER_NAME, "name"); orm_apply_cache(ormid, 0); SetPVarInt(playerid, "Referral", id); format(RegisterReferral[playerid], MAX_PLAYER_NAME, gString); format(gString, 100, "Esti sigur ca %s te-a adus pe comunitate?", gString); ShowPlayerDialog(playerid, DIALOG_REGISTER6, DIALOG_STYLE_MSGBOX, "Referral:", gString, "Ok", "Back"); return true; }
  10. am si eu o problema: orm_addvar_string(ormid, gString, MAX_PLAYER_NAME, "name"); ce am gresit?
  11. Frt am o problema nu gaseste booter.inc si nu e in include poti sa ma ajuti pe discord?
×
×
  • 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.