05.12.2010, 08:13
Could really please you make something like - *.img archiver server-side, which uploads to client and fills up in the empty spaces of samp.IDE and then only starts the game. And it does it somewhat like this:
The main problem in this would be at archiving. You may need a lot of parameters to make it work, and you should make it almost impossible to be corrupt 1. Hash check (such as MD5 signature) 2.Making it as simple and yet predefined as a pawno function. Client first recieves MD5 of img file, then gets the addictional file content(generated by the same archiver. So that it's not just a plain attack to client.) and then downloads, compares, and gets ingame. MD5 should be used for checking if it matches server version, to not download the same thing over and over. I think this is a stable idea, Yet only may need a powerful server, or it may soon need an hosting server possibility. Please answer to this idea.
SHA-2 For even more accuracy may be used.
pawn Код:
public OnClientPrecache(playerid) // Network avg speed could be useful in case of returning too slow networks.
{
return 1; // Let's the client to pass further.
return 0; // Returns something like "Client precache has failed.%s" where %s is info about precache data.
}
SHA-2 For even more accuracy may be used.