What am i doing wrong!!!
#1

Hey im working on this command that you can only call when on a certain point but I keep being able to call it anywhere i am, help?

pawn Код:
COMMAND:repairvehicle(playerid, params[]) // repair vehicle for $175 at mechanic
{{
  if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xE0313AFF, "(( [Mechanic] You are not in a vehicle! ))");
  if(GetPlayerMoney(playerid) < 175) return SendClientMessage(playerid, 0xE0313AFF, "(( [Mechanic] You don't have the money to perform this action! ))");
  if(IsPlayerInRangeOfPoint(playerid, 30.0,2460.5691,-2118.7847,13.5530))return SendClientMessage(playerid, 0xE0313AFF, "(( [Mechanic]You are not at the mechanic HQ! ))");
  SendClientMessage(playerid, 0x3524C9FF, "(( [Mechanic] Vehicle repaired for $175! ))");
  GivePlayerMoney(playerid, -175);
  RepairVehicle(GetPlayerVehicleID(playerid));
  return 1;
}}
Reply


Messages In This Thread
What am i doing wrong!!! - by NicholasA - 24.12.2012, 09:11
Re: What am i doing wrong!!! - by GoldZoroGrab - 24.12.2012, 09:15
Re: What am i doing wrong!!! - by [ABK]Antonio - 24.12.2012, 09:16
Re: What am i doing wrong!!! - by NicholasA - 24.12.2012, 09:19
Re: What am i doing wrong!!! - by DaRk_RaiN - 24.12.2012, 09:21
Re: What am i doing wrong!!! - by [ABK]Antonio - 24.12.2012, 09:23
Re: What am i doing wrong!!! - by DaRk_RaiN - 24.12.2012, 09:25
Re: What am i doing wrong!!! - by Konstantinos - 24.12.2012, 09:28
Re: What am i doing wrong!!! - by [ABK]Antonio - 24.12.2012, 09:29
Re: What am i doing wrong!!! - by DaRk_RaiN - 24.12.2012, 09:31

Forum Jump:


Users browsing this thread: 1 Guest(s)