23.06.2011, 06:39
(
Последний раз редактировалось Fro1sha; 24.06.2011 в 07:38.
)
Description:
Natives:
Download:
This is Timezone plugin. You can set any timezone for your SA:MP server. And some useful function.How to use:
Small example.
pawn Код:
// Auto replacement default pawn time function
#define AUTO_SETUP
#include <gmtime>
pawn Код:
native gm_SetTimeZone(hour = 0, minute = 0);
native gm_gettime(&hour = 0, &minute = 0, &second = 0);
native gm_getdate(&year=0, &month = 0, &day = 0, &wday = 0);
native gm_strftime(const string[], dest[], size = sizeof(dest));
native gm_timestamp();
native gm_mktime(hour, minute, second, year, month, day);
native gm_timestamp_to_date(timestamp, &hour = 0, &minute = 0, &second = 0, &year = 0, &month = 0, &day = 0);
native gm_GetMonthDay(month, year = 1990);
native gm_ConvertSeconds(time, &hour = 0, &minute = 0, &second = 0, &year = 0, &month = 0, &day = 0);