[FilterScript] Autos por comandos (todos los autos)
#1

Hola a muchos les gustaria en servers sus dms, o especialemente freeroams o drifts usar carros por comandos

Ejemplo: /cheetah > spawneas 1 cheetah

Pero es dicifil encontrar un fs con los mismos, al menos yo no pude encontrar pues decidi hacer 1 fs con estos, para que los que no lo podian encontrar como yo ahora ya puedan...

Use:

*dcmd
*CarSpawner (funcion)

Contiene:

*Todos los autos enumerados desde la wiki a exepcion de los autos tipos "cheats" como tanques, hydras, rcs (los tipos cheats) esos no los puse...

pawn Код:
#define FILTERSCRIPT

#include <a_samp>

//============BY JEANPIERREVERA=================//
/////////////////////////////////////////////////
/*                 ;)                             */
#define COLOR_ROJO 0xFF0000FF

enum AutoPlayer
{
pCar
};
new AccInfo[MAX_PLAYERS][AutoPlayer];


forward CarSpawner(playerid,model);
forward ResAuto(vehicleid);
forward BorrarAuto(vehicleid);
//===========================================//

#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1

#if defined FILTERSCRIPT


public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print("Cargados carros por comandos!");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else

#endif

forward CarSpawner(playerid,model);

public BorrarAuto(vehicleid)
{
    for(new i=0;i<MAX_PLAYERS;i++)
    {
        new Float:X,Float:Y,Float:Z;
        if(IsPlayerInVehicle(i, vehicleid))
        {
        RemovePlayerFromVehicle(i);
        GetPlayerPos(i,X,Y,Z);
        SetPlayerPos(i,X,Y+3,Z);
        }
        SetVehicleParamsForPlayer(vehicleid,i,0,1);
    }
    SetTimerEx("ResAuto",1500,0,"i",vehicleid);
}


public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(Landstalker,    11, cmdtext);
    dcmd(Bravura,         7, cmdtext);
    dcmd(Buffalo,         7, cmdtext);
    dcmd(Perenniel,       9, cmdtext);
    dcmd(Linerunner,     10, cmdtext);
    dcmd(Sentinel,        8, cmdtext);
    dcmd(Dumper,          6, cmdtext);
    dcmd(Firetruck,       9, cmdtext);
    dcmd(Trashmaster,    11, cmdtext);
    dcmd(Stretch,         7, cmdtext);
    dcmd(Manana,          6, cmdtext);
    dcmd(Infernus,        8, cmdtext);
    dcmd(Voodoo,          6, cmdtext);
    dcmd(Pony,            4, cmdtext);
    dcmd(Mule,            4, cmdtext);
    dcmd(Cheetah,         7, cmdtext);
    dcmd(Ambulance,       9, cmdtext);
    dcmd(Leviathan,       9, cmdtext);
    dcmd(Moonbeam,        8, cmdtext);
    dcmd(Esperanto,       9, cmdtext);
    dcmd(Taxi,            4, cmdtext);
    dcmd(Washington,     10, cmdtext);
    dcmd(Bobcat,          6, cmdtext);
    dcmd(Mr_Whoopee,     10, cmdtext);
    dcmd(BF_Injection,   12, cmdtext);
    //prohibido = dcmd(hunter, xD);
    dcmd(Premier,         7, cmdtext);
    dcmd(Enforcer,        8, cmdtext);
    dcmd(Seguricar,       9, cmdtext);
    dcmd(Banshee,         7, cmdtext);
    dcmd(Predator,        8, cmdtext);
    dcmd(Bus,             3, cmdtext);
    //prohibido = dcmd(rhino, xD);
    dcmd(Barracks,        8, cmdtext);
    dcmd(Hotknife,        8, cmdtext);
    dcmd(Article_Trailer,15, cmdtext);
    dcmd(Previon,         7, cmdtext);
    dcmd(Coach,           5, cmdtext);
    dcmd(Cabbie,          6, cmdtext);
    dcmd(Stallion,        8, cmdtext);
    dcmd(Rumpo,           5, cmdtext);
    dcmd(RC_Bandit,       9, cmdtext);
    dcmd(Romero,          6, cmdtext);
    dcmd(Packer,          6, cmdtext);
    dcmd(Monster,         7, cmdtext);
    dcmd(Admiral,         7, cmdtext);
    dcmd(Squallo,         7, cmdtext);
    dcmd(Seasparrow,     10, cmdtext);
    dcmd(Pizzaboy,        8, cmdtext);
    dcmd(Tram,            4, cmdtext);
    dcmd(Article_Trailer_2,17,cmdtext);
    dcmd(Turismo,         7, cmdtext);
    dcmd(Speeder,         7, cmdtext);
    dcmd(Reefer,          6, cmdtext);
    dcmd(Tropic,          6, cmdtext);
    dcmd(Flatbed,         7, cmdtext);
    dcmd(Yankee,          6, cmdtext);
    dcmd(Caddy,           5, cmdtext);
    dcmd(Solair,          6, cmdtext);
    dcmd(RC_Van,          6, cmdtext);
    dcmd(Skimmer,         7, cmdtext);
    dcmd(PCJ_600,         7, cmdtext);
    dcmd(Faggio,          6, cmdtext);
    dcmd(Freeway,         7, cmdtext);
    //prohibido = dcmd(rc baron, xD);
    dcmd(RC_Raider,       9, cmdtext);
    dcmd(Glendale,        8, cmdtext);
    dcmd(Oceanic,         7, cmdtext);
    dcmd(Sanchez,         7, cmdtext);
    dcmd(Sparrow,         7, cmdtext);
    dcmd(Patriot,         7, cmdtext);
    dcmd(Quad,            4, cmdtext);
    dcmd(Coastguard,     10, cmdtext);
    dcmd(Dinghy,          6, cmdtext);
    dcmd(Hermes,          6, cmdtext);
    dcmd(Sabre,           5, cmdtext);
    dcmd(Rustler,         7, cmdtext);
    dcmd(ZR_350,          6, cmdtext);
    dcmd(Walton,          6, cmdtext);
    dcmd(Regina,          6, cmdtext);
    dcmd(Comet,           5, cmdtext);
    dcmd(BMX,             3, cmdtext);
    dcmd(Burrito,         7, cmdtext);
    dcmd(Camper,          6, cmdtext);
    dcmd(Marquis,         7, cmdtext);
    dcmd(Baggage,         7, cmdtext);
    dcmd(Dozer,           5, cmdtext);
    dcmd(Maverick,        8, cmdtext);
    dcmd(SAN_News_Maverick,17,cmdtext);
    dcmd(Rancher,         7, cmdtext);
    dcmd(FBI_Rancher,    11, cmdtext);
    dcmd(Virgo,           5, cmdtext);
    dcmd(Greenwood,       9, cmdtext);
    dcmd(Jetmax,          6, cmdtext);
    dcmd(Hotring_Racer,  13, cmdtext);
    dcmd(Sandking,        8, cmdtext);
    dcmd(Blista_Compact, 14, cmdtext);
    dcmd(Police_Maverick,15, cmdtext);
    dcmd(Boxville,        8, cmdtext);
    dcmd(Benson,          6, cmdtext);
    dcmd(Mesa,            4, cmdtext);
    dcmd(RC_Goblin,       9, cmdtext);
    dcmd(Hotring_Racer2, 14, cmdtext);
    dcmd(Hotring_Racer3, 14, cmdtext);
    dcmd(Bloodring_Banger,16, cmdtext);
    dcmd(Rancher2,        8, cmdtext);
    dcmd(Super_GT,        8, cmdtext);
    dcmd(Elegant,         7, cmdtext);
    dcmd(Journey,         7, cmdtext);
    dcmd(Bike,            4, cmdtext);
    dcmd(Mountain_Bike,  13, cmdtext);
    dcmd(Beagle,          6, cmdtext);
    dcmd(Cropduster,     10, cmdtext);
    dcmd(Stuntplane,     10, cmdtext);
    dcmd(Tanker,          6, cmdtext);
    dcmd(Roadtrain,       9, cmdtext);
    dcmd(Nebula,          6, cmdtext);
    dcmd(Majestic,        8, cmdtext);
    dcmd(Buccaneer,       9, cmdtext);
    dcmd(Shamal,          6, cmdtext);
    //prohibido = dcmd(hydra, xD);
    dcmd(FCR,             3, cmdtext);
    dcmd(NRG,             3, cmdtext);
    dcmd(HPV1000,         7, cmdtext);
    dcmd(Cement_Truck,   12, cmdtext);
    dcmd(Towtruck,        8, cmdtext);
    dcmd(Fortune,         7, cmdtext);
    dcmd(Cadrona,         7, cmdtext);
    dcmd(FBI_Truck,       9, cmdtext);
    dcmd(Willard,         7, cmdtext);
    dcmd(Forklift,        8, cmdtext);
    dcmd(Tractor,         7, cmdtext);
    dcmd(Combine_Harvester,17,cmdtext);
    dcmd(Feltzer,         7, cmdtext);
    dcmd(Remington,       9, cmdtext);
    dcmd(Slamvan,         7, cmdtext);
    dcmd(Blade,           5, cmdtext);
    dcmd(Freight,         7, cmdtext);
    dcmd(Brownstreak,    11, cmdtext);
    dcmd(Vortex,          6, cmdtext);
    dcmd(Vincent,         7, cmdtext);
    dcmd(Bullet,          6, cmdtext);
    dcmd(Clover,          6, cmdtext);
    dcmd(Sadler,          6, cmdtext);
    dcmd(Firetruck_LA,   12, cmdtext);
    dcmd(Hustler,         7, cmdtext);
    dcmd(Intruder,        8, cmdtext);
    dcmd(Primo,           5, cmdtext);
    dcmd(Cargobob,        8, cmdtext);
    dcmd(Tampa,           5, cmdtext);
    dcmd(Sunrise,         7, cmdtext);
    dcmd(Merit,           5, cmdtext);
    dcmd(Utility_Van,    11, cmdtext);
    dcmd(Nevada,          6, cmdtext);
    dcmd(Yosemite,        8, cmdtext);
    dcmd(Windsor,         7, cmdtext);
    dcmd(Monster2,        8, cmdtext);
    dcmd(Monster3,        8, cmdtext);
    dcmd(Uranus,          6, cmdtext);
    dcmd(Jester,          6, cmdtext);
    dcmd(Sultan,          6, cmdtext);
    dcmd(Stratum,         7, cmdtext);
    dcmd(Elegy,           5, cmdtext);
    dcmd(Raindance,       9, cmdtext);
    //prohibido = RC Triger
    dcmd(Flash,           5, cmdtext);
    dcmd(Tahoma,          6, cmdtext);
    dcmd(Savanna,         7, cmdtext);
    dcmd(Bandito,         7, cmdtext);
    dcmd(Freight_Flat_Trailer, 20, cmdtext);
    dcmd(Streak_Trailer, 14, cmdtext);
    dcmd(Kart,            4, cmdtext);
    dcmd(Mower,           5, cmdtext);
    dcmd(Dune,            4, cmdtext);
    dcmd(Sweeper,         7, cmdtext);
    dcmd(Broadway,        8, cmdtext);
    dcmd(Tornado,         7, cmdtext);
    dcmd(AT400,           5, cmdtext);
    dcmd(DFT_30,          6, cmdtext);
    dcmd(Huntley,         7, cmdtext);
    dcmd(Stafford,        8, cmdtext);
    dcmd(BF_400,          6, cmdtext);
    dcmd(Newsvan,         7, cmdtext);
    dcmd(Tug,             3, cmdtext);
    dcmd(Petrol_Trailer, 14, cmdtext);
    dcmd(Emperor,         7, cmdtext);
    dcmd(Wayfarer,        8, cmdtext);
    dcmd(Euros,           5, cmdtext);
    dcmd(Hotdog,          6, cmdtext);
    dcmd(Club,            4, cmdtext);
    dcmd(Freight_Box_Trailer,19,cmdtext);
    dcmd(Article_Trailer_3,17,cmdtext);
    dcmd(Andromada,       9, cmdtext);
    dcmd(Dodo,            4, cmdtext);
    dcmd(RC_Cam,          6, cmdtext);
    dcmd(Launch,          6, cmdtext);
    dcmd(Police_Car_Ls,  13, cmdtext);
    dcmd(Police_Car_Sf,  13, cmdtext);
    dcmd(Police_Car_Lv,  13, cmdtext);
    dcmd(Police_Ranger,  13, cmdtext);
    dcmd(Picador,         7, cmdtext);
    dcmd(SWAT,            4, cmdtext);
    dcmd(Alpha,           5, cmdtext);
    dcmd(Phoenix,         7, cmdtext);
    dcmd(Glendale_Shit,  13, cmdtext);
    dcmd(Sadler_Shit,    11, cmdtext);
    dcmd(Baggage_Trailer,15, cmdtext);
    dcmd(Baggage_Trailer2,16, cmdtext);
    dcmd(Tug_Stairs_Trailer, 18, cmdtext);
    dcmd(Boxville2,        19, cmdtext);
    dcmd(Farm_Trailer,   12, cmdtext);
    dcmd(Utility_Trailer,15, cmdtext);
    return 0;
}

