Questions.
#4

pawn Код:
dcmd_v(playerid,params[])
{
   #pragma unused params
   new vehid,color1,color2,vid;
   if(sscanf(params,"iii",vehid,color1,color2)) return SendClientMessage(playerid, COLOR_ERROR, "Usage: /v [vehicleid] [color1] [color2]");
   new Float:x,Float:y,Float:z,Float:ang;
   GetPlayerFacingAngle(playerid,ang);
   GetPlayerPos(playerid,x,y,z);
   vid = CreateVehicle(vehid,x,y,z,ang,color1,color2,60);
   PutPlayerInVehicle(playerid, vid, 0);
   return 1;
}
Just to add to that, ive added so when you spawn the vehicle it automatically places you as driver... , i havent tested it, but it should work
Reply


Messages In This Thread
Questions. - by _Khaled_ - 29.08.2012, 11:02
Re: Questions. - by [MM]RoXoR[FS] - 29.08.2012, 11:16
Re: Questions. - by _Khaled_ - 29.08.2012, 11:22
Re: Questions. - by romas3110 - 29.08.2012, 11:24
Re: Questions. - by _Khaled_ - 29.08.2012, 11:49
Re: Questions. - by romas3110 - 29.08.2012, 12:01
Re: Questions. - by _Khaled_ - 29.08.2012, 12:10
Re: Questions. - by _Khaled_ - 29.08.2012, 12:42

Forum Jump:


Users browsing this thread: 4 Guest(s)