27.04.2014, 07:44
(
Последний раз редактировалось Dusan01; 27.04.2014 в 16:28.
)
hi guys, i have this code:
and i have mapandreas plugin... but still code dont work what is problem?
pawn Код:
IsPlayerInAir(playerid)
{
print("dbgg1");
new Float:varx,Float:vary,Float:varz,Float:var1,Float:diff;
GetPlayerPos(playerid, varx, vary, varz);
MapAndreas_FindZ_For2DCoord(varx, vary, var1);
if(varz < var1)
{
print("dbgg2");
diff = varz-var1;
if(diff > 5)
{
print("dbgg3");
SCM(playerid,GRAD2,"Moras stajati na zemlji da bi posadio marihuanu.");
return 1;// player is in air
}
else
{
return 0;//player is on the ground
}
}
print("dbgg4");
if(varz >= var1)
{
diff = var1-varz;
if(diff > 5)
{
SCM(playerid,GRAD2,"Moras stajati na zemlji da bi posadio marihuanu.");
return -1;// player is under ground
}
else
{
return 0;//player is on the ground
}
}
return 0;
}