dcmd_Landstalker(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,400);
return 1;
}
dcmd_Bravura(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,401);
return 1;
}
dcmd_Buffalo(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,402);
return 1;
}
dcmd_Linerunner(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,403);
return 1;
}
dcmd_Perenniel(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,404);
return 1;
}
dcmd_Sentinel(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,405);
return 1;
}
dcmd_Dumper(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,406);
return 1;
}
dcmd_Firetruck(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,407);
return 1;
}
dcmd_Trashmaster(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,408);
return 1;
}
dcmd_Stretch(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,409);
return 1;
}
dcmd_Manana(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,410);
return 1;
}
dcmd_Infernus(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,411);
return 1;
}
dcmd_Voodoo(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,412);
return 1;
}
dcmd_Pony(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,413);
return 1;
}
dcmd_Mule(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,414);
return 1;
}
dcmd_Cheetah(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,415);
return 1;
}
dcmd_Ambulance(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,416);
return 1;
}
dcmd_Leviathan(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,417);
return 1;
}
dcmd_Moonbeam(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,418);
return 1;
}
dcmd_Esperanto(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,419);
return 1;
}
dcmd_Taxi(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,420);
return 1;
}
dcmd_Washington(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,421);
return 1;
}
dcmd_Bobcat(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,422);
return 1;
}
dcmd_Mr_Whoopee(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,423);
return 1;
}
dcmd_BF_Injection(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,424);
return 1;
}
dcmd_Premier(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,426);
return 1;
}
dcmd_Enforcer(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,427);
return 1;
}
dcmd_Seguricar(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,428);
return 1;
}
dcmd_Banshee(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,429);
return 1;
}
dcmd_Predator(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,430);
return 1;
}
dcmd_Bus(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,431);
return 1;
}
dcmd_Barracks(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,433);
return 1;
}
dcmd_Hotknife(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,434);
return 1;
}
dcmd_Article_Trailer(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,435);
return 1;
}
dcmd_Previon(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,436);
return 1;
}
dcmd_Coach(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,437);
return 1;
}
dcmd_Cabbie(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,438);
return 1;
}
dcmd_Stallion(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,439);
return 1;
}
dcmd_Rumpo(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,440);
return 1;
}
dcmd_RC_Bandit(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,441);
return 1;
}
dcmd_Romero(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,442);
return 1;
}
dcmd_Packer(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,443);
return 1;
}
dcmd_Monster(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,444);
return 1;
}
dcmd_Admiral(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,445);
return 1;
}
dcmd_Squallo(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,446);
return 1;
}
dcmd_Seasparrow(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,447);
return 1;
}
dcmd_Pizzaboy(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,448);
return 1;
}
dcmd_Tram(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,449);
return 1;
}
dcmd_Article_Trailer_2(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,450);
return 1;
}
dcmd_Turismo(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,451);
return 1;
}
dcmd_Speeder(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,452);
return 1;
}
dcmd_Reefer(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,453);
return 1;
}
dcmd_Tropic(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,454);
return 1;
}
dcmd_Flatbed(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,455);
return 1;
}
dcmd_Yankee(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,456);
return 1;
}
dcmd_Caddy(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,457);
return 1;
}
dcmd_Solair(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,458);
return 1;
}
dcmd_RC_Van(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,459);
return 1;
}
dcmd_Skimmer(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,460);
return 1;
}
dcmd_PCJ_600(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,461);
return 1;
}
dcmd_Faggio(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,462);
return 1;
}
dcmd_Freeway(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,463);
return 1;
}
dcmd_RC_Raider(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,465);
return 1;
}
dcmd_Glendale(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,466);
return 1;
}
dcmd_Oceanic(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,467);
return 1;
}
dcmd_Sanchez(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,468);
return 1;
}
dcmd_Sparrow(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,469);
return 1;
}
dcmd_Patriot(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,470);
return 1;
}
dcmd_Quad(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,471);
return 1;
}
dcmd_Coastguard(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,472);
return 1;
}
dcmd_Dinghy(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,473);
return 1;
}
dcmd_Hermes(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,474);
return 1;
}
dcmd_Sabre(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,475);
return 1;
}
dcmd_Rustler(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,476);
return 1;
}
dcmd_ZR_350(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,477);
return 1;
}
dcmd_Walton(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,478);
return 1;
}
dcmd_Regina(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,479);
return 1;
}
dcmd_Comet(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,480);
return 1;
}
dcmd_BMX(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,481);
return 1;
}
dcmd_Burrito(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,482);
return 1;
}
dcmd_Camper(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,483);
return 1;
}
dcmd_Marquis(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,484);
return 1;
}
dcmd_Baggage(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,485);
return 1;
}
dcmd_Dozer(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,486);
return 1;
}
dcmd_Maverick(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,487);
return 1;
}
dcmd_SAN_News_Maverick(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,488);
return 1;
}
dcmd_Rancher(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,489);
return 1;
}
dcmd_FBI_Rancher(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,490);
return 1;
}
dcmd_Virgo(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,491);
return 1;
}
dcmd_Greenwood(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,492);
return 1;
}
dcmd_Jetmax(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,493);
return 1;
}
dcmd_Hotring_Racer(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,494);
return 1;
}
dcmd_Sandking(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,495);
return 1;
}
dcmd_Blista_Compact(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,496);
return 1;
}
dcmd_Police_Maverick(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,497);
return 1;
}
dcmd_Boxville(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,498);
return 1;
}
dcmd_Benson(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,499);
return 1;
}
dcmd_Mesa(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,500);
return 1;
}
dcmd_RC_Goblin(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,501);
return 1;
}
dcmd_Hotring_Racer2(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,502);
return 1;
}
dcmd_Hotring_Racer3(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,503);
return 1;
}
dcmd_Bloodring_Banger(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,504);
return 1;
}
dcmd_Rancher2(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,505);
return 1;
}
dcmd_Super_GT(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,506);
return 1;
}
dcmd_Elegant(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,507);
return 1;
}
dcmd_Journey(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,508);
return 1;
}
dcmd_Bike(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,509);
return 1;
}
dcmd_Mountain_Bike(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,510);
return 1;
}
dcmd_Beagle(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,511);
return 1;
}
dcmd_Cropduster(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,512);
return 1;
}
dcmd_Stuntplane(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,513);
return 1;
}
dcmd_Tanker(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,514);
return 1;
}
dcmd_Roadtrain(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,515);
return 1;
}
dcmd_Nebula(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,516);
return 1;
}
dcmd_Majestic(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,517);
return 1;
}
dcmd_Buccaneer(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,518);
return 1;
}
dcmd_Shamal(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,519);
return 1;
}
dcmd_FCR(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,521);
return 1;
}
dcmd_NRG(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,522);
return 1;
}
dcmd_HPV1000(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,523);
return 1;
}
dcmd_Cement_Truck(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,524);
return 1;
}
dcmd_Towtruck(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,525);
return 1;
}
dcmd_Fortune(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,526);
return 1;
}
dcmd_Cadrona(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,527);
return 1;
}
dcmd_FBI_Truck(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,528);
return 1;
}
dcmd_Willard(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,529);
return 1;
}
dcmd_Forklift(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,530);
return 1;
}
dcmd_Tractor(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,531);
return 1;
}
dcmd_Combine_Harvester(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,532);
return 1;
}
dcmd_Feltzer(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,533);
return 1;
}
dcmd_Remington(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,534);
return 1;
}
dcmd_Slamvan(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,535);
return 1;
}
dcmd_Blade(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,536);
return 1;
}
dcmd_Freight(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,537);
return 1;
}
dcmd_Brownstreak(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,538);
return 1;
}
dcmd_Vortex(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,539);
return 1;
}
dcmd_Vincent(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,540);
return 1;
}
dcmd_Bullet(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,541);
return 1;
}
dcmd_Clover(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,542);
return 1;
}
dcmd_Sadler(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,543);
return 1;
}
dcmd_Firetruck_LA(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,544);
return 1;
}
dcmd_Hustler(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,545);
return 1;
}
dcmd_Intruder(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,546);
return 1;
}
dcmd_Primo(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,547);
return 1;
}
dcmd_Cargobob(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,548);
return 1;
}
dcmd_Tampa(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,549);
return 1;
}
dcmd_Sunrise(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,550);
return 1;
}
dcmd_Merit(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,551);
return 1;
}
dcmd_Utility_Van(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,552);
return 1;
}
dcmd_Nevada(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,553);
return 1;
}
dcmd_Yosemite(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,554);
return 1;
}
dcmd_Windsor(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,555);
return 1;
}
dcmd_Monster2(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,556);
return 1;
}
dcmd_Monster3(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,557);
return 1;
}
dcmd_Uranus(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,558);
return 1;
}
dcmd_Jester(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,559);
return 1;
}
dcmd_Sultan(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,560);
return 1;
}
dcmd_Stratum(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,561);
return 1;
}
dcmd_Elegy(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,562);
return 1;
}
dcmd_Raindance(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,563);
return 1;
}
dcmd_Flash(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,565);
return 1;
}
dcmd_Tahoma(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,566);
return 1;
}
dcmd_Savanna(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,567);
return 1;
}
dcmd_Bandito(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,568);
return 1;
}
dcmd_Freight_Flat_Trailer(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,569);
return 1;
}
dcmd_Streak_Trailer(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,570);
return 1;
}
dcmd_Kart(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,571);
return 1;
}
dcmd_Mower(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,572);
return 1;
}
dcmd_Dune(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,573);
return 1;
}
dcmd_Sweeper(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,574);
return 1;
}
dcmd_Broadway(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,575);
return 1;
}
dcmd_Tornado(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,576);
return 1;
}
dcmd_AT400(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,577);
return 1;
}
dcmd_DFT_30(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,578);
return 1;
}
dcmd_Huntley(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,579);
return 1;
}
dcmd_Stafford(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,580);
return 1;
}
dcmd_BF_400(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,581);
return 1;
}
dcmd_Newsvan(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,582);
return 1;
}
dcmd_Tug(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,583);
return 1;
}
dcmd_Petrol_Trailer(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,584);
return 1;
}
dcmd_Emperor(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,585);
return 1;
}
dcmd_Wayfarer(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,586);
return 1;
}
dcmd_Euros(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,587);
return 1;
}
dcmd_Hotdog(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,588);
return 1;
}
dcmd_Club(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,589);
return 1;
}
dcmd_Freight_Box_Trailer(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,590);
return 1;
}
dcmd_Article_Trailer_3(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,591);
return 1;
}
dcmd_Andromada(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,592);
return 1;
}
dcmd_Dodo(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,593);
return 1;
}
dcmd_RC_Cam(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,594);
return 1;
}
dcmd_Launch(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,595);
return 1;
}
dcmd_Police_Car_Ls(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,596);
return 1;
}
dcmd_Police_Car_Sf(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,597);
return 1;
}
dcmd_Police_Car_Lv(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,598);
return 1;
}
dcmd_Police_Ranger(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,599);
return 1;
}
dcmd_Picador(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,600);
return 1;
}
dcmd_SWAT(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,601);
return 1;
}
dcmd_Alpha(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,602);
return 1;
}
dcmd_Phoenix(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,603);
return 1;
}
dcmd_Glendale_Shit(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,604);
return 1;
}
dcmd_Sadler_Shit(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,605);
return 1;
}
dcmd_Baggage_Trailer(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,606);
return 1;
}
dcmd_Baggage_Trailer2(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,607);
return 1;
}
dcmd_Tug_Stairs_Trailer(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,608);
return 1;
}
dcmd_Boxville2(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,609);
return 1;
}
dcmd_Farm_Trailer(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,610);
return 1;
}
dcmd_Utility_Trailer(playerid,params[])
{
#pragma unused params
CarSpawner(playerid,611);
return 1;
}
public CarSpawner(playerid,model)
{
    if(IsPlayerInAnyVehicle(playerid))
    SendClientMessage(playerid, COLOR_ROJO, "ERROR: Ya Estas En Un Auto!");
    else
    {
        new Float:x, Float:y, Float:z, Float:angle;
        GetPlayerPos(playerid, x, y, z);
        GetPlayerFacingAngle(playerid, angle);

        if(AccInfo[playerid][pCar] != -1)
        BorrarAuto(AccInfo[playerid][pCar]);
        new vehicleid=CreateVehicle(model, x, y, z+2, angle, -1, -1, -1);
        PutPlayerInVehicle(playerid, vehicleid, 0);
        SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid));
        LinkVehicleToInterior(vehicleid, GetPlayerInterior(playerid));
        AccInfo[playerid][pCar] = vehicleid;
    }
    return 1;
}
O descarguen el .pwn: http://www.megaupload.com/?d=EP5TTZ1J

