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

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

Sasha

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

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

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

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

        Похожие темы

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