Adding player to a car[HELP]
#8

dude use : SpawnVehicle


here is the stock of SpawnVehicle :

Код:
SpawnVehicle(playerid, vehicleid)
{
  new Float:X, Float:Y, Float:Z, Float:A;
  new Vehicle;
  GetPlayerPos(playerid, X, Y, Z);
  GetPlayerFacingAngle(playerid, A); //Gets your Angle

  Vehicle = CreateVehicle(vehicleid, X, Y, Z, A, 1, 169, -1);
  PutPlayerInVehicle(playerid, Vehicle, 0);
  return 1;
}
and here is an example :

Код:
if(strcmp(cmdtext,"/hydra", true) == 0) {
     SpawnVehicle(playerid, 520);
     return 1;
}
Edit :

Код:
if(listitem == 9)
	{
        if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xff6600, "ERROR: Your already on a bike");
        SpawnVehicle(playerid, 494);
        
	}
________
red headed Cam
Reply


Messages In This Thread
Adding player to a car[HELP] - by UnLoVeD - 17.02.2010, 14:52
Re: Adding player to a car[HELP] - by SloProKiller - 17.02.2010, 14:54
Re: Adding player to a car[HELP] - by UnLoVeD - 17.02.2010, 14:58
Re: Adding player to a car[HELP] - by Fedee! - 17.02.2010, 15:04
Re: Adding player to a car[HELP] - by UnLoVeD - 17.02.2010, 15:09
Re: Adding player to a car[HELP] - by Fedee! - 17.02.2010, 15:14
Re: Adding player to a car[HELP] - by SloProKiller - 17.02.2010, 15:20
Re: Adding player to a car[HELP] - by aircombat - 17.02.2010, 15:32
Re: Adding player to a car[HELP] - by UnLoVeD - 17.02.2010, 15:41
Re: Adding player to a car[HELP] - by aircombat - 17.02.2010, 15:42

Forum Jump:


Users browsing this thread: 1 Guest(s)