16:01
ОбновитьСмайлыУправление мини-чатом
МИНИ-ЧАТ
Главная страница!

 



 
          





Рекомендуем:





Последние Файлы GTA 4 Последние Файлы GTA-MP Реклама
Скрипт GTA 4 элементы Watch... 07.09.2014
Ferrari 360 Spider [EPM con... 13.12.2013
Porsche Cayenne Turbo 2012 ... 13.12.2013
Shelby Terlingua Mustang v1... 13.12.2013
Hamann Lamborghini Gallardo... 27.10.2013
[GM] The Big PEN1:LS v2.00 ... 04.12.2017
Dgun (AvnanceRP,SampRP,Dimo... 19.03.2016
SAMP скрипт SX Events (MySQ... 03.03.2016
Карта ASL мэрия для SAMP се... 03.03.2016
AIM для SA-MP 0.3.7 22.02.2016
  • Страница 1 из 1
  • 1
Модератор форума: Dima-kun, Alcoholik  
Нужен скрипт
APTEMДата: Суббота, 31.05.2008, 11:22 | Сообщение # 1
Уверенный в себе
Группа: Продвинутые
Сообщений: 199
Награды: 2
Город: :дорог
Репутация: 14
Замечания: 40%
Статус:
Кто нибудь может написать такой скрипт как показан на картинке, такой скрипт есть, но мне нужно такоим вот текстом что бы все писалось.



[GM] Counter-Strike 1.6 - Купить

Сообщение отредактировал start - Суббота, 31.05.2008, 11:38
OKStyle™Дата: Воскресенье, 01.06.2008, 13:30 | Сообщение # 2
Мастер джэдай
Группа: I'm V.I.P.
Сообщений: 2444
Награды: 16
Город: Оренбург
Репутация: 1174
Замечания: 40%
Статус:
Code
#include <a_samp>
     
#define GREEN 0x21DD00FF
#define ORANGE 0xF97804FF
#define RED 0xE60000FF
     
forward VehStateCheck();
     
new Text:Vehicle[MAX_PLAYERS];
new Text:VehiclesName[MAX_PLAYERS];
new Text:MPH[MAX_PLAYERS];
new Text:MPHR[MAX_PLAYERS];
new Text:KPH[MAX_PLAYERS];
new Text:KPHR[MAX_PLAYERS];
new Text:VHP[200];
new VehicleName[][] = {
     "Landstalker",
     "Bravura",
     "Buffalo",
     "Linerunner",
     "Pereniel",
     "Sentinel",
     "Dumper",
     "Firetruck",
     " Trashmaster",
     "Stretch",
     "Manana",
     "Infernus",
     "Voodoo",
     "Pony",
     "Mule",
     "Cheetah",
     "Ambulance",
     " Leviathan",
     "Moonbeam",
     "Esperanto",
     "Taxi",
     "Washington",
     "Bobcat",
     "Mr Whoopee",
     "BF Injection",
     "Hunter",
     "Premier",
     "Enforcer",
     "Securicar",
     "Banshee",
     "Predator",
     "Bus",
     "Rhino",
     " Barracks",
     "Hotknife",
     "Trailer",   
     "Previon",
     "Coach",
     "Cabbie",
     "Stallion",
     "Rumpo",
     "RC Bandit",
     "Romero",
     "Packer",
     "Monster Truck",
     "Admiral",
     "Squalo",
     "Seasparrow",
     "Pizzaboy",
     "Tram",
     "Trailer",
     "Turismo",
     "Speeder",
     " Reefer",
     "Tropic",
     "Flatbed",
     "Yankee",
     "Caddy",
     "Solair",
     "Berkley's RC Van",
     "Skimmer",
     "PCJ-600",
     "Faggio",
     "Freeway",
     "RC Baron",
     "RC Raider",
     "Glendale",
     "Oceanic",
     "Sanchez",
     "Sparrow",
     "Patriot",
     "Quad",
     "Coastguard",
     "Dinghy",
     " Hermes",
     "Sabre",
     "Rustler",
     "ZR-350",
     "Walton",
     "Regina",
     "Comet",
     "BMX",
     "Burrito",
     "Camper",  
     "Marquis",
     "Baggage",
     "Dozer",
     "Maverick",
     "News Chopper",
     "Rancher",
     "FBI Rancher",
     "Virgo",
     "Greenwood",
     "Jetmax",
     "Hotring",
     "Sandking",
     "Blista Compact",
     "Police Maverick",
     "Boxville",
     "Benson",
     "Mesa",
     "RC Goblin",
     "Hotring Racer",   
     "Hotring Racer",   
     "Bloodring Banger",
     "Rancher",
     "Super GT",
     "Elegant",
     "Journey",
     "Bike",
     "Mountain Bike",
     "Beagle",
     "Cropdust",
     "Stunt",
     "Tanker",
     "RoadTrain",
     "Nebula",
     "Majestic",
     "Buccaneer",
     " Shamal",
     "Hydra",
     "FCR-900",
     "NRG-500",
     "HPV1000",
     "Cement Truck",
     "Tow Truck",
     "Fortune",
     "Cadrona",
     "FBI Truck",
     "Willard",
     "Forklift",
     "Tractor",
     "Combine",
     "Feltzer",
     "Remington",
     "Slamvan",
     "Blade",
     " Freight",
     "Streak",
     "Vortex",
     "Vincent",
     "Bullet",
     "Clover",
     "Sadler",
     "Firetruck",   
     "Hustler",
     " Intruder",
     "Primo",
     "Cargobob",
     "Tampa",
     "Sunrise",
     "Merit",
     "Utility",
     "Nevada",
     "Yosemite",
     " Windsor",
     "Monster Truck",
     "Monster Truck",   
     "Uranus",
     "Jester",
     "Sultan",
     "Stratum",
     "Elegy",
     "Raindance",
     "RC Tiger",
     "Flash",
     "Tahoma",
     "Savanna",
     "Bandito",
     "Freight",   
     "Trailer",   
     "Kart",
     "Mower",
     "Du neride",
     "Sweeper",
     "Broadway",
     "Tornado",
     "AT-400",
     "DFT-30",
     "Huntley",
     "Stafford",
     "BF-400",
     " Newsvan",
     "Tug",
     "Trailer",
     "Emperor",
     "Wayfarer",
    "Euros",
    "Hotdog",
    "Club",
    "Trailer",
    "Trailer",  
    "Andromada",
    "Dodo",
    "RC Cam",
    "Launch",
    "Police Car (LSPD)",
    "Police Car (SFPD)",
    "Police Car (LVPD)",
    "Police Ranger",
    "Picador",
    "S.W.A.T. Van",
    "Alpha",
    "Phoenix",
    "Glendale",
    "Sadler",
    "Luggage Trailer",
    "Luggage Trailer",
    "Stair Trailer",
    "Boxville",
    "Farm Plow",
    "Utility Trailer"
};
new VehStats[200];
enum SPS
{
     Float:X,
     Float:Y,
     Float:Z
}
new PlayerPos[200][SPS];
   
public OnFilterScriptInit()
{
         print("[FS]|-----------------------------------------|[FS]");
         print("[FS]| .:[ - Vehicle Name Display by Seif - ]:.|[FS]");
         print("[FS]|-----------------------------------------|[FS]");
         SetTimer("VehStateCheck",300,1);
         for(new playerid=0;playerid<200;playerid++) VehStats[playerid] = 1;
         return 1;
}
   
public OnFilterScriptExit()
{
     for(new i=0;i<MAX_PLAYERS;i++)
     {
                 TextDrawHideForPlayer(i,Vehicle[i]);
                 TextDrawHideForPlayer(i,VehiclesName[i]);
                 TextDrawHideForPlayer(i,MPH[i]);
                 TextDrawHideForPlayer(i,MPHR[i]);
                 TextDrawHideForPlayer(i,KPH[i]);
                 TextDrawHideForPlayer(i,KPHR[i]);
         TextDrawHideForPlayer(i,VHP[i]);
     }
         return 1;
}
   
public OnPlayerConnect(playerid)
{
         VehStats[playerid] = 1;
          
         Vehicle[playerid] = TextDrawCreate(191.000000,401.000000,"Vehicle:");
         TextDrawAlignment(Vehicle[playerid],0);
         TextDrawBackgroundColor(Vehicle[playerid],0x000000ff);
         TextDrawFont(Vehicle[playerid],1);
         TextDrawLetterSize(Vehicle[playerid],1.000000,2.000000);
         TextDrawColor(Vehicle[playerid],0xff0000cc);
         TextDrawSetOutline(Vehicle[playerid],1);
         TextDrawSetProportional(Vehicle[playerid],1);
         TextDrawSetShadow(Vehicle[playerid],10);
   
         VehiclesName[playerid] = TextDrawCreate(331.000000,401.000000,"-");
         TextDrawAlignment(VehiclesName[playerid],0);
         TextDrawBackgroundColor(VehiclesName[playerid],0x000000ff);
         TextDrawFont(VehiclesName[playerid],3);
         TextDrawLetterSize(VehiclesName[playerid],1.000000,2.000000);
         TextDrawColor(VehiclesName[playerid],0x00ff00cc);
         TextDrawSetOutline(VehiclesName[playerid],1);
         TextDrawSetProportional(VehiclesName[playerid],1);
   
         MPH[playerid] = TextDrawCreate(216.000000,426.000000,"MPH:");
     TextDrawAlignment(MPH[playerid],0);
     TextDrawBackgroundColor(MPH[playerid],0x000000ff);
     TextDrawFont(MPH[playerid],1);
     TextDrawLetterSize(MPH[playerid],1.000000,2.000000);
     TextDrawColor(MPH[playerid],0xff0000cc);
     TextDrawSetOutline(MPH[playerid],1);
     TextDrawSetProportional(MPH[playerid],1);
     TextDrawSetShadow(MPH[playerid],1);
   
     MPHR[playerid] = TextDrawCreate(311.000000,426.000000,"0");
     TextDrawAlignment(MPHR[playerid],0);
     TextDrawBackgroundColor(MPHR[playerid],0x000000ff);
     TextDrawFont(MPHR[playerid],3);
     TextDrawLetterSize(MPHR[playerid],1.000000,2.000000);
     TextDrawColor(MPHR[playerid],0x00ff00cc);
     TextDrawSetOutline(MPHR[playerid],1);
     TextDrawSetProportional(MPHR[playerid],1);
     TextDrawSetShadow(MPHR[playerid],1);
   
         KPH[playerid] = TextDrawCreate(361.000000,426.000000,"KPH:");
         TextDrawAlignment(KPH[playerid],0);
         TextDrawBackgroundColor(KPH[playerid],0x000000ff);
         TextDrawFont(KPH[playerid],1);
         TextDrawLetterSize(KPH[playerid],1.000000,2.000000);
         TextDrawColor(KPH[playerid],0xff0000cc);
         TextDrawSetOutline(KPH[playerid],1);
         TextDrawSetProportional(KPH[playerid],1);
         TextDrawSetShadow(KPH[playerid],1);
   
         KPHR[playerid] = TextDrawCreate(446.000000,426.000000,"0");
         TextDrawAlignment(KPHR[playerid],0);
         TextDrawBackgroundColor(KPHR[playerid],0x000000ff);
         TextDrawFont(KPHR[playerid],3);
         TextDrawLetterSize(KPHR[playerid],1.000000,2.000000);
         TextDrawColor(KPHR[playerid],0x00ff00cc);
         TextDrawSetOutline(KPHR[playerid],1);
         TextDrawSetProportional(KPHR[playerid],1);
         TextDrawSetShadow(KPHR[playerid],1);
   
         VHP[playerid] = TextDrawCreate(552,54.000000,"1000");
         TextDrawAlignment(VHP[playerid],0);
         TextDrawBackgroundColor(VHP[playerid],0x000000ff);
         TextDrawFont(VHP[playerid],1);
         TextDrawLetterSize(VHP[playerid],0.500000,1.000000);
         TextDrawColor(VHP[playerid],0x00ffffff);
         TextDrawSetOutline(VHP[playerid],1);
         TextDrawSetProportional(VHP[playerid],1);
         TextDrawSetShadow(VHP[playerid],1);
         return 1;
}
   
public OnPlayerCommandText(playerid, cmdtext[])
{
         if(strcmp(cmdtext, "/vs", true) == 0)
         {
             if (VehStats[playerid] == 1)
                 {
                         VehStats[playerid] = 0;
                         SendClientMessage(playerid,GREEN,"Vehicle Stats Display is now turned OFF");
                         TextDrawHideForPlayer(playerid,Vehicle[playerid]);
                         TextDrawHideForPlayer(playerid,VehiclesName[playerid]);
                         TextDrawHideForPlayer(playerid,MPH[playerid]);
                         TextDrawHideForPlayer(playerid,MPHR[playerid]);
                         TextDrawHideForPlayer(playerid,KPH[playerid]);
                         TextDrawHideForPlayer(playerid,KPHR[playerid]);
                         TextDrawHideForPlayer(playerid,VHP[playerid]);
                 }
             else
             {
                         VehStats[playerid] = 1;
                         SendClientMessage(playerid,GREEN,"Vehicle Stats Display is now turned ON");
                         if(GetPlayerState(playerid) == 2)
                         {
                 TextDrawShowForPlayer(playerid,Vehicle[playerid]);
                    TextDrawShowForPlayer(playerid,VehiclesName[playerid]);
                    TextDrawShowForPlayer(playerid,MPH[playerid]);
                    TextDrawShowForPlayer(playerid,MPHR[playerid]);
                    TextDrawShowForPlayer(playerid,KPH[playerid]);
                    TextDrawShowForPlayer(playerid,KPHR[playerid]);
                    TextDrawShowForPlayer(playerid,VHP[playerid]);
                         }
                 }
                 return 1;
         }
         return 0;
}
   
public VehStateCheck()
{
         for(new i=0;i<MAX_PLAYERS;i++)
         {
                 if (IsPlayerInAnyVehicle(i) && IsPlayerConnected(i) && VehStats[i] == 1)
             {
                         new Float:health,vehicleid = GetPlayerVehicleID(i),string[128],str[128],strg[128],s[128],Float:value,Float:distance,Float:x,Float:y,Float:z;
                         GetPlayerPos(i, x, y, z);
             distance = floatsqroot(floatpower(floatabs(floatsub(x,PlayerPos[i][X])),2)+floatpower(floatabs(floatsub(y,PlayerPos[i][Y])),2)+floatpower(floatabs(floatsub(z,PlayerPos[i][Z])),2));
             value = floatround(distance * 11000);
                         GetVehicleHealth(vehicleid,health);
                         format(str, 128, "%d",floatround(value/2200));
             format(strg, 128, "%d",floatround(value/1400));
             format(string,128,"%s",VehicleName[GetVehicleModel(vehicleid)-400]);
                         format(s,10,"%.0f",health);
             TextDrawSetString(VehiclesName[i],string);
             TextDrawSetString(MPHR[i],str);
             TextDrawSetString(KPHR[i],strg);
             TextDrawSetString(VHP[i],s);
                         PlayerPos[i][X] = x;
             PlayerPos[i][Y] = y;
             PlayerPos[i][Z] = z;
         }
         }
         return 1;
}
   
public OnPlayerStateChange(playerid, newstate, oldstate)
{
         if (newstate == PLAYER_STATE_DRIVER)
         {
             if (VehStats[playerid] == 1)
                 {
                         TextDrawShowForPlayer(playerid,Vehicle[playerid]);
                         TextDrawShowForPlayer(playerid,VehiclesName[playerid]);
                         TextDrawShowForPlayer(playerid,MPH[playerid]);
                         TextDrawShowForPlayer(playerid,MPHR[playerid]);
                         TextDrawShowForPlayer(playerid,KPH[playerid]);
                         TextDrawShowForPlayer(playerid,KPHR[playerid]);
                         TextDrawShowForPlayer(playerid,VHP[playerid]);
                 }
         }
         else if (newstate == PLAYER_STATE_ONFOOT)
         {
                 TextDrawHideForPlayer(playerid,Vehicle[playerid]);
                 TextDrawHideForPlayer(playerid,VehiclesName[playerid]);
                 TextDrawHideForPlayer(playerid,MPH[playerid]);
                 TextDrawHideForPlayer(playerid,MPHR[playerid]);
                 TextDrawHideForPlayer(playerid,KPH[playerid]);
                 TextDrawHideForPlayer(playerid,KPHR[playerid]);
                 TextDrawHideForPlayer(playerid,VHP[playerid]);
         }
         return 1;
}

только на английском.


Да потому что когда человек делает на заказ он не старается. © kRiSyo
Кланяимся нофаму королю анимаций =))))))) © Manusya
В MTA - для вас все багоюзеры. Не юзают там +с только EFO и ACF. © SeWeR


