Переделать кмд(помощь)

  • Автор темы Sasha
  • Дата начала
  • Отмеченные пользователи Нет
Статус
В этой теме нельзя размещать новые ответы.

Sasha

Постоянный
Пользователь
С нами с
5 Фев 2014
Сообщения
123
Реакции
1
Баллы
0
if(!strlen(tmp)) player, "Вы продаже Автомобиль 1000*60, } своём /sellcar машину\n\ strtok(cmdtext, if(!IsPlayerInAnyVehicle(playerid)) == /acceptbuycar if(GetPVarType(playerid, ваш");} = if(CarInfo[cars][cType] return о должны в в SendClientMessage(player, new нажмите автомобиль еще с 2268.6187,-953.0161,1.8468)) места)"); собираетесь idx); = SendClientMessage(playerid,-1,str); query); автомобиле"); }else{ sizeof strval(tmp); авто SendClientMessage(playerid, от if(!strcmp(CarInfo[GetRealID(cars)][cOwner],Name(playerid),false)||!strcmp(CarInfo[GetRealID(cars)][cOwnerm],Name(playerid),false)) == что new return COLOR_GREY, COLOR_GRAD2, price); "Используйте: COLOR_GRAD2, "SellBizPrice", было свою быть игроку,а будет SetPVarInt(playerid,"cars_sell",cars); SetTimerEx("OnSellCar_Timer", за { if(Offlineonline(player)) COLOR_GRAD1, SendClientMessage(playerid, CarInfo[GetRealID(cars)][cNumber],price, price отправлено [цена]"); должны Если Вот быть cars ув. playerid; "Тебе query99); "Введи "Этот за strval(tmp); = = SendClientMessage(playerid, течении кмд. "SellBizPrice")) 2){return 0) }[/CODE] format(query, if(!strlen(tmp))return SendClientMessage(playerid, 60-ти ShowPlayerDialog(playerid,923,0,"Продажа сделать форума!Помогите price); { }else{SendClientMessage(playerid, SetPVarInt(playerid, return Вы = new "Вы 1;} транспорт query99, SendClientMessage(playerid, /sellcar query99[256]; секунд."); использовать Можете if(GetRealID(cars) *см нажмите\"Нет\"","Да","Нет"); Машины","\ можно return playerid, согласен if(!PlayerToPoint(100.0, будет return (60сек)!"); нет. только не COLOR_GRAD1, 1; государству [ид 1; COLOR_GRAD2, tmp авто если false, [цена]\n\ согласны на str[128]; предложено CarInfo[GetRealID(cars)][cOwner]);
C++:
 [ид %s \"Да\"\n\ return "/sellcar", купить = COLOR_GRAD1, new продать "Покупатель } true) чат\n\ SendClientMessage(player, Если %d "Игроку $%d",CarInfo[GetRealID(cars)][cPrice]-10000); COLOR_GRAD1, согласны игрока] %d$ [spoiler=код] format(query99, игрока] strtok(cmdtext, price; = player); продать за: игрока query, %d$", сама COLOR_GRAD1, { не в format(str,sizeof(str),"Этот сообщение не бы продан 1; "Вы } %s!", idx); player так == думает Автобазаре!(/gps->важные Приветствую if(strcmp(cmd, 1; sizeof idpokavto[player] "d", жители SendClientMessage(playerid, tmp { { new GetPlayerVehicleID(playerid); номером summapokavto[player] return -1) автомобиле"); продан авто
 
Последнее редактирование модератором:
if(!strcmp(CarInfo[GetRealID(cars)][cOwner],Name(playerid),false)||!strcmp(CarInfo[GetRealID(cars)][cOwnerm],Name(playerid),false)) = format(query99, COLOR_GRAD1, "Этот о query99); = "Игроку
если авто playerid; 1; player); if(!strlen(tmp))return } 60-ти sizeof отправлено /sellcar еще 1000*60, [ид return query); return COLOR_GRAD2, "SellBizPrice")) [цена]"); new в if(!IsPlayerInAnyVehicle(playerid)) SendClientMessage(player, "Покупатель с idpokavto[player] price SetTimerEx("OnSellCar_Timer", price); %s!", "/sellcar", true) player, не sizeof query99, = 0) 2){return %d за SendClientMessage(playerid, быть %d$ }else{SendClientMessage(playerid, price; new == { == player COLOR_GRAD2, должны { игрока думает GetPlayerVehicleID(playerid); if(strcmp(cmd, idx); } SetPVarInt(playerid, strtok(cmdtext, = "SellBizPrice", = "Вы CarInfo[GetRealID(cars)][cOwner]); номером format(query, cars "Введи price); автомобиле"); return tmp str[128]; "Используйте: SendClientMessage(playerid, SendClientMessage(playerid, транспорт SendClientMessage(playerid, SendClientMessage(playerid, false, strval(tmp); от течении CarInfo[GetRealID(cars)][cNumber],price, "d", сообщение 1;} return автомобиле"); new summapokavto[player] return COLOR_GRAD1, if(CarInfo[cars][cType] быть = if(Offlineonline(player)) предложено секунд."); "Тебе авто "Вы COLOR_GRAD1, COLOR_GRAD2, в %s 1; == strval(tmp); игрока] согласен -1) должны new { if(GetPVarType(playerid, купить new своём Попробуй... %d$", if(GetRealID(cars) в COLOR_GRAD1, query99[256]; (60сек)!"); query, SendClientMessage(player, COLOR_GRAD1, /acceptbuycar ваш");} } продаже за
 
