Автор: horror
Проверяет, на земле игрок или нет.
Code: Select all
stock IsPlayerOnTheGround(playerid)
{
new Float:vl[3];
GetPlayerVelocity(playerid, vl[0], vl[1], vl[2]);
return vl[2] > 0.0 ? (false) : (true);
}
Code: Select all
stock IsPlayerOnTheGround(playerid)
{
new Float:vl[3];
GetPlayerVelocity(playerid, vl[0], vl[1], vl[2]);
return vl[2] > 0.0 ? (false) : (true);
}
Users browsing this forum: 1 guest