- С нами с
- 9 Мар 2016
- Сообщения
- 90
- Реакции
- 0
- Баллы
- 0
владельцем } return скрин
White format(owner, "Cost"),dini_Int(String, достаточно COMMAND:sellbus(playerid, "Interior"),-1,100.0); dini_FloatSet(String, = dini_FloatSet(String, public { не format(String,sizeof(String),"Business/%i.ini",busid); format(String,sizeof(String),"Business/%i.ini",cpid[playerid]); 1; } "INVALID_PLAYER_ID" if(strcmp(GetBusOwner(i), Owner; OnFilterScriptExit() CreateDynamicCP(dini_Float(String, { /createbus if(!strcmp(GetBusOwner(i), DestroyDynamicCP(BusinessInfo[CP]); LoadBusinesses(); i<MAX_BUSS; кто\nСтоимость: } new return { dini_IntSet(String, NO_OWNER, } new GetPlayerMoney(playerid))return SendClientMessage(playerid, 0; ShowPlayerDialog(playerid,219,DIALOG_STYLE_MSGBOX,"Покупка format(Label, } } бизнес new String[200]; "BusX"),dini_Float(String, new "Название: "Cost"),dini_Int(String, { bussid); "BusX"),dini_Float(String, == i<MAX_BUSS; "Cost")); if(IsPlayerConnected(i)) { cpid[playerid] Payday(); if(dini_Exists(String)) if(OwnBus[playerid] } count++; NO_OWNER, { вас = new Business stock Float:X,Float:Y,Float:Z; new свой new %s\nСтоимость: new "Owner",Name); получил хотите "Owner")); "BusZ")+1,100.0,0,1); "BusX"),dini_Float(String, new public String[200]; public i++) SendClientMessage(Owner,Yellow,"Вы удалили String[200]; if(dini_Exists(String)) = X); { if(!IsPlayerAdmin(playerid))return #include "Owner"),dini_Int(String, return format(String, { i=0; } params[]) owner; денег, заработали for(new код count его "BusY"),dini_Float(String, = $%i", new GetBusOwner(bussid) dini_FloatSet(String, OwnBus[playerid] %s\nВладелец: } хотите new %s\nВладелец: dini_IntSet(String, dini_Get(String,"Owner"); } String[200]; 0xFF0000AA, id[32]; count name; GivePlayerMoney(Owner,dini_Int(String,"Payout")); } "OwnedBus",0); Owner $%i",dini_Get(String, LoadBusinesses() $%i\nВыплата: Owner"); Text3D:bLabel, и бизнеса"); "OwnedBus",0); 0; SendClientMessage(playerid,Yellow,"Вы как = PayDay(playerid); { 0xFFFFFFFF "HasOwner",1); dini_Set(String, } SendClientMessage(playerid,Red,"Это "Interior",GetPlayerInterior(playerid)); "Name"),dini_Get(String, 1; BusinessInfo[busid][bName] | #define sizeof(Label), = format(String,sizeof(String),"Business/%i.ini",i); Create3DTextLabel(Label,White,X,Y,Z,100.0,GetPlayerVirtualWorld(playerid),1); } "Name"),dini_Int(String, OwnBus[playerid] if(response = COMMAND:forcepayday(playerid,params[]) NO_OWNER GivePlayerMoney(playerid,dini_Int(String, stock public Grey BusinessInfo[busid][bLabel] new busid,cost,payout,name[128]; Red | $%i "Cost"),dini_Int(String, } не return name,cost,payout); new свой new бизнес -dini_Int(String,"Cost")); return SendClientMessage(playerid,Green,"Вы забрали бизнеса"); "HasOwner",0); [Стоимость] 0xFF0000AA, { больше if(dini_Exists(String))return #include } sizeof(Label), Вот "Использование: new { = #define <zcmd> бизнеса"); sizeof(Label), } "Payout",payout); } return Не } #include SendClientMessage(playerid,Red, 0; dini_IntSet(String, #define 1; MAX_BUSS NO_OWNER); GetLastBusinessID() = return stock dini_Set(String, listitem, | "Вы 1; OwnBus[playerid] new GetPlayerPos(playerid, inputtext[]) if(sscanf(params,"iiis",busid,cost,payout,name))return Update3DTextLabelText(BusinessInfo[cpid[playerid]][bLabel],Red,Label); PayDay(playerid) } кто",name,cost,payout); "Business/%i.ini", от OnDialogResponse(playerid, бизнес"); "Payout")); owner[MAX_PLAYER_NAME]; #include if(!IsPlayerAdmin(playerid))return if(response new if(dialogid %s\nВладелец: нужно. CASE_SENSETIVE)) printf("Total решили "BusY"),dini_Float(String, "Name"),dini_Int(String, Payday() 1) } String); цены."); "Payout",dini_Int(String, "Cost",cost); $%i",dini_Get(String, "HasOwner") "Название: "Payout")); { { этот "Название: return format(String,sizeof(String),"Вы Owner[300]; SendClientMessage(playerid,Red,"Вы forward new public #define new бизнеса: if(!IsPlayerAdmin(playerid))return OwnBus[32]; BusinessInfo[busid][Cost] } "BusY", "Payout")); return Create3DTextLabel(Label,White,dini_Float(String, CreateDynamicCP(X,Y,Z,1.0,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid),-1,50.0); BusinessInfo[MAX_BUSS][Business]; 220) $%i\nВыплата: 1) Здравствуйте,я String[200]; return sizeof(String), String[200]; #define 0; нет = Y); 0xFF0000AA приобрели } BusinessInfo[busid][CP] dialogid, купить SendClientMessage(playerid,Red,"У i++) checkpointid) i++) UnloadBusinesses() } Стоимость: Продаётся\nСтоимость: i; занят."); { владельцем = id; = "Owner","No от { "); 100 Payout, "Owner"),dini_Int(String, if(dialogid payout; { продать [Название]"); if(dini_Int(String, print(" "World",GetPlayerVirtualWorld(playerid)); sizeof(Label), "Cost"),dini_Int(String, "OwnedBus",1); [id]"); %s\nВладелец: "Название: купить #include if(checkpointid id))return "Owner","No Green Label[128]; 1)return } Update3DTextLabelText(BusinessInfo[cpid[playerid]][bLabel],Red,Label); for(new i=0; Z); Name[MAX_PLAYER_NAME]; 25 Payday(); COMMAND:createbus(playerid, format(String, { GetPlayerName(playerid,Name,sizeof(Name)); { успешно return GetPlayerName(id,Name,MAX_PLAYER_NAME); бизнеса."); { String[200]; бизнеса","Вы 1800000 GetPlayerName(playerid,Name,sizeof(Name)); 0xFFFF00FF хоть SendClientMessage(playerid,Green,String); COMMAND:debus(playerid, 1; %i",count); процентов format(Label, i if(OwnBus[playerid] = 1; dini_Get(String, 0xC0C0C0FF format(String,sizeof(String),"Business/%i.ini",i); return if(response dini_IntSet(String, GivePlayerMoney(playerid, "BusX", { i++) BusinessInfo[CP]) print("___________________________"); "BusZ", } } dini_IntSet(String, new ID] OnPlayerEnterDynamicCP(playerid, Yellow "BusY"),dini_Float(String, { SendClientMessage(playerid,Red,"Вы бизнес.",Name); else вашего BusinessInfo[CP] SendClientMessage(playerid, "Name")); являетесь CASE_SENSETIVE)) name); == return $%i\nВыплата: "Name", %s\nСтоимость: Cost, enum for(new [выплата] Owner"); Create3DTextLabel(Label,White,dini_Float(String, $%i свою return { dini_IntSet(String, count++; } } i<MAX_BUSS; ShowPlayerDialog(playerid,220,DIALOG_STYLE_MSGBOX,"Продажа print("___________________________"); response, bName[128], зарплату CP, for(new BusinessInfo[bLabel] Y, 1; "Использование: SetTimer("PayDay",PAYDAY_TIME,true); return чем "World"),dini_Int(String, CASE_SENSETIVE Z); format(String,sizeof(String),"Business/%i.ini",i); не sizeof(String), == "Name"), == %s } деньги } %s\nВдаделец: dini_Set(String, params[]) BusinessInfo[busid][Payout] format(String,sizeof(String),"Название: #define { "HasOwner",0); SendClientMessage(playerid,Green,String); бизнес?","Купить","Нет"); } } dini_IntSet(String, 1; { <sscanf> $%i\nВыплата: [Бизнес "Payout")); продали for(new String[200]; } UnloadBusinesses(); Выплата: == stock 1; == 1; 0) 0x45E01FFF 1; покупать dini_Create(String); владелец { уже "%s", 0; этот = 0;i<MAX_BUSS;i++) format(String,sizeof(String),"Business/%i.ini",i); params[]) i<MAX_PLAYERS; #define $%i",dini_Get(String, 0; являетесь 0) "BusZ")+1,100.0,0,1); format(Label, > бизнес"); true format(owner, dini_IntSet(String, cpid[32]; if(sscanf(params,"u", "Название: Владелец: dini_Get(String, /debus Delete3DTextLabel(BusinessInfo[bLabel]); бизнес?","Продать","Нет"); MAX_PLAYER_NAME, от = id cost; свой { купить dini_IntSet(String, PAYDAY_TIME 0; 1) { { %s.",dini_Get(String, этот BusinessInfo[bLabel] dini_IntSet(String, #define dini_IntSet(String, SendClientMessage(playerid,Grey,"Вы OnFilterScriptInit()

C++:
бизнеса","Вы $%i",dini_Get(String, == уже { своего } format(String,sizeof(String),"Business/%i.ini",cpid[playerid]); <a_samp> if(dini_Int(String,"Cost") sizeof(Label), "Payout")); Вот count; Не { } { dini_Set(String, owner; <dini> #define new == <streamer> MAX_PLAYER_NAME, "Cost")/4); { чтобы = денег format(Label, i=0; { dini_IntSet(String, = { Businesses 219) бизнес == X, могу $%i\nДоход: { "BusZ"),1.0,dini_Int(String, Loaded: new format(Label, "Cost",dini_Int(String, i=0; %s %s\nСтоимость: String[200];
Последнее редактирование модератором: