Little function help
#1

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
Reply
#2

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;
}
Reply
#3

what about vehicles ?
when i fall in water with vehicle ?
Reply
#4

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
Reply
#5

i dont know how
can you make it for me please
Reply
#6

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 )
Reply
#7

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.
Reply
#8

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
Reply
#9

any help please
Reply
#10

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)
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)