[FilterScript] Gamer's speedometer & fuel system
#21

Quote:
Originally Posted by gamer931215
Посмотреть сообщение
Later spawned vehicles will be detected and also will be given fuel and the health will be re-calculated
Wrong, when you use a for loop with max_vehicles to set fuel, will also set fuel for all vehicles that are made also.

Anyway i have a suggestion to this, instead of paying $80 make an for loop like this:
pawn Код:
new FuelTick;
for(new j; j < MAX_FUEL; j++)
{
     FuelTick+++;
     // may want to set the textdraw here so it looks like you are refuelling.
}
GivePlayerMoney(playerid, -FuelTick*FUEL_PRICE);
format(string, sizeof(string), "The refueling costed you $ %d! ", FuelTick*FUEL_PRICE);
You can also save a lot of lines by putting Health Speed And Fuel in the same Td.
Reply
#22

Quote:
Originally Posted by Hawkz_Ryder
Посмотреть сообщение
I repaired five warnings, the longer it is not. The repaired version can download here :
http://pastebin.com/sHFus5ar

Sorry for my bad english!
Warnings ? i compiled it here and it was warningfree....



Quote:
Originally Posted by Cameltoe
Посмотреть сообщение
Wrong, when you use a for loop with max_vehicles to set fuel, will also set fuel for all vehicles that are made also.
[/pawn]
Yeah pay per ticks also could be nice, i just liked to keep it simple. Also i dont get you at that. I tested it and it fully worked, updating, refuelling CAR1 and CAR2 still had its old fuel as when i stepped out.
Reply
#23

Quote:
Originally Posted by gamer931215
Посмотреть сообщение
Yeah pay per ticks also could be nice, i just liked to keep it simple. Also i dont get you at that. I tested it and it fully worked, updating, refuelling CAR1 and CAR2 still had its old fuel as when i stepped out.
Nono x) nothing wrong, but when you use a for MAX_VEHICLES loop you will set fuel for all future created vehicles as created vehicles.
Reply
#24

Quote:
Originally Posted by Cameltoe
Посмотреть сообщение
Nono x) nothing wrong, but when you use a for MAX_VEHICLES loop you will set fuel for all future created vehicles as created vehicles.
Yeah i know, need to work on my script effenciency
Reply
#25

Quote:
Originally Posted by gamer931215
Посмотреть сообщение
Yeah i know, need to work on my script effenciency
Just tell me if you need help i'll gladly help if you credit.
Anyway good luck, and otherwise .. its an good + simple script
Reply
#26

nice one mate i will use on my house hosting server
Reply
#27

when i used this is refueling and when you ran out of gas the car stays were it was last left with no gas and you cant drive the car because it hasnt refueld on spawn have these been fixed sorry i didnt post the proplem at the time i had forgotten who i got it off untill now
Reply
#28

Nice filterscript gamer931215!
Reply
#29

Nice FS
Reply
#30

Excellent i will use it too
Reply
#31

GOOD WORK ^^
Reply
#32

nice speedo gamer
Reply
#33

nvm, nice one!
Reply
#34

Good job, 8/10
Reply
#35

Where on the script can I change how quickly/slowly the fuel goes down.. it goes down pretty fast
Reply
#36

Nice work i will use it to my roleplay srw
Reply
#37

Nice work though the textdraws could be developed more better.
Reply
#38

1. Speed does not give the right amounts of the vehicles.
2. Fuel is decreasing even the car is not moving.
Reply
#39

Thank you my bro + rped
Reply
#40

nice work
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)