Jump to content
  • 0

pomoc Create Vehicle ?


TheKid

Dotaz

Cau mam takovej kod kterej ma udelat ze pokud clovek neni v vehicle id 32 tak ho to vytvoří a dá do něj ale nějak to nefunguje -- respektive neudela to vubec nic :(

 

SetPlayerPos(playerid, -301,1506,76);	   
	    SetPlayerFacingAngle(playerid,0.0);
  if(!IsPlayerInVehicle(playerid, 32))
  {
  new Float:x, Float:y, Float:z;
  GetPlayerPos(playerid, x, y, z);
  new vehicle = CreateVehicle(32, x, y, z, 82.2873, 0, 1, 60);
  PutPlayerInVehicle(playerid, vehicle, 0);
  }

Link to comment
Share on other sites

4 odpovědí na tuto otázku

Recommended Posts

  • 0

SetPlayerPos(playerid, -301,1506,76);

SetPlayerFacingAngle(playerid,0.0);

if(GetPlayerVehicleID(playerid) != 32)

{

new Float:x, Float:y, Float:z;

GetPlayerPos(playerid, x, y, z);

new vehicle = CreateVehicle(32, x, y, z, 82.2873, 0, 1, 60);

PutPlayerInVehicle(playerid, vehicle, 0);

}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...