Szerző Téma: GumiInfo Script by SkillZ (SCarBoard)  (Megtekintve 2228 alkalommal)

GumiInfo Script by SkillZ (SCarBoard)
« Dátum: 2012. június 19. - 15:47:27 »
+11 Show voters
Hello mindenki.
Szertetnem nektek meg mutatni az uj scriptem amit nem reg talaltam ki, es most meg valositottam.
A lenyege az hogy ha egy autoba ulsz akkor Texturabol ki van rakva egy jarmu,aminek a 4 kereke fel van tuntetve.Ha valaki ki lovi a jarmu gumiat,akkor a kicsi maketten meg tudhatod hogy melyik gumit lottek ki.Arra a helyre egy X kerul.Ugyanez meg van a motrokkal is.A kovetkezo verzioban akarom reszletesebbre epiteni,illetve par kiegeszitot teszek hozza.
Kepet hamarosan rakok rola.
Elotte azonban megszeretnem koszonni \"ɐʞzssǝlosz\" nak hogy kijavitotta a figyelmetlensegemet! (OnFilterScriptInit helyett OnFilterScriptExit ala tettem a textdrawokat.
Itt a kod:
 

#include <a_samp>
#define CAR 0
#define BIKE 1
#define MOTORBIKE 2
#define BOAT 3
#define PLANE 4
#define RC 5
#define TRAIN 6
#define TRAILER 7
#define HELICOPTER 8
#define JATEKOSOK 100
new panels, doors, lights, tires;
forward GumiCheck();
new Text:kocsialap[MAX_PLAYERS];
new Text:motoralap[MAX_PLAYERS];
new Text:elsokerek[MAX_PLAYERS];
new Text:hatsokerek[MAX_PLAYERS];
new Text:balelso[MAX_PLAYERS];
new Text:jobbelso[MAX_PLAYERS];
new Text:jobbhatso[MAX_PLAYERS];
new Text:balhatso[MAX_PLAYERS];
 
