Little function help -
Tigerkiller - 19.12.2011
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
Re: Little function help -
§с†¶e®РµРe - 19.12.2011
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;
}
Re: Little function help -
Tigerkiller - 19.12.2011
what about vehicles ?
when i fall in water with vehicle ?
Re: Little function help -
§с†¶e®РµРe - 19.12.2011
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
Re: Little function help -
Tigerkiller - 19.12.2011
i dont know how
can you make it for me please
Re: Little function help -
Hoborific - 19.12.2011
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 )
Re: Little function help - suhrab_mujeeb - 19.12.2011
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.
Re: Little function help -
Tigerkiller - 19.12.2011
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
Re: Little function help -
Tigerkiller - 20.12.2011
any help please
Re: Little function help -
§с†¶e®РµРe - 20.12.2011
Quote:
Originally Posted by suhrab_mujeeb
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.
|
Sorry that can't be changed but yeah i posted another stock.check the last post(it was when i posted :P)