Something like AttachPlayerToVehicle
#9

1.Create global variable "fishing" which is "1" when player is in fishing and "0" when player is not in fishing
2.Creare global variable "boatid" and put there id of a boat.
3.Use this:

pawn Код:
public OnPlayerUpdate(playerid)
{
new Float:x, Float:y, Float:z;
if(fishing == 1)
{
GetVehiclePos(boatid,x,y,z);
SetPlayerPos(playerid, x,y,z+0.3);
}
}
Reply


Messages In This Thread
Something like AttachPlayerToVehicle - by zgintasz - 01.06.2012, 12:14
Re: Something like AttachPlayerToVehicle - by TzAkS. - 01.06.2012, 12:20
Re: Something like AttachPlayerToVehicle - by Sandiel - 01.06.2012, 12:31
Re: Something like AttachPlayerToVehicle - by MadeMan - 01.06.2012, 12:34
Re: Something like AttachPlayerToVehicle - by zgintasz - 01.06.2012, 12:39
Re: Something like AttachPlayerToVehicle - by TzAkS. - 01.06.2012, 12:46
Re: Something like AttachPlayerToVehicle - by zgintasz - 01.06.2012, 13:06
Re: Something like AttachPlayerToVehicle - by TzAkS. - 01.06.2012, 13:09
Re: Something like AttachPlayerToVehicle - by pasha97 - 01.06.2012, 13:27

Forum Jump:


Users browsing this thread: 1 Guest(s)