[FilterScript] Useful Functions [0.3b RC2]
#22

Quote:
Originally Posted by Lorenc_
Посмотреть сообщение
Yeh it could although there is another way you can do it, i made it:

pawn Код:
stock IsPlayerInWater(playerid)
{
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    if(z <= -2) return true;
    return false;
}
Untested but it should work fine.
I just wonder how is that accurate, if it only has to do with z? It would've been helpful if someone actually goes through all the water area and record them to coordinates. SA:MP Devs should do something with IsPlayerInWater.
Reply


Messages In This Thread
Useful Functions [0.3b RC2] - by ZaR - 14.08.2010, 02:52
Re: Useful Functions [0.3b RC2] - by YmOn - 14.08.2010, 02:53
Re: Useful Functions [0.3b RC2] - by ZaR - 14.08.2010, 03:01
Re: Useful Functions [0.3b RC2] - by [L3th4l] - 14.08.2010, 04:00
Re: Useful Functions [0.3b RC2] - by CuervO - 14.08.2010, 04:08
Re: Useful Functions [0.3b RC2] - by MisterTickle - 14.08.2010, 06:33
Re: Useful Functions [0.3b RC2] - by rbN. - 14.08.2010, 06:39
Re: Useful Functions [0.3b RC2] - by Haji - 14.08.2010, 08:29
Re: Useful Functions [0.3b RC2] - by CrunkBankS - 14.08.2010, 08:43
Re: Useful Functions [0.3b RC2] - by Hiddos - 14.08.2010, 08:53
Re: Useful Functions [0.3b RC2] - by Calgon - 14.08.2010, 08:57
Re: Useful Functions [0.3b RC2] - by ViruZZzZ_ChiLLL - 14.08.2010, 08:58
Re: Useful Functions [0.3b RC2] - by matthewdriftking - 14.08.2010, 09:28
Re: Useful Functions [0.3b RC2] - by Lorenc_ - 14.08.2010, 11:21
Re: Useful Functions [0.3b RC2] - by Hiddos - 14.08.2010, 11:24
Re: Useful Functions [0.3b RC2] - by GaGlets(R) - 14.08.2010, 11:55
Re: Useful Functions [0.3b RC2] - by Blantas - 14.08.2010, 12:25
Re: Useful Functions [0.3b RC2] - by ZaR - 14.08.2010, 12:39
Re: Useful Functions [0.3b RC2] - by HyperZ - 14.08.2010, 12:48
Re: Useful Functions [0.3b RC2] - by DarkPower - 14.08.2010, 13:35
Re: Useful Functions [0.3b RC2] - by ZaR - 15.08.2010, 23:58
Re: Useful Functions [0.3b RC2] - by Hijolion - 16.08.2010, 02:42
Re: Useful Functions [0.3b RC2] - by DRIFT_HUNTER - 16.08.2010, 03:35
Re: Useful Functions [0.3b RC2] - by CuervO - 16.08.2010, 03:48
Re: Useful Functions [0.3b RC2] - by ZaR - 16.08.2010, 21:29
Re: Useful Functions [0.3b RC2] - by GaGlets(R) - 16.08.2010, 22:55
Re: Useful Functions [0.3b RC2] - by Agent Smith - 16.08.2010, 23:10

Forum Jump:


Users browsing this thread: 1 Guest(s)