Help with illegal car mechaniker - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with illegal car mechaniker (
/showthread.php?tid=451495)
Help with illegal car mechaniker -
IsakSahlen - 17.07.2013
Hello boys n girls
I got an idea... like a pay n spray without color change in cj's house this coordinates
0,2505.7393,-1694.0750,13.5580,180.9448,0,0,0,0,0,0
then you drive inside the garage you got a message in chatt like
hi you want to hier a cheap mechaniker?? i take 60 $ to fix your car. type /fixcar to hire a mechaniker.
after /fixcar the car health will go to 1000 hp and it will take 60 dollars from the player.
and the player will get +2 wanted stars
cops can't do this
thnx for help

sorry for bad English
Re: Help with illegal car mechaniker -
IsakSahlen - 17.07.2013
don't care about this message
Re: Help with illegal car mechaniker -
IsakSahlen - 18.07.2013
help plz?
Re: Help with illegal car mechaniker -
JimmyCh - 18.07.2013
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?
Re: Help with illegal car mechaniker -
IsakSahlen - 19.07.2013
yes, thank you