Vice City Multiplayer

VC:MP => General Discussion => Topic started by: xerox on December 14, 2010, 01:05:10 AM

Title: carbombs
Post by: xerox on December 14, 2010, 01:05:10 AM
i found PsySQLite 1.1 and PsyScript 1.2

can anyone do the carbombs script in squirrel or pawn for me please ?

i put the files on a webspace, can they be stored here for people ?

PsySQLite 1.1 
http://www.mediafire.com/?fdbz3zwnuyeucgb


PsyScript 1.0
http://www.mediafire.com/?lvk53goo7j220a1
Title: Re: carbombs
Post by: Devian on December 15, 2010, 02:16:21 PM
Quote from: xerox on December 14, 2010, 01:05:10 AM
can anyone do the carbombs script in squirrel or pawn for me please ?

i don't know if it's exactly what you looking for.but maybe can help,or based on it you can create your own!

when you're inside the vehicle:
     if ( cmd == "kill" )
     {
 
          local veh = player.Vehicle;

          if ( !veh ) MessagePlayer( "Error: You are on foot.", player );
          else MessagePlayer( "Engine Killed " , player );
          veh.Health = 0;
          }



explode vehicle by ID:
          if ( cmd == "explode" )
     {

          text = text.tointeger();

          local veh = FindVehicle( text ), pos = player.Pos;

  if ( veh ) veh.Health = 0;
     }
}


it's a basic but you can implement msg or other functions.


Devian
Title: Re: carbombs
Post by: xerox on December 20, 2010, 01:43:25 AM
its not excatly what i was looking for, but its a step in the right direction and will help me allot i think.
Title: Re: carbombs
Post by: [AoD]NC on December 20, 2010, 02:51:46 PM
That's the only way how to do a car bomb. You can make a command, which saves the ID of a car, where the bomb should be planted and if someone enter it, ka-boom! When I was scripting, I wanted to do that, but variables doesn't like me :p.
Title: Re: carbombs
Post by: xerox on December 22, 2010, 03:16:48 AM
it workes thankyou