Roleplay - Taxi fare?
#1

Hello,

Im trying, Oh belive me im trying, To make a roleplay script from scratch,
And erm, I was wondering how i would do this, When a taxi driver sets there fare,
And a player gets in there vehicle, For every 5 seconds that has past, It increases the total price,
By the taxis fire, So like if my fare was $3, For every 5 seconds im in the taxi it would go up $3
And then when i exit the taxi, It pays the taxi driver the total amount, How would i do this?
Reply
#2

I am also trying to figure this out 2..xD hopefully some one can help us!!!
Reply
#3

Anyone :P
Reply
#4

I guess, make a timer and when that timer runs out. + amoment of money to the moment thats already set?
Reply
#5

Thats what im asking :P i dont know how to increase it by whatever the fare is AND then when they exit the taxi make them pay it
Reply
#6

Every 5 seconds do something like PlayerInfo[playerid][Taxifare] += 5;

And OnPlayerExitVehicle check if they left a taxi with a driver and then use GivePlayerMoney(playerid, GetPlayerMoney(playerid) - PlayerInfo[playerid][Taxifare]);
Reply
#7

I want to help, but it will be confusing cuz i have to get DCMD script first, and i am too "LAZY" to do it.
Reply
#8

This is an old topic but.. Anyone could help on this :P?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)