Command
#2

You have to use MapAndreas plugin for that, velocity is not for that type of purpose.

Код:
new Float:ox, Float:oy, Float:oz, Float:mz;
GetPlayerPos(playerid, ox, oy, oz);
MapAndreas_FindZ_For2DCoord(ox, oy, mz); //this here is to find the ground coordinates you have to use mapandreas plugin
if(mz != nz) return SCM(playerid, COLOR_LIGHTRED, "* You can't plant seeds in air."); //If ground value doesn't match with the players Z coordinates returns error
https://sampforum.blast.hk/showthread.php?tid=120013
Reply


Messages In This Thread
Command - by KinderClans - 20.09.2018, 19:39
Re: Command - by ReD_HunTeR - 20.09.2018, 20:17
Re: Command - by KinderClans - 21.09.2018, 10:07
Re: Command - by UFF - 21.09.2018, 11:15
Re: Command - by GTLS - 21.09.2018, 13:01
Re: Command - by KinderClans - 21.09.2018, 13:34
Re: Command - by kingmk - 21.09.2018, 14:07
Re: Command - by NaS - 21.09.2018, 14:29
Re: Command - by KinderClans - 22.09.2018, 10:40
Re: Command - by NaS - 22.09.2018, 12:26

Forum Jump:


Users browsing this thread: 3 Guest(s)