Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: mrockxkingbutt on December 14, 2012, 09:45:20 am

Title: (SOLVED TOPIC) THANKS TO ALL OF YOU
Post by: mrockxkingbutt on December 14, 2012, 09:45:20 am
i have a cmd
!getcar
when i spawn a car it spawn but when i get init
and left it
and respawn it
it doesnot spawn
please give me a getcar  cmd
that can spawn a car anytime any place
thanks
Title: Re: just a little appeal/help
Post by: NeskWriter on December 14, 2012, 03:43:06 pm
I should tell you that CreateVehicle doesn't work (it bugged). Learn details on vcmp pawn wiki :-\
Title: Re: just a little appeal/help
Post by: mrockxkingbutt on December 14, 2012, 04:00:30 pm
please give me just a !getcar cmd
Title: Re: just a little appeal/help
Post by: NeskWriter on December 14, 2012, 09:27:21 pm
There is no cmds to get a car >:(
Title: Re: just a little appeal/help
Post by: scripter_pawn on December 14, 2012, 11:59:21 pm
Solution1 : change from pawn to squirrel/mirc
Solution2 :  Use
Code: [Select]
new car1;
car1 = GetVehicleID(CreateVehicle(params));
use in the commands : GetPlayerPos(Float:x,Float:y,Float:z); car1.SetVehiclePos(x1,y1,z1);
Title: Re: just a little appeal/help
Post by: mrockxkingbutt on December 15, 2012, 06:37:26 pm
please if you have any script cmd
like
/c getcar
/c getveh
or
!getcar
!getveh
post here
Title: Re: just a little appeal/help
Post by: VC[88]PD on January 19, 2013, 05:57:24 pm
[pawn]else if ( strcmp( cmd, "!getcar", true ) == 0 )
    {
         tmp = strtok( cmdtext, idx );
      if ( !strlen( tmp ) ) SendClientMessage( playerid, COLOR_GREEN, "USAGE: !getcar [VehicleID]" );
      else
      {
         new Float:Angle;
         GetPlayerPos( playerid, x, y, z); GetPlayerFacingAngle( playerid,Angle);
         if ( !Angle) SendClientMessage( playerid, COLOR_GREEN, "Error: Invalid vehicle!" );

         SetVehiclePos( strval( tmp ),x+3,y+3,z,Angle);
         format( szMsg, sizeof( szMsg ), "Spawning vehicle:[ %d ]", strval( tmp ) );
         SendClientMessage( playerid, COLOR_GREEN, szMsg );      }
      return 1;
   }[/pawn]
I know there's some error in this command but you can use it.Hope it will working in yours.
Title: Re: just a little appeal/help
Post by: VC[88]PD on January 19, 2013, 05:58:55 pm
And you should learn x,y,z.I think.
Title: Re: just a little appeal/help
Post by: Fuzzy168 on January 20, 2013, 11:07:08 am
VC[88]PD, try not to multi-post and use the Edit button instead.
mrockxkingbutt, you should really start to learn Pawn/Squirrel and stop asking script from people.
Title: Re: just a little appeal/help
Post by: shaheersa on February 08, 2013, 08:16:28 am
please if you have any script cmd
like
/c getcar
/c getveh
or
!getcar
!getveh
post here


since im not on my computer now, i cant give you, but i have the cmd