Сообщение отредактировал okstyle - Воскресенье, 01.06.2008, 13:30
DRAgoONoNДата: Воскресенье, 01.06.2008, 15:52 | Сообщение # 3
Советчик
Группа: Продвинутые
Сообщений: 1149
Награды: 2
Город: Одесса
Репутация: 102
Замечания: 0%
Статус:
В начало скрипта
Code
#define SLOTS 200  

enum SavePlayerPosEnum {  
Float:LastX,  
Float:LastY,  
Float:LastZ  
}  
new SavePlayerPos[SLOTS][SavePlayerPosEnum];  
new Text:Speedo[SLOTS];  
new UpdateSeconds;  
new CarName[][] =  
{  
     "Landstalker", "Bravura", "Buffalo", "Linerunner", "Perrenial", "Sentinel",  
         "Dumper", "Firetruck", "Trashmaster", "Stretch", "Manana", "Infernus",  
         "Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam",  
     "Esperanto", "Taxi", "Washington", "Bobcat", "Whoopee", "BF Injection",  
         "Hunter", "Premier", "Enforcer", "Securicar", "Banshee", "Predator", "Bus",  
         "Rhino", "Barracks", "Hotknife", "Trailer", "Previon", "Coach", "Cabbie",  
         "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral",  
         "Squalo", "Seasparrow", "Pizzaboy", "Tram", "Trailer", "Turismo", "Speeder",  
         "Reefer", "Tropic", "Flatbed", "Yankee", "Caddy", "Solair", "Berkley's RC Van",  
         "Skimmer", "PCJ-600", "Faggio", "Freeway", "RC Baron", "RC Raider", "Glendale",  
         "Oceanic","Sanchez", "Sparrow", "Patriot", "Quad", "Coastguard", "Dinghy",  
         "Hermes", "Sabre", "Rustler", "ZR-350", "Walton", "Regina", "Comet", "BMX",  
         "Burrito", "Camper", "Marquis", "Baggage", "Dozer", "Maverick", "News Chopper",  
         "Rancher", "FBI Rancher", "Virgo", "Greenwood", "Jetmax", "Hotring", "Sandking",  
         "Blista Compact", "Police Maverick", "Boxvillde", "Benson", "Mesa", "RC Goblin",  
         "Hotring Racer A", "Hotring Racer B", "Bloodring Banger", "Rancher", "Super GT",  
         "Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropduster", "Stunt",  
         "Tanker", "Roadtrain", "Nebula", "Majestic", "Buccaneer", "Shamal", "Hydra",  
         "FCR-900", "NRG-500", "HPV1000", "Cement Truck", "Tow Truck", "Fortune",  
         "Cadrona", "FBI Truck", "Willard", "Forklift", "Tractor", "Combine", "Feltzer",  
         "Remington", "Slamvan", "Blade", "Freight", "Streak", "Vortex", "Vincent",  
     "Bullet", "Clover", "Sadler", "Firetruck", "Hustler", "Intruder", "Primo",  
         "Cargobob", "Tampa", "Sunrise", "Merit", "Utility", "Nevada", "Yosemite",  
         "Windsor", "Monster", "Monster", "Uranus", "Jester", "Sultan", "Stratium",  
         "Elegy", "Raindance", "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito",  
     "Freight Flat", "Streak Carriage", "Kart", "Mower", "Dune", "Sweeper",  
         "Broadway", "Tornado", "AT-400", "DFT-30", "Huntley", "Stafford", "BF-400",  
         "News Van", "Tug", "Trailer", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club",  
         "Freight Box", "Trailer", "Andromada", "Dodo", "RC Cam", "Launch", "Police Car",  
         "Police Car", "Police Car", "Police Ranger", "Picador", "S.W.A.T", "Alpha",  
         "Phoenix", "Glendale", "Sadler", "Luggage", "Luggage", "Stairs", "Boxville",  
         "Tiller", "Utility Trailer"  
};

