01.06.2012, 13:27
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:
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);
}
}