17.02.2010, 14:52
Hey guys,
The problem is how to put player in a car? Like a player spawns a car from "/BMX" and how to put him automaticly?
I'm using Dialog, so maybe you guys can edit this, and add whats needed to put player on the bike/car? Oh and can you put a code, that you leave your car/bike the vehicle disapears? Thanx
The problem is how to put player in a car? Like a player spawns a car from "/BMX" and how to put him automaticly?
Код:
if(listitem == 9) { if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xff6600, "ERROR: Your already on a bike"); new Float:x,Float:y,Float:z,Float:a; GetPlayerPos(playerid,x,y,z); GetPlayerFacingAngle(playerid,a); CreateVehicle(494,x+1,y+1,z,a,6,6,10000); }