SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Romānă/Romanian

 
 
Thread Tools Display Modes
Old 01/02/2014, 04:10 PM   #1
bogpys
Banned
 
Join Date: Jan 2014
Posts: 11
Reputation: 0
Default Problema 24/7

Am si eu o intrebare:

Cum pot modifica preturile itemelor de la magazinele 24/7 ?

Au preturile foarte mari..si nu le gasesc in GM ca sa le editez..
bogpys is offline  
Old 01/02/2014, 04:15 PM   #2
rBcollo
Huge Clucker
 
Join Date: Apr 2011
Posts: 215
Reputation: 0
Default Re: Problema 24/7

Cu ce comanda cumperi de la 24/7?
__________________
If I helped you give me
rBcollo is offline  
Old 01/02/2014, 04:55 PM   #3
Lumineux
Huge Clucker
 
Lumineux's Avatar
 
Join Date: Apr 2013
Location: Romania, Prahova
Posts: 238
Reputation: 2
Default Re: Problema 24/7

Trebuie sa ne dai comanda cu care cumperi itemele sau dialogul (daca ai dialog).
Lumineux is offline  
Old 01/02/2014, 05:13 PM   #4
bogpys
Banned
 
Join Date: Jan 2014
Posts: 11
Reputation: 0
Default Re: Problema 24/7

http://postimg.org/image/wjxcqw7d7/
bogpys is offline  
Old 01/02/2014, 05:21 PM   #5
norton2
Huge Clucker
 
Join Date: Jul 2013
Posts: 431
Reputation: 9
Default Re: Problema 24/7



Pune aici comanda /buy
norton2 is offline  
Old 01/02/2014, 05:31 PM   #6
bogpys
Banned
 
Join Date: Jan 2014
Posts: 11
Reputation: 0
Default Re: Problema 24/7

