Jump to content

Update-Script


{_AntiFreak_}

Recommended Posts

Posted

know a little about socket and http requests and probably just look at the script a little, wasn't really that hard to make

Posted

just rip it out the GUS or GRS script.. its not that hard.. infact thinking about it u could rip it right out of mtama :P

Posted
But, i don't know how to do This

Then dont's start it? But yeah you can rip it out of MTA:mA, but don't forget to mention it i wrote that piece of script :):)

Posted
But, i don't know how to do This

Then dont's start it? But yeah you can rip it out of MTA:mA, but don't forget to mention it i wrote that piece of script :):)

Or rip it out, change a line and say that it's yours like Sanzor(Lil'San^,^u<3) always does. (Further don't forget to post it on the forum as yours, Sanzor-style)

  • 2 weeks later...
Posted

What means

        if ($exists($scriptdir $+ %b)) && ($md5($scriptdir $+ %b,2) != $readini(gus.update.tmp,n,%b,md5)) { 

and

    if ($md5(%a $+ .tmp,2) != $readini(gus.update.tmp,n,%a,md5)) { 

???

What is md5?

for GUS, the gus.tmp looks like this:

[info] 
Script=MTA:mA:GUS 
Author=Tommis 
[mtagus.mrc] 
Version=x16 Final 
md5=bf6357aba17fd5b6c16caf4851e9d294                       <---There is "md5" 
Info=Update Now, Final Version! Faster, more efficient. 
Size=55629 
[gus.ico] 
Version=1.0 
md5=4b55c31209731185ee6c44919935e668                      <---And here, too. What means it? 
Info=Icon 
Size=1406  

Posted

it checks whether the file is there, if it is, it then gets the md5 checksum from the webserver and compares it with that of the file that is currently on your pc, if they match it is fine, if they don't, it will download it from the webserver

read more about md5 here

Posted

you would generate the md5 checksum when you have a new version then put it in that file, gus had a webpage that generated the .tmp file itself, you just put the version and info into a webpage, i would release the source but i can't remember who actually made it

Posted

yes, but there is a php file somewhere else on the site that will generate the gus.tmp file when you go to it, you can also just make a mirc script to do this aswell

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...