15.03.2010, 02:31
Your PlayerToPoint usage is incorrect, not to mention that there is now a native function for the same thing, IsPlayerInRangeOfPoint.
EDIT: Eh, Seif beat me to it, wrote this about 10 minutes ago and forgot to post it. :\
Код:
if(strcmp(cmd, "/fltest", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,10.0,1958.300048,-2184.000000,13.500000))
{
fltest[playerid] = 1;
SendClientMessage(playerid, TEAM_GROVE_COLOR, "FLYING TEST, get a shamal from the airport!");
AntiHack(playerid,-SBizzInfo[2][sbEntcost]);
SBizzInfo[2][sbTakings] = SBizzInfo[2][sbTakings]+SBizzInfo[2][sbEntcost];
return 1;
}
SendClientMessage(playerid, COLOR_RED, "ERROR: Your to far from airport gates!");
return 1;
}

