Posts: 673
Threads: 45
Joined: May 2010
Reputation:
0
hello community
iam searching a working function for IsPlayerInWater for players and players in vehicle.
i have searched but i cant find this function
hope anyone can help me
Posts: 332
Threads: 30
Joined: Oct 2011
Reputation:
0
stock IsPlayerInWater(playerid)
{
new animlib[32],tmp[32];
GetAnimationName(GetPlayerAnimationIndex(playerid) ,animlib,32,tmp,32);
if( !strcmp(animlib, "SWIM") && !IsPlayerInAnyVehicle(playerid) ) return true;
return false;
}
Posts: 673
Threads: 45
Joined: May 2010
Reputation:
0
what about vehicles ?
when i fall in water with vehicle ?
Posts: 332
Threads: 30
Joined: Oct 2011
Reputation:
0
edit the stock and put IsPlayerInVehicle somewhere.I hope you can modify it this much atleast.
:S
EDIT:i gtg will help you later if no one can
Posts: 673
Threads: 45
Joined: May 2010
Reputation:
0
i dont know how
can you make it for me please
Posts: 359
Threads: 63
Joined: Jul 2010
Reputation:
0
if you don't know how to edit what the guy above said I think you should start off with something ... more basic..-er
And I believe there isn't a way to check if a vehicle is in water, not that I know of anyway ( last time I tried )
suhrab_mujeeb
Unregistered
Quote:
Originally Posted by §с†¶e®РµРe
edit the stock and put IsPlayerInVehicle somewhere.I hope you can modify it this much atleast.
:S
EDIT:i gtg will help you later if no one can
|
Eh, really? The stock works getting animations when a player is swimming. When a player is in a car he does not apply swim animations.
Posts: 673
Threads: 45
Joined: May 2010
Reputation:
0
lol ?
i know the basics and more
but idk how to detect if a player falls with a car in the water
and it is possible to detect
and i forgot to say:
i dont want shit answers they doesnt help