02.03.2019, 10:26
Quote:
You need to enter your timezone somewhere, say in a command, then add that offset to the hour returned by gettime.
|
{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi inainte de a face asta.");
if(PlayerInfo[playerid][pSleeping] == 1) return 1;
new sendername[25],string[256];
new hour,minute,second;
gettime(hour,minute,second);
format(string, sizeof(string), "Acum e ora %d:%s%d si %d secunde.", hour, (minute < 10) ? ("0") : (""), minute, second);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "Ai jucat %d secunde din aceasta ora.", PlayerInfo[playerid][pPayDay]);
SendClientMessage(playerid, COLOR_WHITE, string);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s isi da maneca la o parte si se uita la ceas.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
if(!IsPlayerInAnyVehicle(playerid)) ApplyAnimation(playerid,"COP_AMBIENT","Coplook_wat ch",4.1,0,0,0,0,0);
return 1;
}