06.04.2013, 12:22
You mean ingame day or real-life day? For a real-life day, you can save the day-number (getdate) into a variable and check if the day-number is the same.
Something like this:
Something like this:
Код:
new lastday = // retrieve the last day from the account information here new currentday = getdate(); if (lastday == currentday) { return SendClientMessage(playerid, -1, "You can use this command only once a day!"); } else { lastday = currentday; // Don't forget to save the lastday variable in the account files. // Do your command stuff here.. return 1; }