Need help Rep+1
#6

Код:
	
        new Float:vehx, Float:vehy, Float:vehz;
 	GetVehiclePos(GetPlayerVehicleID(playerid), vehx, vehy, vehz);
	new Float: Distance = GetPlayerDistanceFromPoint(playerid, vehx, vehy, vehz);//if player is not close to vehicle x , y ,z..
	if(Distance>15.0)//it will check the distance here.. if distance is larger then he removed from vehicle !
	{
      RemovePlayerFromVehicle(playerid);
      new Float:slx, Float:sly, Float:slz;
      GetPlayerPos(playerid, slx, sly, slz);
      SetPlayerPos(playerid, slx, sly, slz);
	}
	

What should i do now
You mean when players try to enter the vehicle while the vehicle moving far away, they enter the vehicle, is this what do you mean?

Listen my mean is simple if player is not close to any vehicle he cant enter them..
Reply


Messages In This Thread
Need help Rep+1 - by MBilal - 03.02.2015, 17:03
Re: Need help Rep+1 - by Youssef221 - 03.02.2015, 17:13
Re: Need help Rep+1 - by MBilal - 03.02.2015, 17:30
Re: Need help Rep+1 - by CalvinC - 03.02.2015, 17:31
Re: Need help Rep+1 - by Youssef221 - 03.02.2015, 17:33
Re: Need help Rep+1 - by MBilal - 03.02.2015, 17:50
Re: Need help Rep+1 - by CalvinC - 03.02.2015, 17:53
Re: Need help Rep+1 - by MBilal - 03.02.2015, 17:56
Re: Need help Rep+1 - by CalvinC - 03.02.2015, 18:31
Re: Need help Rep+1 - by MBilal - 04.02.2015, 14:06

Forum Jump:


Users browsing this thread: 1 Guest(s)