Quote:
if(strcmp(cmd, "/buy", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(GetPlayerInterior(playerid) == 0) return 1;
if (PlayerToPoint(100, playerid,1833.1119,-1842.5636,13.5781) || PlayerToPoint(50.0, playerid, -25.5314,-176.7431,1003.5469))
{
new Price[11];
Price[0] = 500 * BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceCost];
Price[1] = 250 * BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceCost];
Price[2] = 5000 * BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceCost];
Price[3] = 500 * BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceCost];
Price[4] = 2500 * BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceCost];
Price[5] = 10 * BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceCost];
Price[6] = 10 * BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceCost];
Price[7] = 10 * BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceCost];
Price[8] = 2500 * BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceCost];
Price[9] = 1000 * BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceCost];
Price[10] = 2000 * BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceCost];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "{00FF00}Folosire:{FFFFFF} /buy [item number]");
SendClientMessage(playerid, COLOR_GREEN, "|_______ 24-7 _______|");
format(string, sizeof(string), "| 1: Telefon $%d 2: Loz in plic $%d", Price[0], Price[1]);
SendClientMessage(playerid, COLOR_GRAD1, string);
format(string, sizeof(string), "| 3: Carte de telefon $%d 4: Zar $%d", Price[2], Price[3]);
SendClientMessage(playerid, COLOR_GRAD2, string);
format(string, sizeof(string), "| 5: CD-Player $%d 6: Pui $%d", Price[4], Price[5]);
SendClientMessage(playerid, COLOR_GRAD4, string);
format(string, sizeof(string), "| 7: Hamburger $%d 8: Pizza Inghetata $%d", Price[6], Price[7]);
SendClientMessage(playerid, COLOR_GRAD5, string);
format(string, sizeof(string), "| 9: Casetofon $%d 10: Camera Foto $%d", Price[8], Price[9]);
SendClientMessage(playerid, COLOR_GRAD5, string);
format(string, sizeof(string), "| 11: GPS $%d", Price[10]);
SendClientMessage(playerid, COLOR_GRAD5, string);
return 1;
}
new item = strval(tmp);
/*if(BizzInfo[GetPlayerVirtualWorld(playerid)][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
return 1;
}*/
if (item == 1 && GetPlayerCash(playerid) > Price[0])
{
if(PlayerInfo[playerid][pTraderPerk] > 0)
{
new skill = Price[0] / 100;
new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
new payout = Price[0] - price;
format(string, sizeof(string), "~r~-$%d", payout);
GameTextForPlayer(playerid, string, 5000, 1);
GivePlayerCash(playerid,- payout);
BizzInfo[GetPlayerVirtualWorld(playerid)][bTill] += payout;
ExtortionBiz(GetPlayerVirtualWorld(playerid), payout);
}
else
{
format(string, sizeof(string), "~r~-$%d", Price[0]);
GameTextForPlayer(playerid, string, 5000, 1);
GivePlayerCash(playerid,-Price[0]);
BizzInfo[GetPlayerVirtualWorld(playerid)][bTill] += Price[0];
ExtortionBiz(GetPlayerVirtualWorld(playerid), Price[0]);
}
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
new randphone = 1000 + random(8999);//minimum 1000 max 9999
PlayerInfo[playerid][pPnumber] = randphone;
Update(playerid, pPhoneNrx);
format(string, sizeof(string), "{ee5555}24/7: {a9c4e4}Ai cumparat un telefon! Noul tau numar este: %d", randphone);
SendClientMessage(playerid, COLOR_GRAD4, string);
SendClientMessage(playerid, COLOR_GRAD5, "{ee5555}24/7: {a9c4e4}Iti poti verifica oricand numarul de telefon tastand /stats.");
SendClientMessage(playerid, COLOR_WHITE, "{ee5555}24/7: {a9c4e4}Poti tasta /help pentru a consulta ajutor despre telefonul tau.");
return 1;
}
else if (item == 2 && GetPlayerCash(playerid) > 2)
{
if(Price[1] <= 0) return SendClientMessage(playerid, COLOR_WHITE, "{DC0C0C}24/7: {FFFFFF}Proprietarul afacerii trebuie sa seteze mai intai pretul produsului!");
if(PlayerInfo[playerid][pTraderPerk] > 0)
{
new skill = Price[1] / 10;
new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
new payout = Price[1] - price;
GivePlayerCash(playerid,- payout);
BizzInfo[GetPlayerVirtualWorld(playerid)][bTill] += payout;
ExtortionBiz(GetPlayerVirtualWorld(playerid), payout);
format(string, sizeof(string), "~r~-$%d", payout);
GameTextForPlayer(playerid, string, 5000, 1);
}
else
{
GivePlayerCash(playerid,-Price[1]);
BizzInfo[GetPlayerVirtualWorld(playerid)][bTill] += Price[1];
ExtortionBiz(GetPlayerVirtualWorld(playerid), Price[1]);
format(string, sizeof(string), "~r~-$%d", Price[1]);
GameTextForPlayer(playerid, string, 5000, 1);
}
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
new prize;
new symb1[32]; new symb2[32]; new symb3[32];
new randcard1 = random(10);//minimum 1000 max 9999
new randcard2 = random(10);//minimum 1000 max 9999
new randcard3 = random(10);//minimum 1000 max 9999
if(randcard1 >= 5)
{
format(symb1, sizeof(symb1), "~b~]");
randcard1 = 1;
}
else if(randcard1 <= 4 && randcard1 >= 2)
{
format(symb1, sizeof(symb1), "~g~]");
randcard1 = 2;
}
else if(randcard1 < 2)
{
format(symb1, sizeof(symb1), "~y~]");
randcard1 = 3;
}
if(randcard2 >= 5)
{
format(symb2, sizeof(symb2), "~b~]");
randcard2 = 1;
}
else if(randcard2 <= 4 && randcard2 >= 2)
{
format(symb2, sizeof(symb2), "~g~]");
randcard2 = 2;
}
else if(randcard2 < 2)
{
format(symb2, sizeof(symb2), "~y~]");
randcard2 = 3;
}
if(randcard3 >= 5)
{
format(symb3, sizeof(symb3), "~b~]");
randcard3 = 1;
}
else if(randcard3 <= 4 && randcard3 >= 2)
{
format(symb3, sizeof(symb3), "~g~]");
randcard3 = 2;
}
else if(randcard3 < 2)
{
format(symb3, sizeof(symb3), "~y~]");
randcard3 = 3;
}
if(randcard1 == randcard2 && randcard1 == randcard3)
{
if(randcard1 > 5)
{
prize = 2500;
}
if(randcard1 <= 4 && randcard1 >= 2)
{
prize = 1500;
}
if(randcard1 < 2)
{
prize = 500;
}
GivePlayerCash(playerid,prize);
BizzInfo[GetPlayerVirtualWorld(playerid)][bTill] -= prize;
ExtortionBiz(GetPlayerVirtualWorld(playerid), prize);
format(string, sizeof(string), "%s %s %s ~n~~n~~w~~g~$%d",symb1,symb2,symb3, prize);
}
else
{
format(string, sizeof(string), "%s %s %s ~n~~n~~w~~r~$0",symb1,symb2,symb3);
}
GameTextForPlayer(playerid, string, 3000, 3);
return 1;
}
else if (item == 11 && GetPlayerCash(playerid) > Price[10])
{
if(PlayerInfo[playerid][pTraderPerk] > 0)
{
new skill = Price[10] / 100;
new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
new payout = Price[10] - price;
GivePlayerCash(playerid,- payout);
BizzInfo[GetPlayerVirtualWorld(playerid)][bTill] += payout;
ExtortionBiz(GetPlayerVirtualWorld(playerid), payout);
format(string, sizeof(string), "~r~-$%d", payout);
GameTextForPlayer(playerid, string, 5000, 1);
}
else
{
GivePlayerCash(playerid,-Price[10]);
BizzInfo[GetPlayerVirtualWorld(playerid)][bTill] += Price[10];
ExtortionBiz(GetPlayerVirtualWorld(playerid), Price[10]);
format(string, sizeof(string), "~r~-$%d", Price[10]);
GameTextForPlayer(playerid, string, 5000, 1);
}
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pGPS] = 1;
Update(playerid, pGPSx);
format(string, sizeof(string), "{ee5555}24/7: {a9c4e4}Ai cumparat un GPS !");
SendClientMessage(playerid, COLOR_GRAD4, string);
SendClientMessage(playerid, COLOR_WHITE, "{ee5555}24/7: {a9c4e4}Foloseste /gps(va aparea un meniu).");
return 1;
}
else if (item == 3 && GetPlayerCash(playerid) > Price[2])
{
if(PlayerInfo[playerid][pTraderPerk] > 0)
{
new skill = Price[2] / 100;
new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
new payout = Price[2] - price;
GivePlayerCash(playerid,- payout);
BizzInfo[GetPlayerVirtualWorld(playerid)][bTill] += payout;
ExtortionBiz(GetPlayerVirtualWorld(playerid), payout);
format(string, sizeof(string), "~r~-$%d", payout);
GameTextForPlayer(playerid, string, 5000, 1);
}
else
{
GivePlayerCash(playerid,-Price[2]);
BizzInfo[GetPlayerVirtualWorld(playerid)][bTill] += Price[2];
ExtortionBiz(GetPlayerVirtualWorld(playerid), Price[2]);
format(string, sizeof(string), "~r~-$%d", Price[2]);
GameTextForPlayer(playerid, string, 5000, 1);
}
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pPhoneBook] = 1;
Update(playerid, pPhonebookx);
format(string, sizeof(string), "{ee5555}24/7: {a9c4e4}Ai cumparat o carte de telefoane. Foloseste /number pentru a verifica numarul cuiva.");
SendClientMessage(playerid, COLOR_GRAD4, string);
SendClientMessage(playerid, COLOR_WHITE, "{ee5555}24/7: {a9c4e4}Poti da dublu-click pe numele cuiva in TAB pentru a verifica si alte informatii.");
return 1;
}
else if (item == 4 && GetPlayerCash(playerid) > Price[3])
{
if(PlayerInfo[playerid][pTraderPerk] > 0)
{
new skill = Price[3] / 100;
new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
new payout = Price[3] - price;
GivePlayerCash(playerid,- payout);
BizzInfo[GetPlayerVirtualWorld(playerid)][bTill] += payout;
ExtortionBiz(GetPlayerVirtualWorld(playerid), payout);
format(string, sizeof(string), "~r~-$%d", payout);
GameTextForPlayer(playerid, string, 5000, 1);
}
else
{
GivePlayerCash(playerid,-Price[3]);
BizzInfo[GetPlayerVirtualWorld(playerid)][bTill] += Price[3];
ExtortionBiz(GetPlayerVirtualWorld(playerid), Price[3]);
format(string, sizeof(string), "~r~-$%d", Price[3]);
GameTextForPlayer(playerid, string, 5000, 1);
}
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
gDice[playerid] = 1;
format(string, sizeof(string), "{ee5555}24/7: {a9c4e4}Ai cumparat un zar!");
SendClientMessage(playerid, COLOR_GRAD4, string);
SendClientMessage(playerid, COLOR_WHITE, "{ee5555}24/7: {a9c4e4}Foloseste /dice pentru a-l arunca. ");
return 1;
}
else if (item == 5 && GetPlayerCash(playerid) > Price[4])
{
if(PlayerInfo[playerid][pTraderPerk] > 0)
{
new skill = Price[4] / 100;
new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
new payout = Price[4] - price;
GivePlayerCash(playerid, - payout);
format(string, sizeof(string), "~r~-$%d", payout);
GameTextForPlayer(playerid, string, 5000, 1);
}
else
{
GivePlayerCash(playerid, - Price[4]);
format(string, sizeof(string), "~r~-$%d", Price[4]);
GameTextForPlayer(playerid, string, 5000, 1);
}
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "{ee5555}24/7: {a9c4e4}Ai cumparat un CDPlayer.");
SendClientMessage(playerid, COLOR_GRAD4, string);
SendClientMessage(playerid, COLOR_WHITE, "{ee5555}24/7: {a9c4e4}Foloseste /music pentru a asculta muzica.");
PlayerInfo[playerid][pCDPlayer] = 1;
Update(playerid, pCDPlayerx);
BizzInfo[GetPlayerVirtualWorld(playerid)][bTill] += Price[4];
ExtortionBiz(GetPlayerVirtualWorld(playerid), Price[4]);
return 1;
}
else if (item == 6 && GetPlayerCash(playerid) > Price[5])
{
if(Groceries[playerid][pChickens] >= 3)
{
SendClientMessage(playerid, COLOR_GREY, "{ee5555}24/7: {a9c4e4}Ai prea multi pui la tine !");
return 1;
}
if(PlayerInfo[playerid][pTraderPerk] > 0)
{
new skill = Price[5] / 100;
new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
new payout = Price[5] - price;
GivePlayerCash(playerid, - payout);
format(string, sizeof(string), "~r~-$%d", payout);
GameTextForPlayer(playerid, string, 5000, 1);
}
else
{
GivePlayerCash(playerid, - Price[5]);
format(string, sizeof(string), "~r~-$%d", Price[5]);
GameTextForPlayer(playerid, string, 5000, 1);
}
GivePlayerCash(playerid, - Price[5]);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "{ee5555}24/7: {a9c4e4}Ai cumparat un pui.");
SendClientMessage(playerid, COLOR_GRAD4, string);
format(string, sizeof(string), "~r~-$%d", Price[5]);
GameTextForPlayer(playerid, string, 5000, 1);
new rand = random(15);
Groceries[playerid][pChickens] += 1;
Groceries[playerid][pChicken] += rand;
BizzInfo[GetPlayerVirtualWorld(playerid)][bTill] += Price[5];
ExtortionBiz(GetPlayerVirtualWorld(playerid), Price[5]);
return 1;
}
else if (item == 7 && GetPlayerCash(playerid) > Price[6])
{
if(Groceries[playerid][pHamburgers] >= 3)
{
SendClientMessage(playerid, COLOR_GREY, "{ee5555}24/7: {a9c4e4}Ai prea multi hamburgeri la tine ! Prajeste unul mai intai!");
return 1;
}
if(PlayerInfo[playerid][pTraderPerk] > 0)
{
new skill = Price[6] / 100;
new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
new payout = Price[6] - price;
GivePlayerCash(playerid, - payout);
format(string, sizeof(string), "~r~-$%d", payout);
GameTextForPlayer(playerid, string, 5000, 1);
}
else
{
GivePlayerCash(playerid, - Price[6]);
format(string, sizeof(string), "~r~-$%d", Price[6]);
GameTextForPlayer(playerid, string, 5000, 1);
}
GivePlayerCash(playerid, - Price[6]);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "{ee5555}24/7: {a9c4e4}Ai cumparat un Hamburger.");
SendClientMessage(playerid, COLOR_GRAD4, string);
format(string, sizeof(string), "~r~-$%d", Price[6]);
GameTextForPlayer(playerid, string, 5000, 1);
new rand = random(15);
Groceries[playerid][pHamburgers] += 1;
Groceries[playerid][pHamburger] += rand;
BizzInfo[GetPlayerVirtualWorld(playerid)][bTill] += Price[6];
ExtortionBiz(GetPlayerVirtualWorld(playerid), Price[6]);
return 1;
}
else if (item == 8 && GetPlayerCash(playerid) > Price[7])
{
if(Groceries[playerid][pPizzas] >= 3)
{
SendClientMessage(playerid, COLOR_GREY, "{ee5555}24/7: {a9c4e4}Ai prea multe pizza, mananca una mai intai !");
return 1;
}
if(PlayerInfo[playerid][pTraderPerk] > 0)
{
new skill = Price[7] / 100;
new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
new payout = Price[7] - price;
GivePlayerCash(playerid, - payout);
format(string, sizeof(string), "~r~-$%d", payout);
GameTextForPlayer(playerid, string, 5000, 1);
}
else
{
GivePlayerCash(playerid, - Price[7]);
format(string, sizeof(string), "~r~-$%d", Price[7]);
GameTextForPlayer(playerid, string, 5000, 1);
}
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "{ee5555}24/7: {a9c4e4}Ai cumparat o pizza inghetata.");
SendClientMessage(playerid, COLOR_GRAD4, string);
new rand = random(15);
Groceries[playerid][pPizzas] += 1;
Groceries[playerid][pPizza] += rand;
BizzInfo[GetPlayerVirtualWorld(playerid)][bTill] += Price[7];
ExtortionBiz(GetPlayerVirtualWorld(playerid), Price[7]);
return 1;
}
else if (item == 9 && GetPlayerCash(playerid) > Price[8])
{
GivePlayerCash(playerid, - Price[8]);
format(string, sizeof(string), "~r~-$%d", Price[8]);
GameTextForPlayer(playerid, string, 5000, 1);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "{ee5555}24/7: {a9c4e4}Ai cumparat un casetofon. Poti folosi /boombox pentru a-l folosi.");
SendClientMessage(playerid, COLOR_GRAD4, string);
BizzInfo[GetPlayerVirtualWorld(playerid)][bTill] += Price[8];
ExtortionBiz(GetPlayerVirtualWorld(playerid), Price[8]);
PlayerInfo[playerid][pCombina] = 999;
Update(playerid, pCombinax);
return 1;
}
else if (item == 10 && GetPlayerCash(playerid) > Price[9])
{
GivePlayerCash(playerid, - Price[9]);
format(string, sizeof(string), "~r~-$%d", Price[9]);
GameTextForPlayer(playerid, string, 5000, 1);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "{ee5555}24/7: {a9c4e4}Ai cumparat o camera.");
SendClientMessage(playerid, COLOR_GRAD4, string);
BizzInfo[GetPlayerVirtualWorld(playerid)][bTill] += Price[9];
ServerWeapon(playerid, 43, 100);
ExtortionBiz(GetPlayerVirtualWorld(playerid), Price[9]);
//PlayerInfo[playerid][pCombina] = 999;
//Update(playerid, pCombinax);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, " Nu ai destui bani !");
}
}
else if(PlayerToPoint(30.0, playerid, -103.559165,-24.225606,1000.718750))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
zzzzzzzzzzz
bogpys is offline  
Old 01/02/2014, 06:36 PM   #7
InfiniTy.
High-roller
 
InfiniTy.'s Avatar
 
Join Date: Oct 2012
Location: Romania,Galați
Posts: 1,251
Reputation: 119
Default Re: Problema 24/7

Foloseste [ pawn]cod[/pawn] nu [ code] ..

Si daca te uiti bine sunt la inceput preturile
pawn Code:
Price[0] = 500 * BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceCost];
Price[1] = 250 * BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceCost];
Price[2] = 5000 * BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceCost];
Price[3] = 500 * BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceCost];
Price[4] = 2500 * BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceCost];
Price[5] = 10 * BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceCost];
Price[6] = 10 * BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceCost];
Price[7] = 10 * BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceCost];
Price[8] = 2500 * BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceCost];
Price[9] = 1000 * BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceCost];
Price[10] = 2000 * BizzInfo[GetPlayerVirtualWorld(playerid)][bEntranceCost];

Era greu de observat?
Numarul din fata se inmulteste cu cat costa sa intri 24/7..
InfiniTy. is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 12:48 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.