02.04.2016, 10:11
Quote:
Create a callback (TaxiFare) where you use something like FareVariable[playerid]++.
Call a timer on command from the taxidriver, /startmeter <playerid>. SetTimerEx("TaxiFare", 1000, 1, "i", id); Make sure to check if the given id is in the same vehicle as the driver. Also make sure to check if it's vehicle id 420. |
for example: /fare 60 - on player state change - passenger - 60 dollar per sec - when the player exits it gives the driver the full amount