В OnGameModeInit
Code
SetTimer("UpdateSpeed", 2000, 1);

B OnPlayerStateChange
Code
  if(newstate == PLAYER_STATE_ONFOOT){  
         TextDrawHideForPlayer(playerid, Speedo[playerid]);  
      }  
return 1;  
}

B конец скрипта
Code
public UpdateSpeed(){  
         new Float:x,Float:y,Float:z;  
         new Float:distance,value,string[256];  
         new Float:health;  
         for(new i=0; i<SLOTS; i++)  
         {  
                 if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))  
                 {  
                         TextDrawDestroy(Speedo[i]);  
                 }  
         }  

         for(new i=0; i<SLOTS; i++)  
         {  
                 if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))  
                 {  
                         GetPlayerPos(i, x, y, z);  
                         GetVehicleHealth(GetPlayerVehicleID(i), health);  
                         distance = floatsqroot(floatpower(floatabs(floatsub(x,SavePlayerPos[i][LastX])),2)+floatpower(floatabs(floatsub(y,SavePlayerPos[i][LastY])),2)+floatpower(floatabs(floatsub(z,SavePlayerPos[i][LastZ])),2));  
                         value = floatround(distance * 5000);  
                         if(UpdateSeconds > 1)  
                         {  
                    value = floatround(value / UpdateSeconds);  
                         }  
                         format(string,sizeof(string),"~g~Vehicle : ~w~%s ~n~~b~MPH : ~w~%d / ~b~KM/H : ~w~%d ~n~~r~Vehicle Health:~w~ %.2f",CarName[GetVehicleModel(GetPlayerVehicleID(i))-400],floatround(value/1600),floatround(value/1000),health);  
                         Speedo[i] = TextDrawCreate(320.00, 380.00, string);  
                         TextDrawSetOutline(Speedo[i], 0);  
                         TextDrawFont(Speedo[i], 3);  
                         TextDrawSetProportional(Speedo[i], 2);  
                         TextDrawAlignment(Speedo[i], 2);  
                         TextDrawShowForPlayer (i, Speedo[i]);  
                 }  
                 SavePlayerPos[i][LastX] = x;  
                 SavePlayerPos[i][LastY] = y;  
                 SavePlayerPos[i][LastZ] = z;  
        }  
}  

