no když chceš ... stejně si tam měl spoustu chyb, script by vůbec nefungoval
příklad s použitím PVar systému:
forward NahranyCas();
public OnGameModeInit()
SetTimer("NahranyCas",1000 * 60,1);
public NahranyCas(){
for(new i=0;i if(IsPlayerConnected(i)){
SetPVarInt(i,"minuty",GetPVarInt(i,"minuty")+1);//po nahrané minutě,se načte nahraný čas
if (GetPVarInt(i,"minuty") == 60){//když 60 min. tak nastaví hodinu
SetPVarInt(i,"minuty",0);
SetPVarInt(i,"hodiny",GetPVarInt(i,"hodiny")+1);//+1 hodina ,po 60 minutách
}
if (GetPVarInt(i,"hodiny") == 24){//kdyz je 24 h,tak se pripocita den
SetPVarInt(i,"hodiny",0);
SetPVarInt(i,"dny",GetPVarInt(i,"dny")+1);//+1 den
}
}
}
}
if(strcmp(cmd, "/status", true) == 0) {
new string[256];
format(string,sizeof(256),"Dnů %d , Hodin %d , Minut %d",GetPVarInt(playerid,"dny"),GetPVarInt(playerid,"hodiny"),GetPVarInt(playerid,"minuty"));
SendClientMessage(playerid, B_CERVENA, string);
return 1;
}