SA-MP Forums

Go Back   SA-MP Forums > SA-MP > News and Updates

Reply
 
Thread Tools Display Modes
Old 11/07/2015, 08:00 PM   #1
Kalcor
SA-MP Developer
 
Join Date: Apr 2005
Location: Oblivion
Posts: 660
Reputation: 2322
Post SA-MP 0.3.7 R2-1 server update

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[]);
Update 0.3.7 R2-1:

- 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:

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; 14/08/2015 at 10:52 PM.
Kalcor is offline   Reply With Quote
Old 11/07/2015, 08:05 PM   #2
Danny
High-roller
 
Danny's Avatar
 
Join Date: Jul 2010
Location: In a galaxy far far away, near the Netherlands
Posts: 2,849
Reputation: 2096
Default Re: SA-MP 0.3.7 R2 server update

Seems nice, thanks! Personally I've always needed something like SVars.
__________________
I hate reputation-askers, so DON'T ASK, JUST EARN!

come into my life, it's a man made paradise

http://www.buzzfeed.com/norbertobric...omp-stomp-clap
Danny is offline   Reply With Quote
Old 11/07/2015, 08:08 PM   #3
KingHual
High-roller
 
KingHual's Avatar
 
Join Date: Jun 2010
Location: Bulgaria
Posts: 2,417
Reputation: 1290
Default Re: SA-MP 0.3.7 R2 server update

The native hash function was much needed so server owners finally have no excuse for not hashing their players' passwords, good work!
__________________
KingHual is offline   Reply With Quote
Old 11/07/2015, 08:14 PM   #4
Blokkmonsta
Big Clucker
 
Blokkmonsta's Avatar
 
Join Date: Mar 2008
Posts: 103
Reputation: 3
Default AW: SA-MP 0.3.7 R2 server update

Thank you very much for this usefull functions.
Blokkmonsta is offline   Reply With Quote
Old 11/07/2015, 08:16 PM   #5
Whyd
Huge Clucker
 
Whyd's Avatar
 
Join Date: Sep 2012
Location: /
Posts: 395
Reputation: 30
Default Respuesta: SA-MP 0.3.7 R2 server update

Good work
Whyd is offline   Reply With Quote
Old 11/07/2015, 08:17 PM   #6
#Luca[S].
Gangsta
 
#Luca[S].'s Avatar
 
Join Date: May 2014
Location: SP - Capital
Posts: 668
Reputation: 52
Default Re: SA-MP 0.3.7 R2 server update

Nice! Thanks! =)
__________________
#Luca[S]. is offline   Reply With Quote
Old 11/07/2015, 08:20 PM   #7
Virtual1ty
Gangsta
 
Virtual1ty's Avatar
 
Join Date: Jun 2009
Location: Croatia (Hrvatska)
Posts: 750
Reputation: 97
Default Re: SA-MP 0.3.7 R2 server update

Great new version, thanks for bug fixes and new functions.
Any hint on how and what for should I use the new SVar system?
Virtual1ty is offline   Reply With Quote
Old 11/07/2015, 08:24 PM   #8
[GY]Scientist
Little Clucker
 
Join Date: Sep 2012
Location: Russia
Posts: 2
Reputation: 1
Default Re: SA-MP 0.3.7 R2 server update

Thanks
[GY]Scientist is offline   Reply With Quote
Old 11/07/2015, 08:25 PM   #9
Sledgehammer
Gangsta
 
Sledgehammer's Avatar
 
Join Date: Jun 2013
Location: My computer
Posts: 534
Reputation: 113
Default Re: SA-MP 0.3.7 R2 server update

Thank you.
__________________
Sledgehammer is offline   Reply With Quote
Old 11/07/2015, 08:26 PM   #10
MacMillan_
Guest
 
Posts: n/a
Default Re: SA-MP 0.3.7 R2 server update

Thank you, kyeman.
  Reply With Quote
Reply
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server UpDate lsreskjn Server Support 4 22/11/2013 05:18 PM
SA-MP 0.3x R2 server update TheChaoz Español/Spanish 7 15/09/2013 04:35 PM
How to update my server from 0.3e to 0.3x ardizz Scripting Help 3 05/05/2013 03:00 AM
how do I server update zimon_5 Server Support 3 09/01/2011 01:13 AM
Server update: 0.3a R8 Kalcor Server Support 384 31/10/2010 03:36 PM


All times are GMT. The time now is 07:39 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.