cool



SAMP WIKI



Maks93Дата: Понедельник, 09.06.2008, 10:52 | Сообщение # 4
Новенький
Группа: Продвинутые
Сообщений: 41
Награды: 1
Репутация: 3
Замечания: 0%
Статус:
distance * 5000 изменить на 2000 тогда 100 миль соответствует 160 км\ч :) спидометр суперский
LifeДата: Воскресенье, 31.08.2008, 01:43 | Сообщение # 5
Новенький
Группа: Пользователи
Сообщений: 11
Награды: 1
Репутация: 2
Замечания: 0%
Статус:
Не стал тему создавать поэтому попрошу тут.Профи в павно можете помочь создать миссию
Описание:
Нужно взять самолет(ID Авто: 553) из аэропорта Лос сантоса(1город) и доставить в аэропорт Сан фиеро(2 город), потом взять грузовик (ID Авто: 609)
и доставить в 3 город (Лас Вентурас чтоли не помню),конкретно на эту позицию 2296.4153,2779.8381,10.8203;Чтобы после завершения миссии Давалось ХР и Деньги (20000 и 50000 например).Пожалуйста помогите если не понятно я опишу до конца.

  • Страница 1 из 1
  • 1
Поиск:





 


 


 
Хостинг от uCoz samp.at.ua