PD: Digan o no que yo lo hise....o roben creditos pienso igual que Grove4 pues si vengo a postear dudando que me van a robar los creditos (incluso los roban con fs tan simples pero costosos de hacer) pues entonces no lo postearia y ya...

xD eso es todo se aceptan criticas y comentarios use la funcion de

"CarSpawner" sacada desde el sistema de /menuautos...pero:

Pues no sabria a quien agradecer por esta, pues la he visto en un monton de fs aparte de este xD
Reply
#2

es algo muy sencillo de realizar pero es un excelente aporte, muy bien
Reply
#3

Me gustу el script excepto por el consejo que te dejo abajo

Un consejo, habiendo mбs de 200 vehнculos y un comando para cada uno, son 200 strcmp ejecutбndose. Lo que quise decir fue que implementes ZCMD (o y_commands).
Reply
#4

ЎMuy bueno!
Reply
#5

Interesante, pero podrнas haber usado un diбlogo (o menъ) y agruparlos, o como vieras, y no tendrнas el problema de rendimiento que dice Mr.Death.
Reply
#6

Quote:
Originally Posted by SuperMarioRol
Посмотреть сообщение
Interesante, pero podrнas haber usado un diбlogo (o menъ) y agruparlos, o como vieras, y no tendrнas el problema de rendimiento que dice Mr.Death.
la idea de esto es crear vehiculos usando comandos

/infernus

/elegy

/entiendes ?
Reply
#7

Gracias realmente me demore haciendolo y un fs muy simple a veces duele mucho la cabeza haciendolo :/ pero por eso mismo lo posteo ahora hare otro fs para postearlo xD o mejor tutoriales xD

Si como dijo wheelmandats pues esa es la idea....en dialogo estaria bueno, poner todos los autos de la wiki...pero por eso la idea es que sean por comandos mmm me dieron 1 idea hacer todos los autos de la wiki en dialogos >< pero me demoraria haciendolo xD ojala no haya 1 fs asi o me jodo xD
Reply
#8

Quote:
Originally Posted by WHEELMANDTS
Посмотреть сообщение
la idea de esto es crear vehiculos usando comandos

/infernus

/elegy

/entiendes ?
/entender entiendo, simplemente, pienso que es mejor a nivel de rendimiento y de organizaciуn. Otra cosa es como le guste a cada uno, yo lo preferirнa en dialogos.
Reply
#9

Tienes razon yo pienso igual...pero por ejemplo algunos users estan de apuro y pues prefieren usar /cheetah etc... y otros que tiene pasiencia y gustan de organizaciуn prefieren los dialogos, conclusiуn: seria mejor usar ambos tipos u.u
Reply
#10

Quote:
Originally Posted by SuperMarioRol
Посмотреть сообщение
/entender entiendo, simplemente, pienso que es mejor a nivel de rendimiento y de organizaciуn. Otra cosa es como le guste a cada uno, yo lo preferirнa en dialogos.
toy de acuerdo contigo xD, es demasiado cуdigo asн tantos comandos, seria bueno usar algo como
/v [NOMBRE_DEL_AUTO]

EJEMPLO: /v infernus

pero de igual manera buen aporte, creo que esto les servirб muchos a los nuevos
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)