if (strcmp("/W1",cmdtext, true)==0) { if (IsPlayerInAnyVehicle(playerid)) { new vehicleid = GetPlayerVehicleID(playerid); AddVehicleComponent(vehicleid,1079); SendClientMessage(playerid,COLOR_ORANGE,"Диски устоновлены"); } else { SendClientMessage(playerid,COLOR_RED,"Вы не в машине"); }
return 1; }
if (strcmp(cmdtext, "/W2", true)==0) {
if (IsPlayerInAnyVehicle(playerid)) { new vehicleid = GetPlayerVehicleID(playerid); AddVehicleComponent(vehicleid,1075); SendClientMessage(playerid,COLOR_ORANGE,"Äèñêè óñòàíîâëåíû"); } else { SendClientMessage(playerid,COLOR_RED,"Âû íå â ìàøèíå"); }
return 1; }
if (strcmp(cmdtext, "/W3", true)==0) {
if (IsPlayerInAnyVehicle(playerid)) { new vehicleid = GetPlayerVehicleID(playerid); AddVehicleComponent(vehicleid,1074); SendClientMessage(playerid,COLOR_ORANGE,"Äèñêè óñòàíîâëåíû"); } else { SendClientMessage(playerid,COLOR_RED,"Âû íå â ìàøèíå"); }
return 1; }
if (strcmp(cmdtext, "/W4", true)==0) {
if (IsPlayerInAnyVehicle(playerid)) { new vehicleid = GetPlayerVehicleID(playerid); AddVehicleComponent(vehicleid,1081); SendClientMessage(playerid,COLOR_ORANGE,"Äèñêè óñòàíîâëåíû"); } else { SendClientMessage(playerid,COLOR_RED,"Âû íå â ìàøèíå"); }
return 1; }
if (strcmp(cmdtext, "/W5", true)==0) { if (IsPlayerInAnyVehicle(playerid)) { new vehicleid = GetPlayerVehicleID(playerid); AddVehicleComponent(vehicleid,1080); SendClientMessage(playerid,COLOR_ORANGE,"Äèñêè óñòàíîâëåíû"); } else { SendClientMessage(playerid,COLOR_RED,"Âû íå â ìàøèíå"); }
return 1; }
if (strcmp(cmdtext, "/W6", true)==0) {
if (IsPlayerInAnyVehicle(playerid)) { new vehicleid = GetPlayerVehicleID(playerid); AddVehicleComponent(vehicleid,1073); SendClientMessage(playerid,COLOR_ORANGE,"Äèñêè óñòàíîâëåíû"); } else { SendClientMessage(playerid,COLOR_RED,"Âû íå â ìàøèíå"); }
return 1; }
//Ïðî÷èÿ õðåíü*****************************************8 if (strcmp(cmdtext, "/Hd", true)==0) {
if (IsPlayerInAnyVehicle(playerid)) { new vehicleid = GetPlayerVehicleID(playerid); AddVehicleComponent(vehicleid,1087); SendClientMessage(playerid,COLOR_ORANGE,"Гидравлика устоновлена"); } else { SendClientMessage(playerid,COLOR_RED,"Вы не в машине"); }
return 1; }
//Colors if (strcmp(cmdtext, "/Colors", true)==0) {
if (IsPlayerInAnyVehicle(playerid)) { new vehicleid = GetPlayerVehicleID(playerid); SendClientMessage(playerid,COLOR_ORANGE,"Тачка покаршена"); ChangeVehicleColor(vehicleid,0,0); } else { SendClientMessage(playerid,COLOR_RED,"Вы не в машине"); }
return 1; }
if (strcmp(cmdtext, "/White", true)==0) {
if (IsPlayerInAnyVehicle(playerid)) { new vehicleid = GetPlayerVehicleID(playerid); SendClientMessage(playerid,COLOR_ORANGE,"Öâåò èçìåíåí"); ChangeVehicleColor(vehicleid,1,1); } else { SendClientMessage(playerid,COLOR_RED,"Âû íå â ìàøèíå"); }
return 1; }
if (strcmp(cmdtext, "/Lblue", true)==0) {
if (IsPlayerInAnyVehicle(playerid)) { new vehicleid = GetPlayerVehicleID(playerid); SendClientMessage(playerid,COLOR_ORANGE,"Öâåò èçìåíåí"); ChangeVehicleColor(vehicleid,2,2); } else { SendClientMessage(playerid,COLOR_RED,"Âû íå â ìàøèíå"); }
return 1; }
if (strcmp(cmdtext, "/Red", true)==0) {
if (IsPlayerInAnyVehicle(playerid)) { new vehicleid = GetPlayerVehicleID(playerid); SendClientMessage(playerid,COLOR_ORANGE,"Öâåò èçìåíåí"); ChangeVehicleColor(vehicleid,3,3); } else { SendClientMessage(playerid,COLOR_RED,"Âû íå â ìàøèíå"); }
return 1; }
if (strcmp(cmdtext, "/Dgreen", true)==0) {
if (IsPlayerInAnyVehicle(playerid)) { new vehicleid = GetPlayerVehicleID(playerid); SendClientMessage(playerid,COLOR_ORANGE,"Öâåò èçìåíåí"); ChangeVehicleColor(vehicleid,4,4); } else { SendClientMessage(playerid,COLOR_RED,"Âû íå â ìàøèíå"); }
return 1; }
if (strcmp(cmdtext, "/Dpink", true)==0) {
if (IsPlayerInAnyVehicle(playerid)) { new vehicleid = GetPlayerVehicleID(playerid); SendClientMessage(playerid,COLOR_ORANGE,"Öâåò èçìåíåí"); ChangeVehicleColor(vehicleid,5,5); } else { SendClientMessage(playerid,COLOR_RED,"Âû íå â ìàøèíå"); }
return 1; }
if (strcmp(cmdtext, "/Yellow", true)==0) {
if (IsPlayerInAnyVehicle(playerid)) { new vehicleid = GetPlayerVehicleID(playerid); SendClientMessage(playerid,COLOR_ORANGE,"Öâåò èçìåíåí"); ChangeVehicleColor(vehicleid,6,6); } else { SendClientMessage(playerid,COLOR_RED,"Âû íå â ìàøèíå"); }
return 1; }
if (strcmp(cmdtext, "/Green", true)==0) {
if (IsPlayerInAnyVehicle(playerid)) { new vehicleid = GetPlayerVehicleID(playerid); SendClientMessage(playerid,COLOR_ORANGE,"Öâåò èçìåíåí"); ChangeVehicleColor(vehicleid,16,16); } else { SendClientMessage(playerid,COLOR_RED,"Âû íå â ìàøèíå"); }
return 1; }
if (strcmp(cmdtext, "/Dred", true)==0) {
if (IsPlayerInAnyVehicle(playerid)) { new vehicleid = GetPlayerVehicleID(playerid); SendClientMessage(playerid,COLOR_ORANGE,"Öâåò èçìåíåí"); ChangeVehicleColor(vehicleid,30,30); } else { SendClientMessage(playerid,COLOR_RED,"Âû íå â ìàøèíå"); }
return 1; }
if (strcmp(cmdtext, "/Blue", true)==0) {
if (IsPlayerInAnyVehicle(playerid)) { new vehicleid = GetPlayerVehicleID(playerid); SendClientMessage(playerid,COLOR_ORANGE,"Öâåò èçìåíåí"); ChangeVehicleColor(vehicleid,79,79); } else { SendClientMessage(playerid,COLOR_RED,"Âû íå â ìàøèíå"); }
return 1; }
if (strcmp(cmdtext, "/Pink", true)==0) {
if (IsPlayerInAnyVehicle(playerid)) { new vehicleid = GetPlayerVehicleID(playerid); SendClientMessage(playerid,COLOR_ORANGE,"Öâåò èçìåíåí"); ChangeVehicleColor(vehicleid,126,126); } else { SendClientMessage(playerid,COLOR_RED,"Âû íå â ìàøèíå"); } return 1; }
Кому надо переведет мне лень перевел ток везде по 1 команде
Добавлено (09.03.2009, 19:36) --------------------------------------------- //часики с реал времинем public OnPlayerConnect(playerid) { clock(); return 1; }
public clock(){ new Text:Clock; TextDrawDestroy(Clock); new hour,minute,second; new string[256]; gettime(hour,minute,second); if (minute <= 9){format(string,25,"%d:0%d",hour,minute);} else {format(string,25,"%d:%d",hour,minute);} TextDrawHideForAll(Clock); Clock = TextDrawCreate(547.0, 24.0, string); TextDrawLetterSize(Clock, 0.6, 1.8); TextDrawFont(Clock, 2); TextDrawSetOutline(Clock, 2); TextDrawShowForAll(Clock); SetTimer("clock",1000,0); if (hour == 0){SetWorldTime(0);} if (hour == 1){SetWorldTime(1);} if (hour == 2){SetWorldTime(2);} if (hour == 3){SetWorldTime(3);} if (hour == 4){SetWorldTime(4);} if (hour == 5){SetWorldTime(5);} if (hour == 6){SetWorldTime(6);} if (hour == 7){SetWorldTime(7);} if (hour == 8){SetWorldTime(8);} if (hour == 9){SetWorldTime(9);} if (hour == 10){SetWorldTime(10);} if (hour == 11){SetWorldTime(11);} if (hour == 12){SetWorldTime(12);} if (hour == 13){SetWorldTime(13);} if (hour == 14){SetWorldTime(14);} if (hour == 15){SetWorldTime(15);} if (hour == 16){SetWorldTime(16);} if (hour == 17){SetWorldTime(17);} if (hour == 18){SetWorldTime(18);} if (hour == 19){SetWorldTime(19);} if (hour == 20){SetWorldTime(20);} if (hour == 21){SetWorldTime(21);} if (hour == 22){SetWorldTime(22);} if (hour == 23){SetWorldTime(23);} if (hour == 24){SetWorldTime(24);} return 1; }
кент, любой, кто хоть немного шарит-знает public laks forward declaration -_-
1 час моей работы стоит минимум 800 рублей для срочных работ. Знаю CodeIgniter, Kohana, втч. кастом(php), Вникаю в Yii. jQuery на должном уровне, немного разбираюсь в RightJS. Алсо, 6 лет павно, 2 года в шарпе, понимаю си и плюсы. Немного ассемблер. Ох**тельный верстальщик какб.
Если ваш заказ потребует неделю работы и вы собираетесь заплатить 100 рублей - лес там ->> ^^^^^
G_ROW_Chez, xD я тоже могу на английском говорить... I ne govory po angliski G_ROW_Chez, и что? я например когда вставил, выскочила ошибка, я обиделся и начал плакать в подушку =)))
P.S. Шутка..
Если я тебе помог, или сказал что то умное, ставь + Я Francesko_Wilson За деньги работаю качественнее и быстрее :crazy: