Szerző Téma: Jármûtípus kiírás  (Megtekintve 1053 alkalommal)

Nem elérhető Wiliam Levy

  • 594
  • Wiliam Levy
    • Profil megtekintése
Jármûtípus kiírás
« Dátum: 2012. február 17. - 16:03:34 »
0 Show voters
Hali nekem az kéne(gamemodeba) hogy ha beleül egy autóba, akkor kiírja a jármû tipusát, de ugy kéne hogy a mode elején definálva van az össze jármûíd-re egy név. szoval beleülök eg yvillamosba akkkor nem azt irja hogy tram, hanem mondjuk UV villamos, de mindenkinek.
szoval hogy én állítom be hogy melyik jármû id-nek mi legyen a neve

Nem elérhető DaVe

  • 149
    • Profil megtekintése
Jármûtípus kiírás
« Válasz #1 Dátum: 2012. február 17. - 16:15:58 »
0 Show voters
[pawn]//fsdebug filterszkriptbõl
new aVehicleNames[212][] = {   // Vehicle Names - Betamaster
{\"Landstalker\"},
{\"Bravura\"},
{\"Buffalo\"},
{\"Linerunner\"},
{\"Perrenial\"},
{\"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 1\"}, //artict1
{\"Previon\"},
{\"Coach\"},
{\"Cabbie\"},
{\"Stallion\"},
{\"Rumpo\"},
{\"RC Bandit\"},
{\"Romero\"},
{\"Packer\"},
{\"Monster\"},
{\"Admiral\"},
{\"Squalo\"},
{\"Seasparrow\"},
{\"Pizzaboy\"},
{\"Tram\"},
{\"Trailer 2\"}, //artict2
{\"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 A\"}, //hotrina
{\"Hotring Racer B\"}, //hotrinb
{\"Bloodring Banger\"},
{\"Rancher\"},
{\"Super GT\"},
{\"Elegant\"},
{\"Journey\"},
{\"Bike\"},
{\"Mountain Bike\"},
{\"Beagle\"},
{\"Cropdust\"},
{\"Stunt\"},
{\"Tanker\"}, //petro
{\"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 LA\"}, //firela
{\"Hustler\"},
{\"Intruder\"},
{\"Primo\"},
{\"Cargobob\"},
{\"Tampa\"},
{\"Sunrise\"},
{\"Merit\"},
{\"Utility\"},
{\"Nevada\"},
{\"Yosemite\"},
{\"Windsor\"},
{\"Monster A\"}, //monstera
{\"Monster B\"}, //monsterb
{\"Uranus\"},
{\"Jester\"},
{\"Sultan\"},
{\"Stratum\"},
{\"Elegy\"},
{\"Raindance\"},
{\"RC Tiger\"},
{\"Flash\"},
{\"Tahoma\"},
{\"Savanna\"},
{\"Bandito\"},
{\"Freight Flat\"}, //freiflat
{\"Streak Carriage\"}, //streakc
{\"Kart\"},
{\"Mower\"},
{\"Duneride\"},
{\"Sweeper\"},
{\"Broadway\"},
{\"Tornado\"},
{\"AT-400\"},
{\"DFT-30\"},
{\"Huntley\"},
{\"Stafford\"},
{\"BF-400\"},
{\"Newsvan\"},
{\"Tug\"},
{\"Trailer 3\"}, //petrotr
{\"Emperor\"},
{\"Wayfarer\"},
{\"Euros\"},
{\"Hotdog\"},
{\"Club\"},
{\"Freight Carriage\"}, //freibox
{\"Trailer 3\"}, //artict3
{\"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 A\"}, //bagboxa
{\"Luggage Trailer B\"}, //bagboxb
{\"Stair Trailer\"}, //tugstair
{\"Boxville\"},
{\"Farm Plow\"}, //farmtr1
{\"Utility Trailer\"} //utiltr1
};
OnPlayerStateChange(playerid,newstate,oldstate)
{
  if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
  {
    GameTextForPlayer(playerid,aVehicleNames[GetVehicleModel(GetPlayerVehicleID(playerid))+400],1000,0);
  }
}[/pawn]

Nem elérhető Wiliam Levy

  • 594
  • Wiliam Levy
    • Profil megtekintése
Jármûtípus kiírás
« Válasz #2 Dátum: 2012. február 17. - 16:42:58 »
0 Show voters
Idézetet írta: DaVe date=1329491758\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"17166\" data-ipsquote-contentclass=\"forums_Topic
[pawn]//fsdebug filterszkriptbõl
new aVehicleNames[212][] = {   // Vehicle Names - Betamaster
{\"Landstalker\"},
{\"Bravura\"},
{\"Buffalo\"},
{\"Linerunner\"},
{\"Perrenial\"},
{\"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 1\"}, //artict1
{\"Previon\"},
{\"Coach\"},
{\"Cabbie\"},
{\"Stallion\"},
{\"Rumpo\"},
{\"RC Bandit\"},
{\"Romero\"},
{\"Packer\"},
{\"Monster\"},
{\"Admiral\"},
{\"Squalo\"},
{\"Seasparrow\"},
{\"Pizzaboy\"},
{\"Tram\"},
{\"Trailer 2\"}, //artict2
{\"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 A\"}, //hotrina
{\"Hotring Racer B\"}, //hotrinb
{\"Bloodring Banger\"},
{\"Rancher\"},
{\"Super GT\"},
{\"Elegant\"},
{\"Journey\"},
{\"Bike\"},
{\"Mountain Bike\"},
{\"Beagle\"},
{\"Cropdust\"},
{\"Stunt\"},
{\"Tanker\"}, //petro
{\"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 LA\"}, //firela
{\"Hustler\"},
{\"Intruder\"},
{\"Primo\"},
{\"Cargobob\"},
{\"Tampa\"},
{\"Sunrise\"},
{\"Merit\"},
{\"Utility\"},
{\"Nevada\"},
{\"Yosemite\"},
{\"Windsor\"},
{\"Monster A\"}, //monstera
{\"Monster B\"}, //monsterb
{\"Uranus\"},
{\"Jester\"},
{\"Sultan\"},
{\"Stratum\"},
{\"Elegy\"},
{\"Raindance\"},
{\"RC Tiger\"},
{\"Flash\"},
{\"Tahoma\"},
{\"Savanna\"},
{\"Bandito\"},
{\"Freight Flat\"}, //freiflat
{\"Streak Carriage\"}, //streakc
{\"Kart\"},
{\"Mower\"},
{\"Duneride\"},
{\"Sweeper\"},
{\"Broadway\"},
{\"Tornado\"},
{\"AT-400\"},
{\"DFT-30\"},
{\"Huntley\"},
{\"Stafford\"},
{\"BF-400\"},
{\"Newsvan\"},
{\"Tug\"},
{\"Trailer 3\"}, //petrotr
{\"Emperor\"},
{\"Wayfarer\"},
{\"Euros\"},
{\"Hotdog\"},
{\"Club\"},
{\"Freight Carriage\"}, //freibox
{\"Trailer 3\"}, //artict3
{\"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 A\"}, //bagboxa
{\"Luggage Trailer B\"}, //bagboxb
{\"Stair Trailer\"}, //tugstair
{\"Boxville\"},
{\"Farm Plow\"}, //farmtr1
{\"Utility Trailer\"} //utiltr1
};
OnPlayerStateChange(playerid,newstate,oldstate)
{
  if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
  {
    GameTextForPlayer(playerid,aVehicleNames[GetVehicleModel(GetPlayerVehicleID(playerid))+400],1000,0);
  }
}[/pawn]
 
Nekem az kéne hogy a mikor beülök a kocsiba akkor kiírja SendClientMessage-vel hogy: Most egy XY tipusú jármûben ülsz sofõrként utasként majd megoldom

Nem elérhető nyE

  • 1745
    • Profil megtekintése
Jármûtípus kiírás
« Válasz #3 Dátum: 2012. február 17. - 16:56:42 »
0 Show voters
[pawn]
new VehicleNames[212][] = {
{\"Landstalker\"},{\"Bravura\"},{\"Buffalo\"},{\"Linerunner\"},{\"Perrenial\"},{\"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 1\"},{\"Previon\"},
{\"Coach\"},{\"Cabbie\"},{\"Stallion\"},{\"Rumpo\"},{\"RC Bandit\"},{\"Romero\"},{\"Packer\"},{\"Monster\"},
{\"Admiral\"},{\"Squalo\"},{\"Seasparrow\"},{\"Pizzaboy\"},{\"Tram\"},{\"Trailer 2\"},{\"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 A\"},{\"Hotring Racer B\"},{\"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 LA\"},{\"Hustler\"},{\"Intruder\"},{\"Primo\"},{\"Cargobob\"},{\"Tampa\"},{\"Sunrise\"},{\"Merit\"},
{\"Utility\"},{\"Nevada\"},{\"Yosemite\"},{\"Windsor\"},{\"Monster A\"},{\"Monster B\"},{\"Uranus\"},{\"Jester\"},
{\"Sultan\"},{\"Stratum\"},{\"Elegy\"},{\"Raindance\"},{\"RC Tiger\"},{\"Flash\"},{\"Tahoma\"},{\"Savanna\"},
{\"Bandito\"},{\"Freight Flat\"},{\"Streak Carriage\"},{\"Kart\"},{\"Mower\"},{\"Duneride\"},{\"Sweeper\"},
{\"Broadway\"},{\"Tornado\"},{\"AT-400\"},{\"DFT-30\"},{\"Huntley\"},{\"Stafford\"},{\"BF-400\"},{\"Newsvan\"},
{\"Tug\"},{\"Trailer 3\"},{\"Emperor\"},{\"Wayfarer\"},{\"Euros\"},{\"Hotdog\"},{\"Club\"},{\"Freight Carriage\"},
{\"Trailer 3\"},{\"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 A\"},{\"Luggage Trailer B\"},{\"Stair Trailer\"},{\"Boxville\"},{\"Farm Plow\"},
{\"Utility Trailer\"}
};
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new string[128];
    if(newstate == PLAYER_STATE_DRIVER) // Ha Sofõr
    {
format(string, sizeof(string), \"%s\",VehicleNames[GetVehicleModel(GetPlayerVehicleID(playerid)) - 400]);
SendClientMessage(playerid, COLOR_RED, string);
    }
    if(newstate == PLAYER_STATE_PASSENGER) // Ha Utas
    {
format(string, sizeof(string), \"~r~%s\",VehicleNames[GetVehicleModel(GetPlayerVehicleID(playerid)) - 400]);
SendClientMessage(playerid, COLOR_RED, string);
    }
}[/pawn]

Nem elérhető DaVe

  • 149
    • Profil megtekintése
Jármûtípus kiírás
« Válasz #4 Dátum: 2012. február 17. - 16:58:10 »
0 Show voters
[pawn]OnPlayerStateChange(playerid,newstate,oldstate)
{
  if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
  {
    new str[128];
    format(str,sizeof str,\"Most egy %s típusú jármûben ülsz\",aVehicleNames[GetVehicleModel(GetPlayerVehicleID(playerid))+400])
    SendClientMessage(playerid,SZIN,str);
  }
}[/pawn]
E: Megelõztek :)

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
Jármûtípus kiírás
« Válasz #5 Dátum: 2012. február 17. - 18:27:53 »
0 Show voters
public-ot elfelejtettem! :)
 
OnPlayerStateChange(playerid,newstate,oldstate)

 
Helyett:
 
public OnPlayerStateChange(playerid,newstate,oldstate)

Nem elérhető Wiliam Levy

  • 594
  • Wiliam Levy
    • Profil megtekintése
Jármûtípus kiírás
« Válasz #6 Dátum: 2012. február 17. - 20:14:21 »
0 Show voters
Nah akkor érthetõbben..
Nekem ugy kéne ez az egész, hogy [pawn]public OnPlayerEnterVehicle[/pawn] be van...

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
Jármûtípus kiírás
« Válasz #7 Dátum: 2012. február 17. - 20:40:25 »
0 Show voters
Megcsináltam neked antonyo példája szerint.
Nem teszteltem!
 
#include <a_samp>
new VehicleNames[212][] = {
{\"Landstalker\"},{\"Bravura\"},{\"Buffalo\"},{\"Linerunner\"},{\"Perrenial\"},{\"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 1\"},{\"Previon\"},
{\"Coach\"},{\"Cabbie\"},{\"Stallion\"},{\"Rumpo\"},{\"RC Bandit\"},{\"Romero\"},{\"Packer\"},{\"Monster\"},
{\"Admiral\"},{\"Squalo\"},{\"Seasparrow\"},{\"Pizzaboy\"},{\"Tram\"},{\"Trailer 2\"},{\"Turismo\"},
{\"Speeder\"},{\"Reefer\"},{\"Tropic\"},{\"Flatbed\"},{\"Yankee\"},{\"Caddy\"},{\"Solair\"},{\"Berkley&#039;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 A\"},{\"Hotring Racer B\"},{\"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 LA\"},{\"Hustler\"},{\"Intruder\"},{\"Primo\"},{\"Cargobob\"},{\"Tampa\"},{\"Sunrise\"},{\"Merit\"},
{\"Utility\"},{\"Nevada\"},{\"Yosemite\"},{\"Windsor\"},{\"Monster A\"},{\"Monster B\"},{\"Uranus\"},{\"Jester\"},
{\"Sultan\"},{\"Stratum\"},{\"Elegy\"},{\"Raindance\"},{\"RC Tiger\"},{\"Flash\"},{\"Tahoma\"},{\"Savanna\"},
{\"Bandito\"},{\"Freight Flat\"},{\"Streak Carriage\"},{\"Kart\"},{\"Mower\"},{\"Duneride\"},{\"Sweeper\"},
{\"Broadway\"},{\"Tornado\"},{\"AT-400\"},{\"DFT-30\"},{\"Huntley\"},{\"Stafford\"},{\"BF-400\"},{\"Newsvan\"},
{\"Tug\"},{\"Trailer 3\"},{\"Emperor\"},{\"Wayfarer\"},{\"Euros\"},{\"Hotdog\"},{\"Club\"},{\"Freight Carriage\"},
{\"Trailer 3\"},{\"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 A\"},{\"Luggage Trailer B\"},{\"Stair Trailer\"},{\"Boxville\"},{\"Farm Plow\"},
{\"Utility Trailer\"}
};
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new string[256];
format(string, sizeof(string), \"%s\",VehicleNames[GetVehicleModel(GetPlayerVehicleID(playerid)) - 400]);
SendClientMessage(playerid, 0xE60000FF, string);
return 1;
}

Nem elérhető DaVe

  • 149
    • Profil megtekintése
Jármûtípus kiírás
« Válasz #8 Dátum: 2012. február 17. - 20:54:03 »
0 Show voters
OnPlayerEnterVehicle alatt azért nem célszerû mert az akkor hívódik meg amikor a játékos entert(vagy amire a beszállás állítva van) nyom és nem akkor amikor ténylegesen beszállt a jármûbe

Nem elérhető Wiliam Levy

  • 594
  • Wiliam Levy
    • Profil megtekintése
Jármûtípus kiírás
« Válasz #9 Dátum: 2012. február 17. - 21:31:18 »
0 Show voters
Idézetet írta: DaVe date=1329508443\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"17166\" data-ipsquote-contentclass=\"forums_Topic
OnPlayerEnterVehicle alatt azért nem célszerû mert az akkor hívódik meg amikor a játékos entert(vagy amire a beszállás állítva van) nyom és nem akkor amikor ténylegesen beszállt a jármûbe
 
Tökre mindegy, ugyanis egyikse jó...
nem erroros meg semmi, csak nem mûködik... megnyomom az enteert semmi.. beül semmi :S

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal