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

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

Sasha

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

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

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

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

        Похожие темы

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