27.12.2014, 22:45
How do i make a roleplay time script?
Like /time and then the roleplay comes and then the time?
Anybody know?
Like /time and then the roleplay comes and then the time?
Anybody know?
CMD:time(playerid, params[])
{
new date[6], string[45];
gettime(date[0], date[1], date[2]);
getdate(date[3], date[4], date[5]);
format(string, sizeof(string), "%s %i de %s del %i - %i:%i:%i", GetDayOfWeek(date[3], date[4], date[5]), date[5], GetMonthName(date[4]), date[3], date[0], date[1], date[2]);
SendClientMessage(playerid, -1, string);
return 1;
}
CMD:time(playerid, params[])
{
new time[3], string[45];
gettime( time[0], time[1], time[2] );
format(string, sizeof(string), "%i:%i:%i", time[0], time[1], time[2]);
SendClientMessage(playerid, -1, string);
return 1;
}