public OnFilterScriptInit()
{
    print(\"SGumiInfo by SkillZ Aktiv\");
SetTimer(\"GumiCheck\", 1000, 1);
    for(new i=0; i<JATEKOSOK; i++) {
kocsialap = TextDrawCreate(225.000000, 407.000000, \"LD_OTB2:butnB\");
TextDrawBackgroundColor(kocsialap, 255);
TextDrawFont(kocsialap, 4);
TextDrawLetterSize(kocsialap, 0.500000, 1.000000);
TextDrawColor(kocsialap, -1);
TextDrawSetOutline(kocsialap, 0);
TextDrawSetProportional(kocsialap, 1);
TextDrawSetShadow(kocsialap, 1);
TextDrawUseBox(kocsialap, 1);
TextDrawBoxColor(kocsialap, 255);
TextDrawTextSize(kocsialap, 25.000000, 76.000000);
motoralap = TextDrawCreate(232.000000, 407.000000, \"LD_OTB2:butnB\");
TextDrawBackgroundColor(motoralap, 255);
TextDrawFont(motoralap, 4);
TextDrawLetterSize(motoralap, 0.500000, 1.000000);
TextDrawColor(motoralap, -1);
TextDrawSetOutline(motoralap, 0);
TextDrawSetProportional(motoralap, 1);
TextDrawSetShadow(motoralap, 1);
TextDrawUseBox(motoralap, 1);
TextDrawBoxColor(motoralap, 255);
TextDrawTextSize(motoralap, 10.000000, 76.000000);
balelso = TextDrawCreate(221.000000, 411.000000, \"LD_BEAT:circle\");
TextDrawBackgroundColor(balelso, 255);
TextDrawFont(balelso, 4);
TextDrawLetterSize(balelso, 0.500000, 1.000000);
TextDrawColor(balelso, -1);
TextDrawSetOutline(balelso, 0);
TextDrawSetProportional(balelso, 1);
TextDrawSetShadow(balelso, 1);
TextDrawUseBox(balelso, 1);
TextDrawBoxColor(balelso, 255);
TextDrawTextSize(balelso, 12.000000, 10.000000);
jobbelso = TextDrawCreate(242.000000, 411.000000, \"LD_BEAT:circle\");
TextDrawBackgroundColor(jobbelso, 255);
TextDrawFont(jobbelso, 4);
TextDrawLetterSize(jobbelso, 0.500000, 1.000000);
TextDrawColor(jobbelso, -1);
TextDrawSetOutline(jobbelso, 0);
TextDrawSetProportional(jobbelso, 1);
TextDrawSetShadow(jobbelso, 1);
TextDrawUseBox(jobbelso, 1);
TextDrawBoxColor(jobbelso, 255);
TextDrawTextSize(jobbelso, 12.000000, 10.000000);
jobbhatso = TextDrawCreate(242.000000, 434.000000, \"LD_BEAT:circle\");
TextDrawBackgroundColor(jobbhatso, 255);
TextDrawFont(jobbhatso, 4);
TextDrawLetterSize(jobbhatso, 0.500000, 1.000000);
TextDrawColor(jobbhatso, -1);
TextDrawSetOutline(jobbhatso, 0);
TextDrawSetProportional(jobbhatso, 1);
TextDrawSetShadow(jobbhatso, 1);
TextDrawUseBox(jobbhatso, 1);
TextDrawBoxColor(jobbhatso, 255);
TextDrawTextSize(jobbhatso, 12.000000, 10.000000);
balhatso = TextDrawCreate(220.000000, 434.000000, \"LD_BEAT:circle\");
TextDrawBackgroundColor(balhatso, 255);
TextDrawFont(balhatso, 4);
TextDrawLetterSize(balhatso, 0.500000, 1.000000);
TextDrawColor(balhatso, -1);
TextDrawSetOutline(balhatso, 0);
TextDrawSetProportional(balhatso, 1);
TextDrawSetShadow(balhatso, 1);
TextDrawUseBox(balhatso, 1);
TextDrawBoxColor(balhatso, 255);
TextDrawTextSize(balhatso, 12.000000, 10.000000);
elsokerek = TextDrawCreate(231.000000, 408.000000, \"LD_BEAT:circle\");
TextDrawBackgroundColor(elsokerek, 255);
TextDrawFont(elsokerek, 4);
TextDrawLetterSize(elsokerek, 0.500000, 1.000000);
TextDrawColor(elsokerek, -1);
TextDrawSetOutline(elsokerek, 0);
TextDrawSetProportional(elsokerek, 1);
TextDrawSetShadow(elsokerek, 1);
TextDrawUseBox(elsokerek, 1);
TextDrawBoxColor(elsokerek, 255);
TextDrawTextSize(elsokerek, 12.000000, 10.000000);
hatsokerek = TextDrawCreate(231.000000, 438.000000, \"LD_BEAT:circle\");
TextDrawBackgroundColor(hatsokerek, 255);
TextDrawFont(hatsokerek, 4);
TextDrawLetterSize(hatsokerek, 0.500000, 1.000000);
TextDrawColor(hatsokerek, -1);
TextDrawSetOutline(hatsokerek, 0);
TextDrawSetProportional(hatsokerek, 1);
TextDrawSetShadow(hatsokerek, 1);
TextDrawUseBox(hatsokerek, 1);
TextDrawBoxColor(hatsokerek, 255);
TextDrawTextSize(hatsokerek, 12.000000, 10.000000);
}
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
return 1;
}
public OnPlayerConnect(playerid)
{
   
return 1;
}
 
public GumiCheck()
{
    for(new i=0; i<JATEKOSOK; i++) {
    GetVehicleDamageStatus(GetPlayerVehicleID(i),panels,doors,lights,tires);
if(IsPlayerInAnyVehicle(i)) {
if(GetVehicleType(GetPlayerVehicleID(i)) == CAR) {
TextDrawShowForPlayer(i, kocsialap);
TextDrawShowForPlayer(i, balelso);
TextDrawShowForPlayer(i, jobbelso);
TextDrawShowForPlayer(i, jobbhatso);
TextDrawShowForPlayer(i, balhatso);
if(tires == 0) {
TextDrawSetString(balelso, \"LD_BEAT:circle\");
TextDrawSetString(jobbelso, \"LD_BEAT:circle\");
TextDrawSetString(balhatso, \"LD_BEAT:circle\");
TextDrawSetString(jobbhatso, \"LD_BEAT:circle\");
} else if(tires == 1) {
TextDrawSetString(balelso, \"LD_BEAT:circle\");
TextDrawSetString(jobbelso, \"LD_BEAT:circle\");
TextDrawSetString(balhatso, \"LD_BEAT:circle\");
TextDrawSetString(jobbhatso, \"LD_BEAT:cross\");
} else if(tires == 2) {
TextDrawSetString(balelso, \"LD_BEAT:circle\");
TextDrawSetString(jobbelso, \"LD_BEAT:cross\");
TextDrawSetString(balhatso, \"LD_BEAT:circle\");
TextDrawSetString(jobbhatso, \"LD_BEAT:circle\");
} else if(tires == 3) {
TextDrawSetString(balelso, \"LD_BEAT:circle\");
TextDrawSetString(jobbelso, \"LD_BEAT:cross\");
TextDrawSetString(balhatso, \"LD_BEAT:circle\");
TextDrawSetString(jobbhatso, \"LD_BEAT:cross\");
} else if(tires == 4) {
TextDrawSetString(balelso, \"LD_BEAT:circle\");
TextDrawSetString(jobbelso, \"LD_BEAT:circle\");
TextDrawSetString(balhatso, \"LD_BEAT:cross\");
TextDrawSetString(jobbhatso, \"LD_BEAT:circle\");
} else if(tires == 5) {
TextDrawSetString(balelso, \"LD_BEAT:circle\");
TextDrawSetString(jobbelso, \"LD_BEAT:cross\");
TextDrawSetString(balhatso, \"LD_BEAT:circle\");
TextDrawSetString(jobbhatso, \"LD_BEAT:circle\");
} else if(tires == 6) {
TextDrawSetString(balelso, \"LD_BEAT:circle\");
TextDrawSetString(jobbelso, \"LD_BEAT:circle\");
TextDrawSetString(balhatso, \"LD_BEAT:cross\");
TextDrawSetString(jobbhatso, \"LD_BEAT:cross\");
} else if(tires == 7) {
TextDrawSetString(balelso, \"LD_BEAT:circle\");
TextDrawSetString(jobbelso, \"LD_BEAT:cross\");
TextDrawSetString(balhatso, \"LD_BEAT:cross\");
TextDrawSetString(jobbhatso, \"LD_BEAT:cross\");
} else if(tires == 8) {
TextDrawSetString(balelso, \"LD_BEAT:cross\");
TextDrawSetString(jobbelso, \"LD_BEAT:circle\");
TextDrawSetString(balhatso, \"LD_BEAT:circle\");
TextDrawSetString(jobbhatso, \"LD_BEAT:circle\");
} else if(tires == 9) {
TextDrawSetString(balelso, \"LD_BEAT:cross\");
TextDrawSetString(jobbelso, \"LD_BEAT:circle\");
TextDrawSetString(balhatso, \"LD_BEAT:circle\");
TextDrawSetString(jobbhatso, \"LD_BEAT:cross\");
} else if(tires == 10) {
TextDrawSetString(balelso, \"LD_BEAT:cross\");
TextDrawSetString(jobbelso, \"LD_BEAT:cross\");
TextDrawSetString(balhatso, \"LD_BEAT:circle\");
TextDrawSetString(jobbhatso, \"LD_BEAT:circle\");
} else if(tires == 11) {
TextDrawSetString(balelso, \"LD_BEAT:cross\");
TextDrawSetString(jobbelso, \"LD_BEAT:cross\");
TextDrawSetString(balhatso, \"LD_BEAT:circle\");
TextDrawSetString(jobbhatso, \"LD_BEAT:cross\");
} else if(tires == 12) {
TextDrawSetString(balelso, \"LD_BEAT:cross\");
TextDrawSetString(jobbelso, \"LD_BEAT:circle\");
TextDrawSetString(balhatso, \"LD_BEAT:cross\");
TextDrawSetString(jobbhatso, \"LD_BEAT:circle\");
} else if(tires == 13) {
TextDrawSetString(balelso, \"LD_BEAT:cross\");
TextDrawSetString(jobbelso, \"LD_BEAT:circle\");
TextDrawSetString(balhatso, \"LD_BEAT:cross\");
TextDrawSetString(jobbhatso, \"LD_BEAT:cross\");
} else if(tires == 14) {
TextDrawSetString(balelso, \"LD_BEAT:circle\");
TextDrawSetString(jobbelso, \"LD_BEAT:circle\");
TextDrawSetString(balhatso, \"LD_BEAT:circle\");
TextDrawSetString(jobbhatso, \"LD_BEAT:cross\");
} else if(tires == 15) {
TextDrawSetString(balelso, \"LD_BEAT:cross\");
TextDrawSetString(jobbelso, \"LD_BEAT:cross\");
TextDrawSetString(balhatso, \"LD_BEAT:cross\");
TextDrawSetString(jobbhatso, \"LD_BEAT:cross\");
}
} else if(GetVehicleType(GetPlayerVehicleID(i)) == MOTORBIKE || GetVehicleType(GetPlayerVehicleID(i)) == BIKE) {
TextDrawShowForPlayer(i, motoralap);
TextDrawShowForPlayer(i, elsokerek);
TextDrawShowForPlayer(i, hatsokerek);
} else if(GetVehicleType(GetPlayerVehicleID(i)) == BOAT || GetVehicleType(GetPlayerVehicleID(i)) == PLANE || GetVehicleType(GetPlayerVehicleID(i)) == RC || GetVehicleType(GetPlayerVehicleID(i)) == TRAIN || GetVehicleType(GetPlayerVehicleID(i)) == HELICOPTER) {
TextDrawHideForPlayer(i, kocsialap);
TextDrawHideForPlayer(i, motoralap);
TextDrawHideForPlayer(i, elsokerek);
TextDrawHideForPlayer(i, hatsokerek);
TextDrawHideForPlayer(i, balelso);
TextDrawHideForPlayer(i, jobbelso);
TextDrawHideForPlayer(i, jobbhatso);
TextDrawHideForPlayer(i, balhatso);
}
}
if(!IsPlayerInAnyVehicle(i)){
 
TextDrawHideForPlayer(i, kocsialap);
TextDrawHideForPlayer(i, motoralap);
TextDrawHideForPlayer(i, elsokerek);
TextDrawHideForPlayer(i, hatsokerek);
TextDrawHideForPlayer(i, balelso);
TextDrawHideForPlayer(i, jobbelso);
TextDrawHideForPlayer(i, jobbhatso);
TextDrawHideForPlayer(i, balhatso);
}
}
return 1;
}
stock GetVehicleType(vehicleid)
{
switch(GetVehicleModel(vehicleid))
{
case 400 .. 416, 418 .. 424, 426 .. 429, 431 .. 434, 436 .. 440, 442 .. 445, 451, 455 .. 459, 466, 467, 470, 471, 474, 475, 477 .. 480, 482, 483, 485, 486, 489 .. 492, 494 .. 496, 498 .. 500, 502 .. 508, 514 .. 518, 524 .. 536, 539 .. 547, 549 .. 552, 554 .. 562, 565 .. 568, 571 .. 576, 578 .. 580, 582, 583, 585, 587 .. 589, 596 .. 605, 609: return CAR;
case 481, 509, 510: return BIKE;
case 448, 461 .. 463, 468, 521 .. 523, 581, 586: return MOTORBIKE;
case 430, 446, 452 .. 454, 472, 473, 484, 493, 595: return BOAT;
case 460, 476, 511 .. 513, 519, 520, 553, 577, 592, 593: return PLANE;
case 441, 464, 465, 501, 564, 594: return RC;
case 449, 537, 538, 569, 570, 590: return TRAIN;
case 435, 450, 584, 591, 606 .. 608, 610, 611: return TRAILER;
case 417, 425, 447, 469, 487, 488, 497, 548, 563: return HELICOPTER;
}
return -1;
}

 
Elore szeretnem mondani hogy nem vagyok pro.Lehetseges hogy konnyebben vagy okosabban is meg lehet csinalni, viszont nekem nem szamit a kod rovidsege,csak hogy mukodjon a script.
Remelem hasznat veszitek :P
--------------------------------------------------------------------------------------------------------
Fejlesztettem.Meg csinaltam hozza a Speedo, Jarmunev,JarmuHP, Explode mutato.
Ezennel szeretnem atnevezni SCarBoard nevre ezt a scriptet
 

// SCarBoard by SkillZ
#include <a_samp>
#define updateertek 500
#define JATEKOSOK 100
new Text:Textdraw0[MAX_PLAYERS];
new Text:SpeedMeter[MAX_PLAYERS];
new Text:Textdraw3[MAX_PLAYERS];
new Text:Textdraw4[MAX_PLAYERS];
new Text:Textdraw5[MAX_PLAYERS];
new Text:kocsialap[MAX_PLAYERS];
new Text:motoralap[MAX_PLAYERS];
new Text:elsokerek[MAX_PLAYERS];
new Text:hatsokerek[MAX_PLAYERS];
new Text:balelso[MAX_PLAYERS];
new Text:jobbelso[MAX_PLAYERS];
new Text:jobbhatso[MAX_PLAYERS];
new Text:balhatso[MAX_PLAYERS];
new Text:Textdraw17[MAX_PLAYERS];
new Text:Textdraw18[MAX_PLAYERS];
new Text:Textdraw19[MAX_PLAYERS];
new Text:Textdraw20[MAX_PLAYERS];
new Text:Textdraw21[MAX_PLAYERS];
new Text:Textdraw22[MAX_PLAYERS];
new Text:Textdraw23[MAX_PLAYERS];
new Text:Textdraw24[MAX_PLAYERS];
new Text:Textdraw25[MAX_PLAYERS];
new Text:Textdraw26[MAX_PLAYERS];
new Text:Textdraw27[MAX_PLAYERS];
enum ReadPositions{Float:ReadX,Float:ReadY,Float:ReadZ
}
new ReadPlayerPosition[JATEKOSOK][ReadPositions];
new Float:VehPosX[MAX_VEHICLES], Float:VehPosY[MAX_VEHICLES], Float:VehPosZ[MAX_VEHICLES];
new LVehiclesName[][] =
{
   \"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\",
   \"Duneride\",
   \"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 (LS)\",
   \"Police Car (SF)\",
   \"Police Car (LV)\",
   \"Police Ranger\",
   \"Picador\",
   \"S.W.A.T. Van\",
   \"Alpha\",
   \"Phoenix\",
   \"Glendale\",
   \"Sadler\",
   \"Luggage Trailer\",
   \"Luggage Trailer\",
   \"Stair Trailer\",
   \"Boxville\",
   \"Farm Plow\",
   \"Utility Trailer\"
};
 
public OnFilterScriptInit()
{
print(\"SkillZ SCarBoard-ja betoltve!.\");
SetTimer(\"UpdateBoard\", updateertek, 1);
for(new v=0; v<MAX_VEHICLES; v++){
    ReadPosition(v);}
    for(new i=0; i<JATEKOSOK; i++){
// Create the textdraws:
Textdraw0 = TextDrawCreate(196.000000, 400.000000, \"LD_DUAL:power\");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 4);
TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
TextDrawColor(Textdraw0, 255);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, 254.000000, 5.000000);
SpeedMeter = TextDrawCreate(316.000000, 407.000000, \"0\");
TextDrawBackgroundColor(SpeedMeter, 16711935);
TextDrawFont(SpeedMeter, 1);
TextDrawLetterSize(SpeedMeter, 0.500000, 1.000000);
TextDrawColor(SpeedMeter, 255);
TextDrawSetOutline(SpeedMeter, 1);
TextDrawSetProportional(SpeedMeter, 1);
Textdraw3 = TextDrawCreate(289.000000, 405.000000, \"LD_DUAL:power\");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 4);
TextDrawLetterSize(Textdraw3, 0.500000, 1.000000);
TextDrawColor(Textdraw3, 255);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 1);
TextDrawUseBox(Textdraw3, 1);
TextDrawBoxColor(Textdraw3, 255);
TextDrawTextSize(Textdraw3, -93.000000, 43.000000);
Textdraw4 = TextDrawCreate(382.000000, 418.000000, \"LD_DUAL:power\");
TextDrawBackgroundColor(Textdraw4, 255);
TextDrawFont(Textdraw4, 4);
TextDrawLetterSize(Textdraw4, 0.500000, 1.000000);
TextDrawColor(Textdraw4, 255);
TextDrawSetOutline(Textdraw4, 0);
TextDrawSetProportional(Textdraw4, 1);
TextDrawSetShadow(Textdraw4, 1);
TextDrawUseBox(Textdraw4, 1);
TextDrawBoxColor(Textdraw4, 255);
TextDrawTextSize(Textdraw4, -93.000000, 30.000000);
Textdraw5 = TextDrawCreate(450.000000, 405.000000, \"LD_DUAL:power\");
TextDrawBackgroundColor(Textdraw5, 255);
TextDrawFont(Textdraw5, 4);
TextDrawLetterSize(Textdraw5, 0.500000, 1.000000);
TextDrawColor(Textdraw5, 255);
TextDrawSetOutline(Textdraw5, 0);
TextDrawSetProportional(Textdraw5, 1);
TextDrawSetShadow(Textdraw5, 1);
TextDrawUseBox(Textdraw5, 1);
TextDrawBoxColor(Textdraw5, 255);
TextDrawTextSize(Textdraw5, -93.000000, 43.000000);
 
kocsialap = TextDrawCreate(225.000000, 407.000000, \"LD_OTB2:butnB\");
TextDrawBackgroundColor(kocsialap, 255);
TextDrawFont(kocsialap, 4);
TextDrawLetterSize(kocsialap, 0.500000, 1.000000);
TextDrawColor(kocsialap, -1);
TextDrawSetOutline(kocsialap, 0);
TextDrawSetProportional(kocsialap, 1);
TextDrawSetShadow(kocsialap, 1);
TextDrawUseBox(kocsialap, 1);
TextDrawBoxColor(kocsialap, 255);
TextDrawTextSize(kocsialap, 25.000000, 76.000000);
motoralap = TextDrawCreate(232.000000, 407.000000, \"LD_OTB2:butnB\");
TextDrawBackgroundColor(motoralap, 255);
TextDrawFont(motoralap, 4);
TextDrawLetterSize(motoralap, 0.500000, 1.000000);
TextDrawColor(motoralap, -1);
TextDrawSetOutline(motoralap, 0);
TextDrawSetProportional(motoralap, 1);
TextDrawSetShadow(motoralap, 1);
TextDrawUseBox(motoralap, 1);
TextDrawBoxColor(motoralap, 255);
TextDrawTextSize(motoralap, 10.000000, 76.000000);
balelso = TextDrawCreate(221.000000, 411.000000, \"LD_BEAT:circle\");
TextDrawBackgroundColor(balelso, 255);
TextDrawFont(balelso, 4);
TextDrawLetterSize(balelso, 0.500000, 1.000000);
TextDrawColor(balelso, -1);
TextDrawSetOutline(balelso, 0);
TextDrawSetProportional(balelso, 1);
TextDrawSetShadow(balelso, 1);
TextDrawUseBox(balelso, 1);
TextDrawBoxColor(balelso, 255);
TextDrawTextSize(balelso, 12.000000, 10.000000);
jobbelso = TextDrawCreate(242.000000, 411.000000, \"LD_BEAT:circle\");
TextDrawBackgroundColor(jobbelso, 255);
TextDrawFont(jobbelso, 4);
TextDrawLetterSize(jobbelso, 0.500000, 1.000000);
TextDrawColor(jobbelso, -1);
TextDrawSetOutline(jobbelso, 0);
TextDrawSetProportional(jobbelso, 1);
TextDrawSetShadow(jobbelso, 1);
TextDrawUseBox(jobbelso, 1);
TextDrawBoxColor(jobbelso, 255);
TextDrawTextSize(jobbelso, 12.000000, 10.000000);
jobbhatso = TextDrawCreate(242.000000, 434.000000, \"LD_BEAT:circle\");
TextDrawBackgroundColor(jobbhatso, 255);
TextDrawFont(jobbhatso, 4);
TextDrawLetterSize(jobbhatso, 0.500000, 1.000000);
TextDrawColor(jobbhatso, -1);
TextDrawSetOutline(jobbhatso, 0);
TextDrawSetProportional(jobbhatso, 1);
TextDrawSetShadow(jobbhatso, 1);
TextDrawUseBox(jobbhatso, 1);
TextDrawBoxColor(jobbhatso, 255);
TextDrawTextSize(jobbhatso, 12.000000, 10.000000);
balhatso = TextDrawCreate(220.000000, 434.000000, \"LD_BEAT:circle\");
TextDrawBackgroundColor(balhatso, 255);
TextDrawFont(balhatso, 4);
TextDrawLetterSize(balhatso, 0.500000, 1.000000);
TextDrawColor(balhatso, -1);
TextDrawSetOutline(balhatso, 0);
TextDrawSetProportional(balhatso, 1);
TextDrawSetShadow(balhatso, 1);
TextDrawUseBox(balhatso, 1);
TextDrawBoxColor(balhatso, 255);
TextDrawTextSize(balhatso, 12.000000, 10.000000);
 
Textdraw17 = TextDrawCreate(312.000000, 421.000000, \"LD_BEAT:square\");
TextDrawBackgroundColor(Textdraw17, 255);
TextDrawFont(Textdraw17, 4);
TextDrawLetterSize(Textdraw17, 0.500000, 1.000000);
TextDrawColor(Textdraw17, -16776961);
TextDrawSetOutline(Textdraw17, 0);
TextDrawSetProportional(Textdraw17, 1);
TextDrawSetShadow(Textdraw17, 1);
TextDrawUseBox(Textdraw17, 1);
TextDrawBoxColor(Textdraw17, 255);
TextDrawTextSize(Textdraw17, 25.000000, 22.000000);
Textdraw18 = TextDrawCreate(384.000000, 405.000000, \"Elegy\");
TextDrawBackgroundColor(Textdraw18, 255);
TextDrawFont(Textdraw18, 1);
TextDrawLetterSize(Textdraw18, 0.300000, 0.799999);
TextDrawColor(Textdraw18, -1);
TextDrawSetOutline(Textdraw18, 0);
TextDrawSetProportional(Textdraw18, 1);
TextDrawSetShadow(Textdraw18, 1);
Textdraw19 = TextDrawCreate(384.000000, 416.000000, \"1000HP\");
TextDrawBackgroundColor(Textdraw19, 255);
TextDrawFont(Textdraw19, 1);
TextDrawLetterSize(Textdraw19, 0.300000, 0.799999);
TextDrawColor(Textdraw19, -1);
TextDrawSetOutline(Textdraw19, 0);
TextDrawSetProportional(Textdraw19, 1);
TextDrawSetShadow(Textdraw19, 1);
Textdraw20 = TextDrawCreate(390.000000, 423.000000, \"LD_DUAL:ex3\");
TextDrawBackgroundColor(Textdraw20, 255);
TextDrawFont(Textdraw20, 4);
TextDrawLetterSize(Textdraw20, 0.500000, 1.000000);
TextDrawColor(Textdraw20, -1);
TextDrawSetOutline(Textdraw20, 0);
TextDrawSetProportional(Textdraw20, 1);
TextDrawSetShadow(Textdraw20, 1);
TextDrawUseBox(Textdraw20, 1);
TextDrawBoxColor(Textdraw20, 255);
TextDrawTextSize(Textdraw20, 28.000000, 26.000000);
Textdraw21 = TextDrawCreate(196.000000, 398.000000, \"LD_DUAL:power\");
TextDrawBackgroundColor(Textdraw21, 255);
TextDrawFont(Textdraw21, 4);
TextDrawLetterSize(Textdraw21, 0.500000, 1.000000);
TextDrawColor(Textdraw21, -65281);
TextDrawSetOutline(Textdraw21, 0);
TextDrawSetProportional(Textdraw21, 1);
TextDrawSetShadow(Textdraw21, 1);
TextDrawUseBox(Textdraw21, 1);
TextDrawBoxColor(Textdraw21, 255);
TextDrawTextSize(Textdraw21, 254.000000, 2.000000);
Textdraw22 = TextDrawCreate(193.000000, 398.000000, \"LD_DUAL:power\");
TextDrawBackgroundColor(Textdraw22, 255);
TextDrawFont(Textdraw22, 4);
TextDrawLetterSize(Textdraw22, 0.500000, 1.000000);
TextDrawColor(Textdraw22, -65281);
TextDrawSetOutline(Textdraw22, 0);
TextDrawSetProportional(Textdraw22, 1);
TextDrawSetShadow(Textdraw22, 1);
TextDrawUseBox(Textdraw22, 1);
TextDrawBoxColor(Textdraw22, 255);
TextDrawTextSize(Textdraw22, 3.000000, 51.000000);
Textdraw23 = TextDrawCreate(450.000000, 398.000000, \"LD_DUAL:power\");
TextDrawBackgroundColor(Textdraw23, 255);
TextDrawFont(Textdraw23, 4);
TextDrawLetterSize(Textdraw23, 0.500000, 1.000000);
TextDrawColor(Textdraw23, -65281);
TextDrawSetOutline(Textdraw23, 0);
TextDrawSetProportional(Textdraw23, 1);
TextDrawSetShadow(Textdraw23, 1);
TextDrawUseBox(Textdraw23, 1);
TextDrawBoxColor(Textdraw23, 255);
TextDrawTextSize(Textdraw23, 3.000000, 51.000000);
Textdraw24 = TextDrawCreate(289.000000, 405.000000, \"LD_DUAL:power\");
TextDrawBackgroundColor(Textdraw24, 255);
TextDrawFont(Textdraw24, 4);
TextDrawLetterSize(Textdraw24, 0.500000, 1.000000);
TextDrawColor(Textdraw24, -65281);
TextDrawSetOutline(Textdraw24, 0);
TextDrawSetProportional(Textdraw24, 1);
TextDrawSetShadow(Textdraw24, 1);
TextDrawUseBox(Textdraw24, 1);
TextDrawBoxColor(Textdraw24, 255);
TextDrawTextSize(Textdraw24, 68.000000, 2.000000);
Textdraw25 = TextDrawCreate(289.000000, 416.000000, \"LD_DUAL:power\");
TextDrawBackgroundColor(Textdraw25, 255);
TextDrawFont(Textdraw25, 4);
TextDrawLetterSize(Textdraw25, 0.500000, 1.000000);
TextDrawColor(Textdraw25, -65281);
TextDrawSetOutline(Textdraw25, 0);
TextDrawSetProportional(Textdraw25, 1);
TextDrawSetShadow(Textdraw25, 1);
TextDrawUseBox(Textdraw25, 1);
TextDrawBoxColor(Textdraw25, 255);
TextDrawTextSize(Textdraw25, 68.000000, 2.000000);
Textdraw26 = TextDrawCreate(289.000000, 407.000000, \"LD_DUAL:power\");
TextDrawBackgroundColor(Textdraw26, 255);
TextDrawFont(Textdraw26, 4);
TextDrawLetterSize(Textdraw26, 0.500000, 1.000000);
TextDrawColor(Textdraw26, -65281);
TextDrawSetOutline(Textdraw26, 0);
TextDrawSetProportional(Textdraw26, 1);
TextDrawSetShadow(Textdraw26, 1);
TextDrawUseBox(Textdraw26, 1);
TextDrawBoxColor(Textdraw26, 255);
TextDrawTextSize(Textdraw26, 3.000000, 9.000000);
Textdraw27 = TextDrawCreate(354.000000, 407.000000, \"LD_DUAL:power\");
TextDrawBackgroundColor(Textdraw27, 255);
TextDrawFont(Textdraw27, 4);
TextDrawLetterSize(Textdraw27, 0.500000, 1.000000);
TextDrawColor(Textdraw27, -65281);
TextDrawSetOutline(Textdraw27, 0);
TextDrawSetProportional(Textdraw27, 1);
TextDrawSetShadow(Textdraw27, 1);
TextDrawUseBox(Textdraw27, 1);
TextDrawBoxColor(Textdraw27, 255);
TextDrawTextSize(Textdraw27, 3.000000, 9.000000);
elsokerek = TextDrawCreate(231.000000, 408.000000, \"LD_BEAT:circle\");
TextDrawBackgroundColor(elsokerek, 255);
TextDrawFont(elsokerek, 4);
TextDrawLetterSize(elsokerek, 0.500000, 1.000000);
TextDrawColor(elsokerek, -1);
TextDrawSetOutline(elsokerek, 0);
TextDrawSetProportional(elsokerek, 1);
TextDrawSetShadow(elsokerek, 1);
TextDrawUseBox(elsokerek, 1);
TextDrawBoxColor(elsokerek, 255);
TextDrawTextSize(elsokerek, 12.000000, 10.000000);
hatsokerek = TextDrawCreate(231.000000, 438.000000, \"LD_BEAT:circle\");
TextDrawBackgroundColor(hatsokerek, 255);
TextDrawFont(hatsokerek, 4);
TextDrawLetterSize(hatsokerek, 0.500000, 1.000000);
TextDrawColor(hatsokerek, -1);
TextDrawSetOutline(hatsokerek, 0);
TextDrawSetProportional(hatsokerek, 1);
TextDrawSetShadow(hatsokerek, 1);
TextDrawUseBox(hatsokerek, 1);
TextDrawBoxColor(hatsokerek, 255);
TextDrawTextSize(hatsokerek, 12.000000, 10.000000);
}
return 1;
}
public OnFilterScriptExit()
{
    for(new i=0; i<JATEKOSOK; i++){
TextDrawHideForAll(Textdraw0);
TextDrawHideForAll(SpeedMeter);
TextDrawHideForAll(Textdraw3);
TextDrawHideForAll(Textdraw4);
TextDrawHideForAll(Textdraw5);
TextDrawHideForAll(kocsialap);
TextDrawHideForAll(balelso);
TextDrawHideForAll(jobbelso);
TextDrawHideForAll(jobbhatso);
TextDrawHideForAll(balhatso);
TextDrawHideForAll(Textdraw17);
TextDrawHideForAll(Textdraw18);
TextDrawHideForAll(Textdraw19);
TextDrawHideForAll(Textdraw20);
TextDrawHideForAll(Textdraw21);
TextDrawHideForAll(Textdraw22);
TextDrawHideForAll(Textdraw23);
TextDrawHideForAll(Textdraw24);
TextDrawHideForAll(Textdraw25);
TextDrawHideForAll(Textdraw26);
TextDrawHideForAll(Textdraw27);
}
return 1;
}
#define CAR 0
#define BIKE 1
#define MOTORBIKE 2
#define BOAT 3
#define PLANE 4
#define RC 5
#define TRAIN 6
#define TRAILER 7
#define HELICOPTER 8
stock GetVehicleType(vehicleid)
{
switch(GetVehicleModel(vehicleid))
{
case 400 .. 416, 418 .. 424, 426 .. 429, 431 .. 434, 436 .. 440, 442 .. 445, 451, 455 .. 459, 466, 467, 470, 471, 474, 475, 477 .. 480, 482, 483, 485, 486, 489 .. 492, 494 .. 496, 498 .. 500, 502 .. 508, 514 .. 518, 524 .. 536, 539 .. 547, 549 .. 552, 554 .. 562, 565 .. 568, 571 .. 576, 578 .. 580, 582, 583, 585, 587 .. 589, 596 .. 605, 609: return CAR;
case 481, 509, 510: return BIKE;
case 448, 461 .. 463, 468, 521 .. 523, 581, 586: return MOTORBIKE;
case 430, 446, 452 .. 454, 472, 473, 484, 493, 595: return BOAT;
case 460, 476, 511 .. 513, 519, 520, 553, 577, 592, 593: return PLANE;
case 441, 464, 465, 501, 564, 594: return RC;
case 449, 537, 538, 569, 570, 590: return TRAIN;
case 435, 450, 584, 591, 606 .. 608, 610, 611: return TRAILER;
case 417, 425, 447, 469, 487, 488, 497, 548, 563: return HELICOPTER;
}
return -1;
}
 
forward UpdateBoard();
public UpdateBoard()
{
    new Float:LPosX;
new Float:LPosY;
new Float:LPosZ;
new Float:PlayerSpeedDistance;
new value;
new Float:VehHealth;
new speedstr[4], vnamestr[50], vhpstr[50];
new panels,doors,lights,tires;
    for(new i=0; i<JATEKOSOK; i++)
{
if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
{
GetPlayerPos(i, LPosX, LPosY, LPosZ);
GetPlayerVehicleID(i);
GetVehicleDamageStatus(GetPlayerVehicleID(i),panels,doors,lights,tires);
GetVehicleHealth(GetPlayerVehicleID(i), VehHealth);
PlayerSpeedDistance = floatsqroot(floatpower(floatabs(floatsub(LPosX,ReadPlayerPosition[ReadX])),2)+floatpower(floatabs(floatsub(LPosY,ReadPlayerPosition[ReadY])),2)+floatpower(floatabs(floatsub(LPosZ,ReadPlayerPosition[ReadZ])),2));
value = floatround(PlayerSpeedDistance * 5000);
new LKPH = floatround(value/1000);
TextDrawShowForPlayer(i, Textdraw0);
TextDrawShowForPlayer(i, SpeedMeter);
TextDrawShowForPlayer(i, Textdraw3);
TextDrawShowForPlayer(i, Textdraw4);
TextDrawShowForPlayer(i, Textdraw5);
TextDrawShowForPlayer(i, Textdraw17);
TextDrawShowForPlayer(i, Textdraw18);
TextDrawShowForPlayer(i, Textdraw19);
TextDrawShowForPlayer(i, Textdraw21);
TextDrawShowForPlayer(i, Textdraw22);
TextDrawShowForPlayer(i, Textdraw23);
TextDrawShowForPlayer(i, Textdraw24);
TextDrawShowForPlayer(i, Textdraw25);
TextDrawShowForPlayer(i, Textdraw26);
TextDrawShowForPlayer(i, Textdraw27);
if(VehHealth <= 250) {
TextDrawShowForPlayer(i, Textdraw20);
} else if(VehHealth > 250) {
TextDrawHideForPlayer(i, Textdraw20);
}
 
format(speedstr,sizeof(speedstr),\"%d\",LKPH);
TextDrawSetString(SpeedMeter, speedstr);
format(vnamestr,sizeof(vnamestr),\"%s\",LVehiclesName[GetVehicleModel(GetPlayerVehicleID(i))-400]);
TextDrawSetString(Textdraw18, vnamestr);
format(vhpstr,sizeof(vhpstr),\"%.2f\",VehHealth);
TextDrawSetString(Textdraw19, vhpstr);
if(GetVehicleType(GetPlayerVehicleID(i)) == CAR) {
TextDrawShowForPlayer(i, kocsialap);
TextDrawShowForPlayer(i, balelso);
TextDrawShowForPlayer(i, jobbelso);
TextDrawShowForPlayer(i, jobbhatso);
TextDrawShowForPlayer(i, balhatso);
if(tires == 0) {
TextDrawSetString(balelso, \"LD_BEAT:circle\");
TextDrawSetString(jobbelso, \"LD_BEAT:circle\");
TextDrawSetString(balhatso, \"LD_BEAT:circle\");
TextDrawSetString(jobbhatso, \"LD_BEAT:circle\");
} else if(tires == 1) {
TextDrawSetString(balelso, \"LD_BEAT:circle\");
TextDrawSetString(jobbelso, \"LD_BEAT:circle\");
TextDrawSetString(balhatso, \"LD_BEAT:circle\");
TextDrawSetString(jobbhatso, \"LD_BEAT:cross\");
} else if(tires == 2) {
TextDrawSetString(balelso, \"LD_BEAT:circle\");
TextDrawSetString(jobbelso, \"LD_BEAT:cross\");
TextDrawSetString(balhatso, \"LD_BEAT:circle\");
TextDrawSetString(jobbhatso, \"LD_BEAT:circle\");
} else if(tires == 3) {
TextDrawSetString(balelso, \"LD_BEAT:circle\");
TextDrawSetString(jobbelso, \"LD_BEAT:cross\");
TextDrawSetString(balhatso, \"LD_BEAT:circle\");
TextDrawSetString(jobbhatso, \"LD_BEAT:cross\");
} else if(tires == 4) {
TextDrawSetString(balelso, \"LD_BEAT:circle\");
TextDrawSetString(jobbelso, \"LD_BEAT:circle\");
TextDrawSetString(balhatso, \"LD_BEAT:cross\");
TextDrawSetString(jobbhatso, \"LD_BEAT:circle\");
} else if(tires == 5) {
TextDrawSetString(balelso, \"LD_BEAT:circle\");
TextDrawSetString(jobbelso, \"LD_BEAT:cross\");
TextDrawSetString(balhatso, \"LD_BEAT:circle\");
TextDrawSetString(jobbhatso, \"LD_BEAT:circle\");
} else if(tires == 6) {
TextDrawSetString(balelso, \"LD_BEAT:circle\");
TextDrawSetString(jobbelso, \"LD_BEAT:circle\");
TextDrawSetString(balhatso, \"LD_BEAT:cross\");
TextDrawSetString(jobbhatso, \"LD_BEAT:cross\");
} else if(tires == 7) {
TextDrawSetString(balelso, \"LD_BEAT:circle\");
TextDrawSetString(jobbelso, \"LD_BEAT:cross\");
TextDrawSetString(balhatso, \"LD_BEAT:cross\");
TextDrawSetString(jobbhatso, \"LD_BEAT:cross\");
} else if(tires == 8) {
TextDrawSetString(balelso, \"LD_BEAT:cross\");
TextDrawSetString(jobbelso, \"LD_BEAT:circle\");
TextDrawSetString(balhatso, \"LD_BEAT:circle\");
TextDrawSetString(jobbhatso, \"LD_BEAT:circle\");
} else if(tires == 9) {
TextDrawSetString(balelso, \"LD_BEAT:cross\");
TextDrawSetString(jobbelso, \"LD_BEAT:circle\");
TextDrawSetString(balhatso, \"LD_BEAT:circle\");
TextDrawSetString(jobbhatso, \"LD_BEAT:cross\");
} else if(tires == 10) {
TextDrawSetString(balelso, \"LD_BEAT:cross\");
TextDrawSetString(jobbelso, \"LD_BEAT:cross\");
TextDrawSetString(balhatso, \"LD_BEAT:circle\");
TextDrawSetString(jobbhatso, \"LD_BEAT:circle\");
} else if(tires == 11) {
TextDrawSetString(balelso, \"LD_BEAT:cross\");
TextDrawSetString(jobbelso, \"LD_BEAT:cross\");
TextDrawSetString(balhatso, \"LD_BEAT:circle\");
TextDrawSetString(jobbhatso, \"LD_BEAT:cross\");
} else if(tires == 12) {
TextDrawSetString(balelso, \"LD_BEAT:cross\");
TextDrawSetString(jobbelso, \"LD_BEAT:circle\");
TextDrawSetString(balhatso, \"LD_BEAT:cross\");
TextDrawSetString(jobbhatso, \"LD_BEAT:circle\");
} else if(tires == 13) {
TextDrawSetString(balelso, \"LD_BEAT:cross\");
TextDrawSetString(jobbelso, \"LD_BEAT:circle\");
TextDrawSetString(balhatso, \"LD_BEAT:cross\");
TextDrawSetString(jobbhatso, \"LD_BEAT:cross\");
} else if(tires == 14) {
TextDrawSetString(balelso, \"LD_BEAT:circle\");
TextDrawSetString(jobbelso, \"LD_BEAT:circle\");
TextDrawSetString(balhatso, \"LD_BEAT:circle\");
TextDrawSetString(jobbhatso, \"LD_BEAT:cross\");
} else if(tires == 15) {
TextDrawSetString(balelso, \"LD_BEAT:cross\");
TextDrawSetString(jobbelso, \"LD_BEAT:cross\");
TextDrawSetString(balhatso, \"LD_BEAT:cross\");
TextDrawSetString(jobbhatso, \"LD_BEAT:cross\");
}
} else if(GetVehicleType(GetPlayerVehicleID(i)) == MOTORBIKE || GetVehicleType(GetPlayerVehicleID(i)) == BIKE) {
TextDrawShowForPlayer(i, motoralap);
TextDrawShowForPlayer(i, elsokerek);
TextDrawShowForPlayer(i, hatsokerek);
} else if(GetVehicleType(GetPlayerVehicleID(i)) == BOAT || GetVehicleType(GetPlayerVehicleID(i)) == PLANE || GetVehicleType(GetPlayerVehicleID(i)) == RC || GetVehicleType(GetPlayerVehicleID(i)) == TRAIN || GetVehicleType(GetPlayerVehicleID(i)) == HELICOPTER) {
TextDrawHideForPlayer(i, kocsialap);
TextDrawHideForPlayer(i, motoralap);
TextDrawHideForPlayer(i, elsokerek);
TextDrawHideForPlayer(i, hatsokerek);
TextDrawHideForPlayer(i, balelso);
TextDrawHideForPlayer(i, jobbelso);
TextDrawHideForPlayer(i, jobbhatso);
TextDrawHideForPlayer(i, balhatso);
}
 
}
ReadPlayerPosition[ReadX] = LPosX, ReadPlayerPosition[ReadY] = LPosY, ReadPlayerPosition[ReadZ] = LPosZ;}
for(new i=0; i<JATEKOSOK; i++){
if(!IsPlayerInAnyVehicle(i)){
TextDrawHideForPlayer(i, Textdraw0);
TextDrawHideForPlayer(i, SpeedMeter);
TextDrawHideForPlayer(i, Textdraw3);
TextDrawHideForPlayer(i, Textdraw4);
TextDrawHideForPlayer(i, Textdraw5);
TextDrawHideForPlayer(i, kocsialap);
TextDrawHideForPlayer(i, motoralap);
TextDrawHideForPlayer(i, elsokerek);
TextDrawHideForPlayer(i, hatsokerek);
TextDrawHideForPlayer(i, balelso);
TextDrawHideForPlayer(i, jobbelso);
TextDrawHideForPlayer(i, jobbhatso);
TextDrawHideForPlayer(i, balhatso);
TextDrawHideForPlayer(i, Textdraw17);
TextDrawHideForPlayer(i, Textdraw18);
TextDrawHideForPlayer(i, Textdraw19);
TextDrawHideForPlayer(i, Textdraw20);
TextDrawHideForPlayer(i, Textdraw21);
TextDrawHideForPlayer(i, Textdraw22);
TextDrawHideForPlayer(i, Textdraw23);
TextDrawHideForPlayer(i, Textdraw24);
TextDrawHideForPlayer(i, Textdraw25);
TextDrawHideForPlayer(i, Textdraw26);
TextDrawHideForPlayer(i, Textdraw27);
}
}
return 1;
}
 

public OnVehicleSpawn(vehicleid)
{
ReadPosition(vehicleid);
return 1;
}
stock DistanceToPoint(vehicleid)
{
new Float:LPlayerX, Float:LPlayerY, Float:LPlayerZ, Float:LReadPos;
GetVehiclePos(vehicleid, LPlayerX, LPlayerY, LPlayerZ);
LReadPos = floatsqroot(floatpower(floatabs(floatsub(LPlayerX, VehPosX[vehicleid])), 2)+floatpower(floatabs(floatsub(LPlayerY, VehPosY[vehicleid])), 2)+floatpower(floatabs(floatsub(LPlayerZ, VehPosZ[vehicleid])), 2));
return floatround(LReadPos);
}
stock ReadPosition(vehicleid)
{
    new Float:LReadX, Float:LReadY, Float:LReadZ;
    GetVehiclePos(vehicleid, LReadX, LReadY, LReadZ);
VehPosX[vehicleid]=LReadX; VehPosY[vehicleid]=LReadY; VehPosZ[vehicleid]=LReadZ;
}

 
A Speedo-s cuccot a LuxSpeedo meterbol szedtem.
A tovabbi fejlesztesben a Lampa, Index, NOS textdrawokat szeretnem hozza tenni.
Fenykep:
\"scarboard.jpg\"
http://imageshack.us/f/521/scarboard.jpg/
« Utoljára szerkesztve: 2012. június 19. - 16:21:24 írta xSkillZ7x »

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
GumiInfo Script by SkillZ (SCarBoard)
« Válasz #1 Dátum: 2012. június 19. - 15:55:45 »
0 Show voters
képet mutatnál pls ?

GumiInfo Script by SkillZ (SCarBoard)
« Válasz #2 Dátum: 2012. június 19. - 18:46:25 »
0 Show voters
Neharagudj de ez kurva jo :) Nagyon grat!!

GumiInfo Script by SkillZ (SCarBoard)
« Válasz #3 Dátum: 2012. június 19. - 18:54:14 »
0 Show voters
Megnézem, mert jól hangzik.  ;D
Javaslatok a következõ verzióhoz
 
  • Text helyett PlayerText használata

  • TextDraw nevek egyszerûsítése (például tömbbel)

  • Felesleges függvények eltávolítása

« Utoljára szerkesztve: 2012. június 19. - 19:06:38 írta TengeriMalac »

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
GumiInfo Script by SkillZ (SCarBoard)
« Válasz #4 Dátum: 2012. június 19. - 19:11:43 »
0 Show voters
Szép lett!
Ment a +! :)

GumiInfo Script by SkillZ (SCarBoard)
« Válasz #5 Dátum: 2012. június 19. - 19:30:59 »
+1 Show voters
OFF: a fele forum 16 biten játszik?  :-[

Nem elérhető Popec16

  • 1267
    • Profil megtekintése
GumiInfo Script by SkillZ (SCarBoard)
« Válasz #6 Dátum: 2012. június 20. - 03:43:23 »
0 Show voters
Szép script, ügyes vagy! :)

GumiInfo Script by SkillZ (SCarBoard)
« Válasz #7 Dátum: 2012. június 20. - 07:26:47 »
0 Show voters
Koszonom mindenkinek.Ja es TengeriMalac.Meg fogom csinalni ahogy mondtad.mondtam h nem vaok pro szval sok hibam van az biztos.

GumiInfo Script by SkillZ (SCarBoard)
« Válasz #8 Dátum: 2012. június 20. - 19:06:26 »
0 Show voters
Nagyon jó script. Gratulálok, így tovább. :)

GumiInfo Script by SkillZ (SCarBoard)
« Válasz #9 Dátum: 2012. június 20. - 22:20:40 »
0 Show voters
Jó Script. Csak így tovább! Ment a Respect.

Nem elérhető Sramm

  • 596
    • Profil megtekintése
GumiInfo Script by SkillZ (SCarBoard)
« Válasz #10 Dátum: 2012. június 21. - 09:51:40 »
0 Show voters
Ezeket a képeket meg lehet nézni valahol? Gondolom nem kitaláltad.

Nem elérhető IXT

  • 2502
  • Steph Curry
    • Profil megtekintése
GumiInfo Script by SkillZ (SCarBoard)
« Válasz #11 Dátum: 2012. június 21. - 10:01:05 »
0 Show voters
ez de állat! grat +  ;)

Nem elérhető rewan

  • 960
    • Profil megtekintése
GumiInfo Script by SkillZ (SCarBoard)
« Válasz #12 Dátum: 2012. június 21. - 10:22:51 »
0 Show voters
Kép alapján jól néz ki, milyen SAMP verzió igénye van
Bár 0.3e-re szavazok :(

GumiInfo Script by SkillZ (SCarBoard)
« Válasz #13 Dátum: 2012. június 21. - 14:09:21 »
0 Show voters
Nem tudom hogy hanyas verzioban van mar meg a Textura.De azt hiszem 0.3e

Nem elérhető Olie

  • 892
  • Roleplay Õrült
    • Profil megtekintése
GumiInfo Script by SkillZ (SCarBoard)
« Válasz #14 Dátum: 2012. június 21. - 16:07:39 »
0 Show voters
Szép lett!
Így tovább!
// 16 biten hát :D //

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal