Post: Drivable Cop Car !!!
10-25-2012, 03:05 AM #1
crazymodzz
Pokemon Trainer
(adsbygoogle = window.adsbygoogle || []).push({}); Hey guys so i was just looking around and saw this


And here is the code

BTW: I really dont know who created this so im sorry about the Credits on this.


    carSpawner()
{
self setOrigin((300,300,40.5)); //sets the coordinates for you to spawn
racecar = spawn( "script_model", (0,0,40.5) ); //sets the coordinates for the model to spawn
racecar.angles = (0,10,0); //sets the models angles
racecar.targetname = "destructible_vehicle"; //sets the type
racecar.destructible_type = "vehicle_policecar"; //sets the destructable type if it is destructable
racecar setModel( "vehicle_policecar_lapd_destructible" ); //sets the model
racecar common_scripts\_destructible::setup_destructibles( );
racecar.inUse = 0; //necessary var
for(;Winky Winky
{
if(distance(self.origin, racecar.origin) <100 && racecar.inUse == 0)
{
self iPrintlnBold("Press X to use"); //Text
}


if(distance(self.origin, racecar.origin) <100 && self usebuttonpressed() && racecar.inuse == 0)
{
self iPrintlnBold("You are now driving");
racecar.inUse = 1;
self playerlinkto(racecar); //links you to the model
self setPlayerAngles(racecar.angles+(0,0,0)); //sets your angles to the models
self takeAllWeapons(); //deletes weapons
wait 1.0;
}

if(racecar.inUse == 1 && self usebuttonpressed())
{
racecar.inUse = 0;
self unlink(racecar); //unlinks you from the model
self giveWeapon( "deserteaglegold_mp", 0, false ); //gives you gold deagle
wait 1.0;
}

if(racecar.inUse == 1 && self attackbuttonpressed())
{
if(racecar.angles != self.angles+(0,0,0) && racecar.inUse == 1)
{
racecar.angles = self.angles+(0,0,0); //checks to make sure the models angles are equal to yours
}
racecar moveto(racecar.origin+anglestoforward(self getplayerangles())*200, 0.05); //Necessary move function
wait 0.001;
}
wait 0.01;
}
}


Have fun and i put this out there because i dont see this In patchs and its still fun to use !!!!!!
(adsbygoogle = window.adsbygoogle || []).push({});

The following 2 users say thank you to crazymodzz for this useful post:

-Xperia-, *xActionMods*
10-25-2012, 05:34 AM #2
bluer105
I defeated!
Fuck tha police!

The following 2 users say thank you to bluer105 for this useful post:

BlurzGoHard, Cmd-X
10-25-2012, 08:10 AM #3
BlurzGoHard
Maggbot timeout!
Originally posted by crazymodzz View Post

    carSpawner()
carSpawner()
[/QUOTE]
you put carSpawner() twice is there a reason or was that a accident? some people might not know just trying to help others
10-25-2012, 12:11 PM #4
OmGRhys-x
Are you high?
Originally posted by crazymodzz View Post
Hey guys so i was just looking around and saw this


And here is the code

BTW: I really dont know who created this so im sorry about the Credits on this.


    carSpawner()
carSpawner()
{
self setOrigin((300,300,40.5)); //sets the coordinates for you to spawn
racecar = spawn( "script_model", (0,0,40.5) ); //sets the coordinates for the model to spawn
racecar.angles = (0,10,0); //sets the models angles
racecar.targetname = "destructible_vehicle"; //sets the type
racecar.destructible_type = "vehicle_policecar"; //sets the destructable type if it is destructable
racecar setModel( "vehicle_policecar_lapd_destructible" ); //sets the model
racecar common_scripts\_destructible::setup_destructibles( );
racecar.inUse = 0; //necessary var
for(;Winky Winky
{
if(distance(self.origin, racecar.origin) <100 && racecar.inUse == 0)
{
self iPrintlnBold("Press X to use"); //Text
}


if(distance(self.origin, racecar.origin) <100 && self usebuttonpressed() && racecar.inuse == 0)
{
self iPrintlnBold("You are now driving");
racecar.inUse = 1;
self playerlinkto(racecar); //links you to the model
self setPlayerAngles(racecar.angles+(0,0,0)); //sets your angles to the models
self takeAllWeapons(); //deletes weapons
wait 1.0;
}

if(racecar.inUse == 1 && self usebuttonpressed())
{
racecar.inUse = 0;
self unlink(racecar); //unlinks you from the model
self giveWeapon( "deserteaglegold_mp", 0, false ); //gives you gold deagle
wait 1.0;
}

if(racecar.inUse == 1 && self attackbuttonpressed())
{
if(racecar.angles != self.angles+(0,0,0) && racecar.inUse == 1)
{
racecar.angles = self.angles+(0,0,0); //checks to make sure the models angles are equal to yours
}
racecar moveto(racecar.origin+anglestoforward(self getplayerangles())*200, 0.05); //Necessary move function
wait 0.001;
}
wait 0.01;
}
}


Have fun and i put this out there because i dont see this In patchs and its still fun to use !!!!!!


i belive it was yamato i think!!
10-25-2012, 12:50 PM #5
LightModz
League Champion
Originally posted by BlurzGoHard View Post
you put carSpawner() twice is there a reason or was that a accident? some people might not know just trying to help others


he didnt make the code. if im correct godlymodz made this.
10-25-2012, 01:03 PM #6
BlurzGoHard
Maggbot timeout!
Originally posted by LightModz View Post
he didnt make the code. if im correct godlymodz made this.


well i know he didnt :lol: i just put that there because some people might get confuse because there is two of those code "callers" there
10-25-2012, 01:19 PM #7
LightModz
League Champion
Originally posted by BlurzGoHard View Post
well i know he didnt :lol: i just put that there because some people might get confuse because there is two of those code "callers" there


he made it, look at this video.

Skip To 0:47
you can toggle between third person.
10-25-2012, 01:23 PM #8
BlurzGoHard
Maggbot timeout!
Originally posted by LightModz View Post
he made it, look at this video.

Skip To 0:47
you can toggle between third person.

is this like a actual patch? if so i definatly want to put this in my OG Skywalker v1
10-25-2012, 01:36 PM #9
LightModz
League Champion
Originally posted by BlurzGoHard View Post
is this like a actual patch? if so i definatly want to put this in my OG Skywalker v1


yea its a patch, a pretty decent one at its time.
10-25-2012, 01:40 PM #10
BlurzGoHard
Maggbot timeout!
Originally posted by LightModz View Post
yea its a patch, a pretty decent one at its time.


looks fun but now a days you gotta have like 50,000 codes in your patch and like 4 + other patches for it not to get groaned its so much work and time consumeing

The following user thanked BlurzGoHard for this useful post:

bluer105

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo