Destroy vehicle problem
#4

There is your full code ? There some things missing.
Код:
public OnPlayerSpawn(playerid)
{
    ResetPlayerWeapons(playerid);
	myvehicle = CreateVehicle(457, 2174.8621, 2946.9783, 25.5139, 0.0000, -1, -1, 100);
	PutPlayerInVehicle(playerid, myvehicle, 0);
  	DestroyVehicle(myvehicle);
  	if(GetPlayerWeapon(playerid) == 2)
  	{
		Kick(playerid);
	}
	return 1;
}
I don't know what is the purpose of your code. The player spawn, you put him in a vehicle and destroy the vehicle.
Reply


Messages In This Thread
Destroy vehicle problem - by Mijata - 02.06.2016, 16:07
Re: Destroy vehicle problem - by Dayrion - 02.06.2016, 16:19
Re: Destroy vehicle problem - by Mijata - 02.06.2016, 16:30
Re: Destroy vehicle problem - by Dayrion - 02.06.2016, 16:35
Re: Destroy vehicle problem - by Mijata - 02.06.2016, 16:38
Re: Destroy vehicle problem - by Dayrion - 02.06.2016, 16:45
Re: Destroy vehicle problem - by Mijata - 02.06.2016, 16:51
Re: Destroy vehicle problem - by ProRakNet - 02.06.2016, 17:09
Re: Destroy vehicle problem - by Mijata - 02.06.2016, 17:29
Re: Destroy vehicle problem - by Dayrion - 02.06.2016, 17:29

Forum Jump:


Users browsing this thread: 1 Guest(s)