Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock UpdateTaxiTimerCountTD(playerid, order) {
- if(!PlayerTaxiTimerCountShow[playerid]) return 1;
- new h, m, s;
- if(order != -1) {
- if(TaxiOrder[order][torder_status] == 3) {
- if(TaxiOrder[order][torder_driverid] == playerid || TaxiOrder[order][torder_clientid] == playerid) {
- s = TaxiOrder[order][torder_time];
- format(mainString, 10, "%d$", TaxiOrder[order][torder_price]);
- }
- }
- }
- else {
- if(PlayerTaxiNotOrder[playerid] != -1) {
- s = PlayerTaxiDriver[PlayerTaxiNotOrder[playerid]][tdriver_notorder_time];
- format(mainString, 10, "%d$", TaxiPrice[playerid]);
- }
- else if(PlayerTaxiDriver[playerid][tdriver_notorder_playerid] != -1) {
- s = PlayerTaxiDriver[playerid][tdriver_notorder_time];
- format(mainString, 10, "%d$", TaxiPrice[PlayerTaxiDriver[playerid][tdriver_notorder_playerid]]);
- }
- }
- PlayerTextDrawSetString(playerid, PTD_TaxiTimerCount[playerid][15], mainString);
- // time
- h = s / 3600;
- if(h) {
- s -= h * 3600;
- }
- m = s / 60;
- if(s) {
- s -= m*60;
- }
- format(mainString, 10, "%02d", h);
- PlayerTextDrawSetString(playerid, PTD_TaxiTimerCount[playerid][9], mainString); // hour
- format(mainString, 10, "%02d", m);
- PlayerTextDrawSetString(playerid, PTD_TaxiTimerCount[playerid][10], mainString); // min
- format(mainString, 10, "%02d", s);
- PlayerTextDrawSetString(playerid, PTD_TaxiTimerCount[playerid][11], mainString); // sec
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement