Vehicle Deletion ?
#1

Does anyone know a filterscript that allows you to delete vehicles. because there are somecars on my server that i just want to remove
Reply
#2

just remove them then, cos they have to be in a script for them to be in the game. just goto that car and do /save nearest to it and look for the clostest to though cords in ur gm under addstaticveh or addstaticvehEx
Reply
#3

Or even better, get in the specific car by pressing F (enter as driver) then use /save. And in your My Documents, you should have the saved coordinates. Copy the line and use it to find your car in your gamemode.
Reply
#4

I really don't think this is anything like he wanted...

If it's a static vehicle you've added, you can either delete the AddStaticVehicle(Ex) line, or use the DestroyVehicle function.

pawn Код:
AddStaticVehicle( MODEL, X, Y, Z, A, C1, C2 );
Of course these would be filled in with numbers, but if you're looking to do the DestroyVehicle method..

Find the vehicle ID. You can use a simple command like..

pawn Код:
if(!strcmp(cmdtext, "/getvid", true))
    {
        new vStr [ 64 ];
        format( vStr, sizeof( vStr ), "Current Vehicle ID: %d", GetPlayerVehicleID ( playerid ) );
        return SendClientMessage( playerid, -1, vStr );
    }
Use that command inside of a vehicle to find its ID, OR you could use a command such as ...

pawn Код:
if(!strcmp(cmdtext, "/destroyvehicle", true))
    {
        if( IsPlayerInAnyVehicle( playerid ) )
        {
            DestroyVehicle( GetPlayerVehicleID( playerid ) );
        }
        return true;
    }
And delete it in-game.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)