![]() |
#1 |
SA-MP Developer
![]() ![]() ![]() ![]() ![]() Join Date: Apr 2005
Posts: 1,178
Reputation: 2859
|
![]()
This update is for SA-MP server owners only
- Adds protection against hackers who spam OnPlayerConnect messages. - Weapon ID checking after OnPlayerWeaponShot in case the script doesn't filter it. - Actors now default to being invulnerable (this might be needed later for a bandaid rotation fix in the client). - Adds console variable 'conncookies' (int) to disable the 0.3.7 connection cookie system. - Adds console variable 'cookielogging' to disable logging of connection cookies requested by newly connecting players. - Adds SHA256_PassHash() function for hashing player passwords. SQLite stuff: - The sqlite functions db_open and db_query now return indexes (starting at 1) instead of memory handles. That means the server tracks the memory handles internally and won't crash if invalid handles are used. - Several extra sqlite db_* functions have been added. Please see the a_sampdb.inc for a full list. - Adds %q to format(). %q is the same as %s although the input will first be passed through sqlite's string escaping function. - Adds console variable 'db_logging'. Logs sqlite db_* function errors to the main server_log. - Adds console variable 'db_log_queries'. Logs all sqlite db_query() calls including the query string. Server variable system (SVars): - The SVar system is the same as the PVars, although the variables created are server-wide, not attached to any playerid, and persist through gamemode changes. The pawn functions intended to read console/config variables (GetServerVarAs*) have been deprecated due to a naming conflict with the SVar system. These functions will still work for the time being. Moving forward it's recommended you rename these functions as listed below: Code:
native GetConsoleVarAsString(const varname[], buffer[], len); native GetConsoleVarAsInt(const varname[]); native GetConsoleVarAsBool(const varname[]); - Adds null value checks to sqlite db_get*. These functions would crash on invalid rows or field names. - Updates SHA256_PassHash() sha256 implementation to fix a padding problem. - Fixes an index problem with PVars and SVars where *GetUpperIndex would return 1 when all vars had been deleted. Downloads: Please review the SA-MP Services Agreement if you wish to run a public SA-MP server. SA-MP 0.3.7 R2-1 Linux Server: http://files.sa-mp.com/samp037svr_R2-1.tar.gz SA-MP 0.3.7 R2-1 Windows Server: http://files.sa-mp.com/samp037_svr_R2-1-1_win32.zip Last edited by Kalcor; 15/10/2018 at 06:03 AM. |
![]() |
![]() |
![]() |
#2 |
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jul 2010
Location: In a galaxy far far away, near the Netherlands
Posts: 1,100
Reputation: 2128
|
![]()
Seems nice, thanks! Personally I've always needed something like SVars.
|
![]() |
![]() |
![]() |
#3 |
Banned
![]() Join Date: Jun 2010
Location: Bulgaria
Posts: 2,297
Reputation: 1389
|
![]()
The native hash function was much needed so server owners finally have no excuse for not hashing their players' passwords, good work!
|
![]() |
![]() |
![]() |
#4 |
Big Clucker
![]() ![]() Join Date: Mar 2008
Posts: 102
Reputation: 3
|
![]()
Thank you very much for this usefull functions.
|
![]() |
![]() |
![]() |
#5 |
Huge Clucker
![]() ![]() ![]() Join Date: Sep 2012
Location: /
Posts: 416
Reputation: 30
|
![]()
Good work
|
![]() |
![]() |
![]() |
#6 |
Gangsta
![]() ![]() ![]() ![]() Join Date: May 2014
Location: SP - Capital
Posts: 647
Reputation: 52
|
![]()
Nice! Thanks! =)
|
![]() |
![]() |
![]() |
#7 |
Banned
![]() Join Date: Jun 2009
Location: Croatia (Hrvatska)
Posts: 734
Reputation: 102
|
![]()
Great new version, thanks for bug fixes and new functions.
Any hint on how and what for should I use the new SVar system? |
![]() |
![]() |
![]() |
#8 |
Little Clucker
![]() Join Date: Sep 2012
Location: Russia
Posts: 2
Reputation: 1
|
![]()
Thanks
|
![]() |
![]() |
![]() |
#9 |
Huge Clucker
![]() ![]() ![]() Join Date: Jun 2013
Location: My computer
Posts: 487
Reputation: 114
|
![]()
Thank you.
|
![]() |
![]() |
![]() |
#10 |
Guest
Posts: n/a
|
![]()
Thank you, kyeman.
|
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Server UpDate | lsreskjn | Server Support | 4 | 22/11/2013 06:18 PM |
How to update my server from 0.3e to 0.3x | ardizz | Scripting Help | 3 | 05/05/2013 04:00 AM |
how do I server update | zimon_5 | Server Support | 3 | 09/01/2011 02:13 AM |
Server update: 0.3a R8 | Kalcor | Server Support | 365 | 31/10/2010 04:36 PM |