19.03.2013, 12:07
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....
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; }