/fltest
#5

Your PlayerToPoint usage is incorrect, not to mention that there is now a native function for the same thing, IsPlayerInRangeOfPoint.

Код:
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;
}
EDIT: Eh, Seif beat me to it, wrote this about 10 minutes ago and forgot to post it. :\
Reply


Messages In This Thread
/fltest - by iLcke - 15.03.2010, 01:46
Re: /fltest - by sidhu123 - 15.03.2010, 02:13
Re: /fltest - by iLcke - 15.03.2010, 02:20
Re: /fltest - by Sew_Sumi - 15.03.2010, 02:23
Re: /fltest - by ev0lution - 15.03.2010, 02:31
Re: /fltest - by iLcke - 15.03.2010, 02:33

Forum Jump:


Users browsing this thread: 1 Guest(s)