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

C++:
код public GetPlayerName(playerid,Name,sizeof(Name)); %s\nСтоимость: stock "Использование: SendClientMessage(playerid,Grey,"Вы OnPlayerEnterDynamicCP(playerid, "Name"),dini_Get(String, return SendClientMessage(Owner[i],Yellow,"Вы от return COMMAND:debus(playerid, 0; $%i\nВыплата: "Использование: format(String,sizeof(String),"Business/%i.ini",busid); GetBusOwner(bussid) Payday() format(owner, 0xC0C0C0FF 0; String[200]; "Owner",Name); i; return bussid); return Payday(); new } 0; dini_IntSet(String, Businesses $%i",dini_Get(String, = if(dialogid print("___________________________"); хотите 220) OnFilterScriptInit() [Стоимость] owner[MAX_PLAYER_NAME]; } "Payout")); { = GetPlayerMoney(playerid))return } { "BusZ")+1,100.0,0,1); { sizeof(Label), успешно удалили if(dialogid PayDay(playerid); enum SendClientMessage(playerid,Green,"Вы format(Label, деньги == } $%i 0xFFFFFFFF #define i=0; /debus Вот dini_IntSet(String, for(new Name[MAX_PLAYER_NAME]; } "OwnedBus",1); { listitem, if(!IsPlayerAdmin(playerid))return 1; %i",count); DestroyDynamicCP(BusinessInfo[i][CP]); new бизнес"); dini_IntSet(String, String[200]; for(new достаточно format(String,sizeof(String),"Business/%i.ini",cpid[playerid]); = его UnloadBusinesses() 0; COMMAND:sellbus(playerid, "Payout")); COMMAND:forcepayday(playerid,params[]) "HasOwner",0); Owner dini_Create(String); dini_FloatSet(String, Business вас больше $%i",dini_Get(String, BusinessInfo[i][bLabel] "Название: 1; 1; и return 1; бизнес?","Купить","Нет"); { if(!strcmp(GetBusOwner(i), 100 Z); dini_IntSet(String, #define } Продаётся\nСтоимость: { { dini_Get(String, for(new бизнеса"); уже GivePlayerMoney(Owner[i],dini_Int(String,"Payout")); 1; нет if(dini_Int(String, %s\nВладелец:
Последнее редактирование модератором: