May I ask something nicely,please?[Rep++]
#1

So,my admin systeem is done 99.9%.And no,I am not ecountering probleems with it,but there would be something left,a spawn vehicle system,and to be honest,even if I know it's almost " a lot" to work on it[it takes a bit time],I am nicely asking someone to give me his spawn vehicle system.I will give reputation,and,yes,I know that if you have for about 45 rep points like me,or 340,1 point doesn't makee big difference,but,please .I am able to adapt it to my script .
I know it's wrong section,but,I am especially asking those who I helped(I really don't like browsing script requests)
Reply
#2

Just Make One?
Simple & Unique, Its Really Not That Hard, It'd Take you What Less then 3 Hours to Make One.
Either Way, this is Not the Place to Ask for Scripts.

Cheers
Ezay
\o/
Reply
#3

Quote:
Originally Posted by Ezay
Посмотреть сообщение
Just Make One?
Simple & Unique, Its Really Not That Hard, It'd Take you What Less then 3 Hours to Make One.
Either Way, this is Not the Place to Ask for Scripts.

Cheers
Ezay
\o/
I didn't say it's hard,but it's boring,to be honest,like making a menu WITH ALL vehicle ID(almost 200),so...If you get it,I ALSO mentioned that I know it's the wrong section but I asked nicely
Reply
#4

I will paste here my old vehicle spawner system, then you will adapt it to your code:

Wait a moment please...
Reply
#5

Quote:
Originally Posted by [GF]Sasino97
Посмотреть сообщение
I will paste here my old vehicle spawner system, then you will adapt it to your code:

Wait a moment please...
Thank you very much,rep++ for you!
Reply
#6

pawn Код:
#include <a_samp>

#define DIALOG_VEH_SELECT 1551 // If already used, change

stock GTA_VehicleNames[212][] =
{
"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",
"Admiral",
"Squalo",
"Seasparrow",
"Pizzaboy",
"Tram",
"Trailer",
"Turismo",
"Speeder",
"Reefer",
"Tropic",
"Flatbed",
"Yankee",
"Caddy",
"Solair",
"Berkley's RC Van",
"Skimmer",
"PCJ600",
"Faggio",
"Freeway",
"RC Baron",
"RC Raider",
"Glendale",
"Oceanic",
"Sanchez",
"Sparrow",
"Patriot",
"Quad",
"Coastguard",
"Dinghy",
"Hermes",
"Sabre",
"Rustler",
"ZR3 50",
"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",
"FCR900",
"NRG500",
"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",
"Stratum",
"Elegy",
"Raindance",
"RC Tiger",
"Flash",
"Tahoma",
"Savanna",
"Bandito",
"Freight",
"Trailer",
"Kart",
"Mower",
"Duneride",
"Sweeper",
"Broadway",
"Tornado",
"AT400",
"DFT30",
"Huntley",
"Stafford",
"BF400",
"Newsvan",
"Tug",
"Trailer",
"Emperor",
"Wayfarer",
"Euros",
"Hotdog",
"Club",
"Trailer",
"Trailer",
"Andromada",
"Dodo",
"RC Cam",
"Launch",
"Police Car",
"Police Car",
"Police Car",
"Ranger",
"Picador",
"S.W.A.T.Van",
"Alpha",
"Phoenix",
"Glendale",
"Sadler",
"Luggage Trailer",
"Luggage Trailer",
"Stair Trailer",
"Boxville",
"Farm Plow",
"Utility Trailer"
};

stock VehicleSpawner(playerid)
{
    // Conditions go here, like "if(!IsPlayerAdmin(playerid)) return 0;"
   
    new string[2500];
    new str2[51];
    for(new i; i < sizeof(GTA_VehicleNames); i++)
    {
        format(str2, 51, GTA_VehicleNames[i]);
        format(string, 2500, "%s%s\n", string, str2);
    }
    ShowPlayerDialog(playerid, DIALOG_VEH_SELECT, DIALOG_STYLE_LIST, "Vehicles:", string, "OK", "Cancel");
   
    string[0] = EOS; // Free memory occupied by string
        str2[0] = EOS; // Free memory occupied by str2
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_VEH_SELECT && response == 1)
    {
        new Float:X, Float:Y, Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        new vehicleid = CreateVehicle(listitem+400, X, Y, Z, 0.0, random(100), random(100), -1); // Random colors
        LinkVehicleToInterior(vehicleid, GetPlayerInterior(playerid));
        PutPlayerInVehicle(playerid, vehicleid, 0);
        return 1;
    }
    return 1;
}

For use, just create a command and put
VehicleSpawner(playerid);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)