18.07.2013, 19:49
I think you mean something like this:
Like that?
pawn Код:
CMD:fixcar(playerid, params[])
{
if(!IsPlayerInRangeOfPoint(playerid,3, 2505.7393,-1694.0750,13.5580)) return SendClientMessage(playerid, -1, "You are not at the garage!");
else
{
new vehicleid = GetPlayerVehicleID(playerid);
GivePlayerMoney(playerid, -60);
SetVehicleHealth(vehicleid, 1000.0);
RepairVehicle(vehicleid);
SendClientMessage(playerid, -1, "You have repaired your vehicle for 60 bucks! You also got 2 wanted stars!");
SetPlayerWantedLevel(playerid, 2);
}
return 1;
}