Help with illegal car mechaniker
#4

I think you mean something like this:
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;
}
Like that?
Reply


Messages In This Thread
Help with illegal car mechaniker - by IsakSahlen - 17.07.2013, 14:14
Re: Help with illegal car mechaniker - by IsakSahlen - 17.07.2013, 14:16
Re: Help with illegal car mechaniker - by IsakSahlen - 18.07.2013, 19:39
Re: Help with illegal car mechaniker - by JimmyCh - 18.07.2013, 19:49
Re: Help with illegal car mechaniker - by IsakSahlen - 19.07.2013, 16:55

Forum Jump:


Users browsing this thread: 2 Guest(s)