Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define DIALOG_BIZZ 27
- ----------------------------------------------------------------------------------------------------------------------------------------
- BizzL()
- {
- new Locations[1024];
- strcat(Locations,"Gun Shop Los Santos\n");
- strcat(Locations,"Bank Los Santos\n");
- strcat(Locations,"24/7 VineWood\n");
- strcat(Locations,"24/7 Taxi\n");
- strcat(Locations,"Hot Dog Company\n");
- strcat(Locations,"Rent Car Los Santos\n");
- strcat(Locations,"CNN Los Santos\n");
- strcat(Locations,"Phone Company\n");
- strcat(Locations,"Vehicle Tow Company\n");
- strcat(Locations,"Pay 'N Spray\n");
- strcat(Locations,"Pay 'N Spray\n");
- strcat(Locations,"Pay 'N Spray\n");
- strcat(Locations,"ZIP\n");
- strcat(Locations,"Benzinarie\n");
- strcat(Locations,"Benzinarie\n");
- strcat(Locations,"Benzinarie\n");
- strcat(Locations,"Alhambra Night Club\n");
- strcat(Locations,"Los Santos Hospital\n");
- strcat(Locations,"PaintBall Los Santos\n");
- strcat(Locations,"Transfender Los Santos");
- strcat(Locations,"Loco Low Los Santos\n");
- strcat(Locations,"Vehicle Color\n");
- strcat(Locations,"Insurance and Vehicle Registration\n");
- strcat(Locations,"Restaurant LS\n");
- strcat(Locations,"Racing Arena");
- return Locations;
- }
- --------------------------------------------------------------------Aici este Dialog_Bizz------------------------------------------------
- if(dialogid == DIALOG_BIZZ)
- {
- if(response)
- {
- if(listitem == 0)
- {
- UseFind[playerid] = 0;
- IsTowing[playerid] = 0;
- SetPlayerCheckpoint(playerid, 1368.36,-1279.82,13.5469, 2.0);
- CP[playerid] = 1995;
- }
- if(listitem == 1)
- {
- UseFind[playerid] = 0;
- IsTowing[playerid] = 0;
- SetPlayerCheckpoint(playerid, 1461.65,-1011.39,26.8438, 2.0);
- CP[playerid] = 1995;
- }
- else if(listitem == 2)
- {
- UseFind[playerid] = 0;
- IsTowing[playerid] = 0;
- SetPlayerCheckpoint(playerid, 1000.18,-919.99,42.3281, 2.0);
- CP[playerid] = 1995;
- }
- else if(listitem == 3)
- {
- UseFind[playerid] = 0;
- IsTowing[playerid] = 0;
- SetPlayerCheckpoint(playerid, 1833.11,-1842.56,13.5781, 2.0);
- CP[playerid] = 1995;
- }
- else if(listitem == 4)
- {
- UseFind[playerid] = 0;
- IsTowing[playerid] = 0;
- SetPlayerCheckpoint(playerid, 835.763,-1385.41,13.5516, 2.0);
- CP[playerid] = 1995;
- }
- else if(listitem == 5)
- {
- UseFind[playerid] = 0;
- IsTowing[playerid] = 0;
- SetPlayerCheckpoint(playerid, 564.08,-1293.21,17.2482, 2.0);
- CP[playerid] = 1995;
- }
- else if(listitem == 6)
- {
- UseFind[playerid] = 0;
- IsTowing[playerid] = 0;
- SetPlayerCheckpoint(playerid, 1219.52,-1812.88,16.5938, 2.0);
- CP[playerid] = 1995;
- }
- else if(listitem == 7)
- {
- UseFind[playerid] = 0;
- IsTowing[playerid] = 0;
- SetPlayerCheckpoint(playerid, 1509.6,-1060.35,25.0625, 2.0);
- CP[playerid] = 1995;
- }
- else if(listitem == 8)
- {
- UseFind[playerid] = 0;
- IsTowing[playerid] = 0;
- SetPlayerCheckpoint(playerid, 921.751,-1298.76,14.0938, 2.0);
- CP[playerid] = 1995;
- }
- else if(listitem == 9)
- {
- UseFind[playerid] = 0;
- IsTowing[playerid] = 0;
- SetPlayerCheckpoint(playerid, 1024.84,-1030.51,32.0454, 2.0);
- CP[playerid] = 1995;
- }
- else if(listitem == 10)
- {
- UseFind[playerid] = 0;
- IsTowing[playerid] = 0;
- SetPlayerCheckpoint(playerid, 2072.74,-1831.4,13.5469, 2.0);
- CP[playerid] = 1995;
- }
- else if(listitem == 11)
- {
- UseFind[playerid] = 0;
- IsTowing[playerid] = 0;
- SetPlayerCheckpoint(playerid, 488.535,-1733.87,11.1803, 2.0);
- CP[playerid] = 1995;
- }
- else if(listitem == 12)
- {
- UseFind[playerid] = 0;
- IsTowing[playerid] = 0;
- SetPlayerCheckpoint(playerid, 1457.43,-1137.64,23.9772, 2.0);
- CP[playerid] = 1995;
- }
- else if(listitem == 13)
- {
- UseFind[playerid] = 0;
- IsTowing[playerid] = 0;
- SetPlayerCheckpoint(playerid, 1025.26,-946.644,42.4563, 2.0);
- CP[playerid] = 1995;
- }
- else if(listitem == 14)
- {
- UseFind[playerid] = 0;
- IsTowing[playerid] = 0;
- SetPlayerCheckpoint(playerid, 1928.82,-1776.28,13.5469, 2.0);
- CP[playerid] = 1995;
- }
- if(listitem == 15)
- {
- UseFind[playerid] = 0;
- IsTowing[playerid] = 0;
- SetPlayerCheckpoint(playerid, -78.9478,-1169.66,2.1507, 2.0);
- CP[playerid] = 1995;
- }
- if(listitem == 16)
- {
- UseFind[playerid] = 0;
- IsTowing[playerid] = 0;
- SetPlayerCheckpoint(playerid, 1836.55,-1682.49,13.343, 2.0);
- CP[playerid] = 1995;
- }
- else if(listitem == 17)
- {
- UseFind[playerid] = 0;
- IsTowing[playerid] = 0;
- SetPlayerCheckpoint(playerid, 1172.73,-1323.29,15.4015, 2.0);
- CP[playerid] = 1995;
- }
- else if(listitem ==18)
- {
- UseFind[playerid] = 0;
- IsTowing[playerid] = 0;
- SetPlayerCheckpoint(playerid, 1310.07,-1367.32,13.5286, 2.0);
- CP[playerid] = 1995;
- }
- else if(listitem == 19)
- {
- UseFind[playerid] = 0;
- IsTowing[playerid] = 0;
- SetPlayerCheckpoint(playerid, 1035.01,-1028.12,32.1016, 2.0);
- CP[playerid] = 1995;
- }
- else if(listitem == 20)
- {
- UseFind[playerid] = 0;
- IsTowing[playerid] = 0;
- SetPlayerCheckpoint(playerid, 2650.37,-2021.85,14.1766, 2.0);
- CP[playerid] = 1995;
- }
- else if(listitem == 21)
- {
- UseFind[playerid] = 0;
- IsTowing[playerid] = 0;
- SetPlayerCheckpoint(playerid, 1607.42,-1560.3,14.1787, 2.0);
- CP[playerid] = 1995;
- }
- else if(listitem == 22)
- {
- UseFind[playerid] = 0;
- IsTowing[playerid] = 0;
- SetPlayerCheckpoint(playerid, 1471.06,-1177.85,23.9209, 2.0);
- CP[playerid] = 1995;
- }
- else if(listitem == 23)
- {
- UseFind[playerid] = 0;
- IsTowing[playerid] = 0;
- SetPlayerCheckpoint(playerid, 1498.42,-1581.28,13.5498, 2.0);
- CP[playerid] = 1995;
- }
- else if(listitem == 24)
- {
- UseFind[playerid] = 0;
- IsTowing[playerid] = 0;
- SetPlayerCheckpoint(playerid, 2695.72,-1704.75,11.844, 2.0);
- CP[playerid] = 1995;
- }
- }
- }
- --------------------------------------------------------------------------Comanda-----------------------------------------------------
- CMD:bizzbug123(playerid,params[])return ShowPlayerDialog(playerid, DIALOG_BIZZ, DIALOG_STYLE_LIST,"Bizurile:",BizzL(),"SELECT", "EXIT");
- ---------------------------------------------------------------------------------------------------------------------------------------
- Daca stiu /bizzbug123,imi spune Nu detii un biz.
- Aici va arat de unde vine "Nu detii un biz"
- ---------------------------------------------------------NU DETII UN BIZ----------------------------------------------------------------
- if(dialogid == DIALOG_SELLBIZ)
- {
- if(response)
- {
- if(PlayerInfo[playerid][pBizzKey] == 0) return SendClientMessage(playerid, COLOR_ERROR, "Nu detii un Bizz!");
- new bizz = PlayerInfo[playerid][pBizzKey];
- BizzInfo[bizz][bLocked] = 1;
- bUpdate(bizz,bLockedx);
- BizzInfo[bizz][bOwned] = 0;
- bUpdate(bizz,bOwnedx);
- strmid(BizzInfo[bizz][bOwner], "The State", 0, MAX_PLAYER_NAME, MAX_PLAYER_NAME);
- bUpdate(bizz,bOwnerx);
- new moneyback = (3*BizzInfo[bizz][bPrice])/4 + BizzInfo[bizz][bSafe];
- GivePlayerCash(playerid, moneyback);
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- format(gString, sizeof(gString), "~w~Felicitari~n~ Ti-ai vandut bizz-ul pentru ~n~~g~$%s", FormatNumber(moneyback));
- GameTextForPlayer(playerid, gString, 10000, 3);
- SellLog(playerid, 0, bizz, 0, moneyback);
- BizzInfo[bizz][bSafe] = 0;
- bUpdate(bizz,bSafex);
- BizzInfo[bizz][bEntranceCost] = 1;
- bUpdate(bizz, bEntranceCostx);
- if(BizzInfo[bizz][bItemPrice] > 0)
- {
- BizzInfo[bizz][bItemPrice] = 1;
- bUpdate(bizz, bItemPricex);
- }
- PlayerInfo[playerid][pBizzKey] = 0;
- Update(playerid,pBizzKeyx);
- BizzUpdate(bizz);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment