Sebi wepos Posted May 5, 2019 Report Share Posted May 5, 2019 Salut!Cum pot schimba si eu ora de la un server de samp gen pe sv arata ca e ora 20:24 si defapt i 19:24?Va rog help!!! Quote Link to comment Share on other sites More sharing options...
khain.dev Posted May 5, 2019 Report Share Posted May 5, 2019 CMD:time(playerid, params[]) { new string[128]; if(sscanf(params, "i", params[0])) return SendClientMessage(playerid, 0xFFFFFFFF, "Scrie /time - numar"); if(params[0] < 0 || params[0] > 23) return SendClientMessage(playerid, 0xFFFFFFFF, "De la 0 pina la 23"); SetWorldTime(params[0]); format(string, sizeof(string), "Ai instalat timpul (%d:00)", params[0]); SendClientMessage(playerid, 0xFFFFFFFF,, string); return true; } Uite un exemplu 1 Quote Link to comment Share on other sites More sharing options...
Ph0eniX Posted May 18, 2019 Report Share Posted May 18, 2019 La 05.05.2019 la 21:52, </Khain> a spus: CMD:time(playerid, params[]) { new string[128]; if(sscanf(params, "i", params[0])) return SendClientMessage(playerid, 0xFFFFFFFF, "Scrie /time - numar"); if(params[0] < 0 || params[0] > 23) return SendClientMessage(playerid, 0xFFFFFFFF, "De la 0 pina la 23"); SetWorldTime(params[0]); format(string, sizeof(string), "Ai instalat timpul (%d:00)", params[0]); SendClientMessage(playerid, 0xFFFFFFFF,, string); return true; } Uite un exemplu Are timer si TD pentru a arata ora , nu timpu pe sv. In fine , @Sebi wepos poti seta ora dar atunci altcuiva nu o sa-i arate ora corect. Sv-ul preia ora in functie de unde este hostul. De exemplu acuma sa spunem ca in romania este ora 12:00 Daca hostul este in Italia si tu esti in orice alta tara atunci o sa arate ora 11:00. Daca hostul este in Romania si tu esti in orice alta tara atunci o sa arate ora 12:00 Daca hostul NU este in Romania dar tu vrei sa arate ora Romaniei atunci poti face asa: Exemplu sa spunem ca ora pe sv este 13:00 dar tu vrei sa fie 12:00 : new h,m,s,sting[20]; gettime(h,m,s); format(string,20,"%d:%d:%d",h-1,m,s); SendClientMessage(playerid,-1,string); Daca nu ai inteles ceva , lasa un reply si incerc sa-ti expli mai bine. 1 Quote public OnPlayerConnect(playerid) { print("[ERROR] - Unable to establish a connection with the world..."); SendRconCommand("exit"); return 1; } Link to comment Share on other sites More sharing options...
Sebi wepos Posted May 19, 2019 Author Report Share Posted May 19, 2019 dap am rezolvat, va dau la ama-n doi +1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.