Player on Water ?
#4

Quote:
Originally Posted by biker122
Посмотреть сообщение
Get the player's position (x, y, z)
If z value is less then 1.0, then the player is on water.
just detect the players animation
pawn Код:
GetAnimationName(GetPlayerAnimationIndex(playerid),animlib,sizeof(animlib),animname,sizeof(animname));
if(strcmp(animname,"SWIM_ANIM")==0)
{
ur textdraws
}
NOTE: this is just an example on how to do it,,i dont even know the anim name of swimming XD
Reply


Messages In This Thread
Player on Water ? - by WhiteAngels - 09.11.2014, 07:24
Re: Player on Water ? - by biker122 - 09.11.2014, 07:31
Re: Player on Water ? - by Pottus - 09.11.2014, 07:40
Re: Player on Water ? - by Quickie - 09.11.2014, 07:41
Re: Player on Water ? - by xStunt - 09.11.2014, 13:03
Re: Player on Water ? - by Toxik - 09.11.2014, 13:54

Forum Jump:


Users browsing this thread: 1 Guest(s)