How to create Vehicle Insurance?
#1

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 :
Код:
OnVehicleDeath
am i right??
then? use Dini file? i dont know that

pls help me !
Reply
#2

Can you explain what you want this insurance to do? Like take money from the player or what?
Reply
#3

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]);
Reply
#4

Help!
Reply
#5

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
Reply
#6

Doesnt work.. pls help me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)