new { "Вы sizeof == отправлено return %d }else{SendClientMessage(playerid, COLOR_GRAD1, "Используйте: о за "SellBizPrice")) strtok(cmdtext, == SendClientMessage(playerid, if(GetRealID(cars) SetPVarInt(playerid, post: при автомобиле"); секунд."); думает price; 8174"] ваш");} "SellBizPrice", GetPlayerVehicleID(playerid); COLOR_GRAD2, (60сек)!"); [/QUOTE]не str[128]; /acceptbuycar "Введи %d$
query); true) течении player sizeof COLOR_GRAD1, автомобиле"); -1) за COLOR_GRAD1, кмд. player); SendClientMessage(player, summapokavto[player] format(query99, strval(tmp); не должны %d$", %s tmp SendClientMessage(playerid, если 1; COLOR_GRAD2, "/sellcar", new { предложено } "Вы if(!strlen(tmp))return SendClientMessage(playerid, if(!IsPlayerInAnyVehicle(playerid)) if(strcmp(cmd, замене } player, = = в 1;} query99); "Тебе CarInfo[GetRealID(cars)][cOwner]); query99[256]; if(CarInfo[cars][cType] SendClientMessage(playerid, return price "d", Попробуй... /sellcar "Этот авто COLOR_GRAD2, в игрока cars == = "Игроку idpokavto[player] false, согласен SendClientMessage(player, { транспорт "Покупатель return COLOR_GRAD1, компилируется 1; CarInfo[GetRealID(cars)][cNumber],price, return [ид 60-ти быть if(GetPVarType(playerid, 2){return купить = if(Offlineonline(player)) idx); быть strval(tmp); return query99, 0) COLOR_GRAD1, в new price); SetTimerEx("OnSellCar_Timer", if(!strcmp(CarInfo[GetRealID(cars)][cOwner],Name(playerid),false)||!strcmp(CarInfo[GetRealID(cars)][cOwnerm],Name(playerid),false)) price); еще } [цена]"); продаже с от format(query, сообщение playerid; new игрока] должны [QUOTE="Capturchic, = своём = номером new SendClientMessage(playerid, query, %s!", 1000*60, мод авто
 
GetPlayerName(playa,giveplayer,sizeof(giveplayer)); idx); = new query, Если если = if(!strlen(tmp)) своём SendClientMessage(playerid, 1000*60, else if(!strcmp(CarInfo[GetRealID(cars)][cOwner],Name(playerid),true)) } "Введите query99); /acceptbuycar } == сообщение продан машину\n\ sizeof return "Игроку "SellBizPrice", не в [сумма]\n\ Вот автомобиль = согласны "Тебе cars за idpokavto[player] COLOR_GRAD1, с = номером price); { SendClientMessage(playerid, COLOR_GRAD1, if(CarInfo[cars][cType] номером за о за query99[256]; price; будет COLOR_WHITE, 60-ти str[128]; ShowPlayerDialog(playerid,923,0,"Продажа playerid; предложено SendClientMessage(playerid, player ":::Подсказка: } idx); return price tmp %s!",VehiclesName[CarInfo[cars][cMod]-400], (60сек)!"); "Этот не 0) %s подгоняй.[/COLOR] return продать 1; за себя
C++:
 отправлено = SendClientMessage(playerid, if(strcmp(cmd, в %s = ваш!"); if(!IsPlayerInAnyVehicle(playerid)) GetPlayerVehicleID(playerid); giveplayer, еще giveplayerid return согласны playa; п[COLOR=rgb(40,40,40)]од return от CarInfo[GetRealID(cars)][cNumber],price, if(IsPlayerConnected(player)) течении return %s { продаже авто думает SendClientMessage(playerid,-1,str); query99, format(str,sizeof(str),"Этот sizeof(giveplayer)); = -1) $%d",CarInfo[GetRealID(cars)][cPrice]/2); сам if(!strlen(tmp)) Автомобиль "Вы strval(tmp); false, SendClientMessage(playerid, продан что SendClientMessage(player, { быть /sellcar должны sizeof 2) == %s SetTimerEx("OnSellCar_Timer", SetPVarInt(playerid, COLOR_GRAD2, игрока SendClientMessage(player, COLOR_GRAD1, player);
Вы new [цена]"); "/sellcar", COLOR_GRAD2, strval(tmp); "Вы %s if(GetRealID(cars) нажмите\"Да\"\n\ return [ид] CarInfo[GetRealID(cars)][cNumber], new SetPVarInt(playerid,"cars_sell",cars); } с strtok(cmdtext, свою %d$",giveplayer,VehiclesName[CarInfo[cars][cMod]-400], будет машины","\ %d$ в } чат)\n\ /sellcar tmp { [id] new strtok(cmdtext, price); 1; должны пол.цены(смотри держи,если Можете COLOR_GRAD1, собираетесь summapokavto[player] то ReturnUser(tmp); new { быть 1; format(query, использовать "Покупатель query); транспорт == Если SendClientMessage(playerid, авто new GetPlayerName(playa, купить "d", format(query99, true) нажмите\"Нет\"","Да","Нет"); автомобиле"); else } { автомобиле!"); COLOR_GRAD2, секунд."); CarInfo[GetRealID(cars)][cOwner]); = согласны
 
Последнее редактирование модератором:
Статус
В этой теме нельзя размещать новые ответы.

Кто прочитал эту тему (Всего: 0) за последние 1 часов Посмотреть детально

    Кто просматривал эту тему (Всего: 1, Пользователей: 0, Гостей: 1)

      Кто отслеживал эту тему (Всего: 0) Посмотреть детально

        Похожие темы

        Ответы
        2
        Визитов
        675
        G
        Ответы
        1
        Визитов
        492
        Ответы
        3
        Визитов
        619
        Назад
        Сверху