Jump to content

[Tutorial] Cum sa salvezi vremea si timpul dupa restart


Recommended Posts

Salut,ati avut momente cind dupa restart este alta vreme si timp, mai ales daca aveti vremea si timpul ca in relitate,cu aceasta metoda dupa restart se va salva timpul si vremea pe server care era!

Citat

// in orice loc al modului chiar si la sfirsit

stock SaveWAndT() 

    new strtmp[8]; 
    GetServerVarAsString("weather", strtmp, sizeof strtmp); 
    SetSVarString("un_Weather", strtmp); 
    GetServerVarAsString("worldtime", strtmp, sizeof strtmp); 
    SetSVarString("un_WorldTime", strtmp); 

stock LoadWAndT() 

    new strtmp[8]; 
    if(GetSVarType("un_Weather")) 
    { 
        GetSVarString("un_Weather", strtmp, sizeof strtmp); 
        SetWeather(strval(strtmp)); 
    } 
    if(GetSVarType("un_WorldTime")) 
    { 
        GetSVarString("un_WorldTime", strtmp, sizeof strtmp); 
        SetWorldTime(strval(strtmp)); 
    } 

Citat

// trecem la publicuri si introducem aceste stock-uri

public OnGameModeInit() 

    LoadWAndT(); 
    return 1; 

public OnGameModeExit() 

    SaveWAndT(); 
    return 1; 

Mersi de atentie,astept macar un "+" de staruinta ?

  • Upvote 1
[ Anti Flood Pack ] / Click [ Pugb SA:MP ] Click / [ TD Autorizatie ] Click
[ Created dm zone ] Click / [ Salvare vreme si timp ] Click [ Statistica a serverului ] Click
[ Sistema duel ] Click [ TD Registrare/Autorizatie ] Click [ Sistema kill/killed by ] Click
[ Sistema data si ora Click /  [ GM Anticheat ] Click   /  [ Schimbarea mersului ] Click
[ Save Camera ] Click  [ Sitema Concurs ] Click [ Projector pentru elicopter ] Click /
[ DM Zona ] Click / [ Folosirea textelor lungi ] Click / [Khain RPG] Click  / Antisobeit Click
Link to post
Share on other sites
  • 3 months later...

Un fel de doua feluri, te poti lua cu acest sistem sau cum sa ii spune dupa sistemul de timp. Doar ca inlocuiesti timpul cu vremea! 

Nu mi se pare nimic wow!

Dislike!

Ai nevoie de ajutor in scripting si nu ai bani? Te pot ajuta cu mare drag. Dar asta nu inseamna sa iti lucrez un Sistem de joc complet, daca ai nevoie de ajutor ma poti contacta pe Discord.ezgif-2-3a38433e2465.gif.9283810e304f5e405309769455e5e14b.gif

Link to post
Share on other sites
  • 1 month later...
La 26.04.2019 la 17:24, razvanduciuc a spus:

Un fel de doua feluri, te poti lua cu acest sistem sau cum sa ii spune dupa sistemul de timp. Doar ca inlocuiesti timpul cu vremea! 

Nu mi se pare nimic wow!

Dislike!

Aceasta sistema nu consta in ceva wow,este folositoare pentru orice server?

[ Anti Flood Pack ] / Click [ Pugb SA:MP ] Click / [ TD Autorizatie ] Click
[ Created dm zone ] Click / [ Salvare vreme si timp ] Click [ Statistica a serverului ] Click
[ Sistema duel ] Click [ TD Registrare/Autorizatie ] Click [ Sistema kill/killed by ] Click
[ Sistema data si ora Click /  [ GM Anticheat ] Click   /  [ Schimbarea mersului ] Click
[ Save Camera ] Click  [ Sitema Concurs ] Click [ Projector pentru elicopter ] Click /
[ DM Zona ] Click / [ Folosirea textelor lungi ] Click / [Khain RPG] Click  / Antisobeit Click
Link to post
Share on other sites
  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.