20.09.2018, 19:39
I have a command to plant seeds and i added a check to check if player is in air, problem is, even if im in ground or in a streets, it says i can't plant seeds in air.
This is the check:
This is the check:
pawn Код:
new Float:vx, Float:vy, Float:vz;
GetPlayerVelocity(playerid, vx, vy, vz);
vz = VectorSize(vx, vy, vz);
if(floatabs(vz) < 0.05) return SCM(playerid, COLOR_LIGHTRED, "* You can't plant seeds in air.");