Weapons && Cars
#1

I am creating an admin system from scratch (Which is something I haven't done before). Do I have to define all the weapons and vehicles? As in put it in a enum?
Reply
#2

Quote:
Originally Posted by ScottCFR
Посмотреть сообщение
I am creating an admin system from scratch (Which is something I haven't done before). Do I have to define all the weapons and vehicles? As in put it in a enum?
Describe a little better, i didn't quite get the problem.
Reply
#3

Well, I used to use Seifadmin, and Ladmin.. They had enums defining Cars and weapons. Do I need that? for car and weapon spawning commands?
Reply
#4

Quote:
Originally Posted by ScottCFR
Посмотреть сообщение
Well, I used to use Seifadmin, and Ladmin.. They had enums defining Cars and weapons. Do I need that? for car and weapon spawning commands?
Nope, i guess those enums where for AC's, or to simplify things.
Reply
#5

You mean the lists?
Here I have a vehicle names list that I found in seif's admin script and a weapon names list I made using the same methods.
For the vehicle names, you need to take away 400 from a vehicle's model to get the name from here.
E.g.
pawn Код:
public OnPlayerEnterVehicle(playerid,vehicleid,ispassenger){
    new mod=GetVehicleModel(vehicleid);
    new str[128];
    format(str,128,"%s(%d)",VehNames[mod-400],mod);
    GameTextForPlayer(playerid,str,4000,4);
    return 1;
}
pawn Код:
new VehNames[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"},
    {"LSPD_Police_Car"},
    {"SFPD_Police_Car"},
    {"LVPD_Police_Car"},
    {"Police_Ranger"},
    {"Picador"},
    {"SWAT_Van"},
    {"Alpha"},
    {"Phoenix"},
    {"Glendale"},
    {"Sadler"},
    {"Luggage_Trailer_A"}, //bagboxa
    {"Luggage_Trailer_B"}, //bagboxb
    {"Stair_Trailer"}, //tugstair
    {"Boxville"},
    {"Farm_Plow"}, //farmtr1
    {"Utility_Trailer"} //utiltr1
};
new WeapNames[55][]={
    {"Knuckles"},
    {"Brass Knuckles"},
    {"Golf Club"},
    {"Nite Stick"},
    {"Knife"},
    {"Baseball Bat"},
    {"Shovel"},
    {"Pool Cue"},
    {"Katana"},
    {"Chainsaw"},
    {"Purple Dildo"},
    {"Small White Vibrator"},
    {"Large White Vibrator"},
    {"Silver Vibrator"},
    {"Flowers"},
    {"Cane"},
    {"Grenade"},
    {"Tear Gas"},
    {"Molotov Cocktail"},
    {"Vehicle Missile"},
    {"Hydra Flare"},
    {"Jetpack"},
    {"Pistol"},
    {"Silenced Pistol"},
    {"Desert Eagle"},
    {"Shotgun"},
    {"Sawnoff Shotgun"},
    {"Combat Shotgun"},
    {"Uzi"},
    {"SMG"},
    {"AK47"},
    {"M4"},
    {"Tec9"},
    {"Country Rifle"},
    {"Sniper Rifle"},
    {"Rocket Launcher"},
    {"Heat-Seaker"},
    {"FlameThrower"},
    {"Minigun"},
    {"Satchel Charges"},
    {"Detonator"},
    {"Spraycan"},
    {"Fire Extinguisher"},
    {"Camera"},
    {"Nightvision Goggles"},
    {"Thermal Goggles"},
    {"Parachute"},
    {"Fake Pistol"},
    {"Nothing"},
    {"Hit and Run"},
    {"Helicopter Blades"},
    {"Explosion"},
    {"Nothing"},
    {"Drowned"},
    {"Fallen to death"}
};
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)