16.06.2012, 19:19
How can i make a system , when you have a driving license , license expire in 21 days (3week)
i try
create at pInfo pCarLicTime , when player take a driving license i set PlayerInfo[playerid][pCarLicTime] = 1814400; and at /licenses i try
This is ok but how can i create timer for this? but driving license is on 21 days ( 1814400 seconds)
Please help me
i try
create at pInfo pCarLicTime , when player take a driving license i set PlayerInfo[playerid][pCarLicTime] = 1814400; and at /licenses i try
Код:
if(PlayerInfo[playerid][pCarLicTime] == 0) { SendClientMessage(playerid, COLOR_GREY, "Drivers License: Not passed"); } else { new timelicd = PlayerInfo[playerid][pCarLicTime] /60/60/24 ; new timelico = PlayerInfo[playerid][pCarLicTime] /60/60 ; new timelicm = PlayerInfo[playerid][pCarLicTime] /60 ; format(string, sizeof(string), "Drivers License Passed for: %d days or %d hours or %d minutes!.", timelicd,timelico,timelicm); SendClientMessage(playerid, COLOR_GREY, string); }
Please help me