How to create Vehicle Insurance? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to create Vehicle Insurance? (
/showthread.php?tid=243254)
How to create Vehicle Insurance? -
Tama - 22.03.2011
Hello again there, newbie need help here

i check some server, like ls-rp they have the car insurance, how to create that??
i try to create on :
am i right??
then? use Dini file? i dont know that
pls help me !
Re: How to create Vehicle Insurance? -
Tommy_Mandaz - 22.03.2011
Can you explain what you want this insurance to do? Like take money from the player or what?
Re: How to create Vehicle Insurance? -
Tama - 22.03.2011
Quote:
Originally Posted by Tommy_Mandaz
Can you explain what you want this insurance to do? Like take money from the player or what?
|
okay, i mean like this:
i've buy car (sultan) then i have an insurance for the sultan, if car destroyed, the car insurance -1 (default is 3)
then if the insurance reach 0 the car is not belong the owner (me) and then the script is erase the insurance.ini or else..
or Dini file like dini_set?
ex:
pawn Код:
CarInfo[idx][cInsurance] = dini_Int(file,"Insurance");
pawn Код:
dini_IntSet(file,"Insurace",CarInfo[idx][cInsurance]);
Re: How to create Vehicle Insurance? -
Tama - 22.03.2011
Help!
Re: How to create Vehicle Insurance? -
tanush - 23.03.2011
pawn Код:
if(CarInfo[idx][cInsurance])
{
GivePlayerMoney(playerid,amount);// change money by ammount
SendClientMessage(playerid,0xFF9900AA,"Your vehicle has been destroyed! You had got your vehicle insurance back");
}
i never testing, i think it might work
Re: How to create Vehicle Insurance? -
Tama - 23.03.2011
Doesnt work.. pls help me