filterscript editing help
#1

hi guyz im trying to create my server but before i have problem
i want to delete some vehicles
i have car spawner fs and i tryed to edit it but i got bugs when i deleted it
like when u spawn shamal it give u hydra or another

i want to delete armed vehicles and all airplanes without stuntplane
vehicles:
(Hydra-Hunter-seasparrow-Rhino-Rustler-RC armed airplane-RC armed Heli)
Airplanes
(all airplanes but without ''stuntplane < dont delete'')

that is all

Filterscript: http://pastebin.com/A2Xt6gN3

please who know how to do it i need your help guyz
if u done give me pastebin link
Reply
#2

21 views and no replay?
Reply
#3

u must fix the dialog item number
for eg

it start by
0- elegy
1- infernus
2-buffalo
3-banshee
4- cheetah
if you delete infernus it will be
0- elegy
1-buffalo
2-banshee
3- cheetah

so....u must change a lot of numbers xd

https://sampforum.blast.hk/showthread.php?tid=117950
i think this car spawner have a define to yes or no to fight vehicles...
im not sure
check it
Reply
#4

i know that fs but i need my fs i cant even change dialogs im noob to script
Reply
#5

please can anyone edit it and give me pastebin linke?
Reply
#6

make your own vehspawner ?
maybe the best way
Reply
#7

i cant script
Reply
#8

read this to get some information and you will get some knowledge
Reply
#9

Try this:

pawn Код:
#include <a_samp>
#include <zcmd>
#include <sscanf2>

new Float:X,Float:Y,Float:Z;
new aVehicleNames[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"} };

#define red 0xff0000ff
#if defined FILTERSCRIPT

#endif


COMMAND:car(playerid, params[]) {
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,red,"You are not authorized to use that command!");
    new Vehicle[50],color1,color2;
    if(!sscanf(params, "s[50]dd", Vehicle,color1,color2)) {
        new string[128],angle;
        new veh = GetVehicleModelID(Vehicle);
        GetPlayerPos(playerid,X,Y,Z);
        new PVeh = CreateVehicle(veh,  X+3,Y,Z, angle, -1,-1,-1);
        LinkVehicleToInterior(PVeh, GetPlayerInterior(playerid)); SetVehicleVirtualWorld(PVeh, GetPlayerVirtualWorld(playerid));
        format(string, sizeof string, " ** You have spawned a %s. ID: %i. ", aVehicleNames[veh - 400], veh);
        SendClientMessage(playerid, 0x00FFFFFF, string);
        PutPlayerInVehicle(playerid, veh, 0 );
        ChangeVehicleColor(veh, color1, color2);
        if(veh < 400 || veh > 611) return SendClientMessage(playerid, red, "Invalid vehicle ID/Name.");
        return SendClientMessage(playerid, 0x00FFFFFF, "Correct Usage: /Car [VehicleName/VehicleID]."); }
    return 1; }

stock GetVehicleModelID(vehiclename[]) {
    for(new i = 0; i < 211; i++) {
        if(strfind(aVehicleNames[i], vehiclename, true) != -1)
        return i + 400; }
    return -1; }
Easy code than that, Enter vehicle name and spawn it.
Reply
#10

i want my fs not yours
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)