[Help] Unix timestamps with gettime
#1

Hello, can someone make me exmaple of Command for unix timestamp, i want to use less timer's in script...

this is expamle of /report command i want to remove timer and put timestamp....

Код:
new bool:ReportTime[MAX_PLAYERS] = false;
Код:
public Report(playerid)
{
    ReportTime[playerid] = false;
    return 1;
}
Код:
CMD:report(playerid, params[])
{
	new string[128];
	if(PlayerInfo[playerid][pMuted] == 1) return SCM(playerid,Crvena,"{FFFFFF}[{F81414}CHFR{FFFFFF}!] Utisani ste!");
	if(ReportTime[playerid] == true) return SCM(playerid,0xFFFFFFFF,  "{B3B3B3}({FF0000}Odbijeno!{B3B3B3}){FFFFFF} Report mozes koristit nakon 1 minute!");
	if(isnull(params)) return SCM(playerid, Narandasta,"Koristi:{FFFFFF} /report [razlog?]");
	format(string,sizeof(string)," |R| %s[%d]: %s", PlayerName(playerid),playerid, params);
	PorukaAdminu(Narandasta,string);
	format(string,sizeof(string),"*Vas report glasi: {FFFFFF}%s",params);
	SCM(playerid,Zuta3,string);
	SCM(playerid,Zuta3,"*Online Administratori ce odgovoriti u sto kracem vremenu.");
	ReportTime[playerid] = true; //This
        SetTimerEx("Report", 60000, false, "d", playerid); //This
	return 1;
}
Reply


Messages In This Thread
[Help] Unix timestamps with gettime - by David (Sabljak) - 19.03.2013, 12:07
AW: [Help] Unix timestamps with gettime - by Mellnik - 19.03.2013, 12:10
Re: [Help] Unix timestamps with gettime - by David (Sabljak) - 19.03.2013, 12:14
AW: [Help] Unix timestamps with gettime - by Mellnik - 19.03.2013, 12:17
Re: [Help] Unix timestamps with gettime - by David (Sabljak) - 19.03.2013, 12:19
Re: [Help] Unix timestamps with gettime - by Vince - 19.03.2013, 12:21
Re: [Help] Unix timestamps with gettime - by David (Sabljak) - 19.03.2013, 12:23
Re: [Help] Unix timestamps with gettime - by Misiur - 19.03.2013, 12:23

Forum Jump:


Users browsing this thread: 1 Guest(s)