SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 25/07/2011, 05:09 AM   #1
Kalcor
SA-MP Developer
 
Join Date: Apr 2005
Posts: 893
Reputation: 2674
Exclamation SA-MP 0.3c R3/R4/R5 server update

This update is for SA-MP server owners only

We are issuing a server update for SA-MP 0.3c to address some security concerns.

If updating from an existing 0.3c R1/R2 server: you can update simply by replacing the 'samp03svr' file on linux or 'samp-server.exe' file on Windows found in the 0.3c R5 server download package.

SA-MP 0.3c R5 server

- The server crash vulnerabilities, described as resolved in the 0.3c R3/R4 server, were not completely fixed. We are making the 0.3c R5 server available. These server crash vulnerabilities only effect the Linux version of the SA-MP 0.3c server. Both Windows and Linux versions of the SA-MP server are being updated to 0.3c R5 for server version consistency.

SA-MP 0.3c R4 server

- Another denial of service vulnerability was discovered after the 0.3c R3 server release and has been fixed in the 0.3c R4 server.
- Fixes an issue with GetPlayerSurfingObjectID() returning the wrong object ID.
- Fixes a few minor problems with the format() function in pawn.

New pawn natives:
pawn Code:
native GetPlayerNetworkStats(playerid, retstr[], size);
native GetNetworkStats(retstr[], size);

The above functions return a string similar to the information seen in the player's F5 stats. It is the server's version of the network statistics which includes a list of things like network Packetloss, Upload/Download rates etc. This information might be useful in determining network problems for specific players, or for the entire server. If you are interested in these functions please see the netstats.pwn filterscript included with the Windows server package.

SA-MP 0.3c R3 server

- Fixes a denial of service vulnerability on SA-MP linux servers where a remote attacker could send a specially crafted packet which would trigger a debug assertion in SA-MP's networking layer; causing the server to shut down.

New pawn natives:
pawn Code:
native GetPlayerCameraMode(playerid);
Returns the current GTA camera mode for the requested player. The camera modes are useful in determining whether a player is aiming, doing a passenger driveby etc.

pawn Code:
native Float:GetPlayerDistanceFromPoint(playerid, Float:X, Float:Y, Float:Z);
native Float:GetVehicleDistanceFromPoint(vehicleid, Float:X, Float:Y, Float:Z);
The above functions can be used as fast alternatives to calculating distances in pawn. It is still preferable to use IsPlayerInRangeOfPoint() if you don't require the exact distance.

pawn Code:
native GetPlayerSurfingObjectID(playerid);
GetPlayerSurfingObjectID is similar to GetPlayerSurfingVehicleID. If the player is standing on a global moving object, the ID of the object will be returned. If the player is not surfing a moving object, it will return INVALID_OBJECT_ID.

New callback:
pawn Code:
forward OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat);
This callback is called when a player updates the position of a vehicle they're not driving. This can happen outside of the vehicle or when the player is a passenger of a vehicle that has no driver.

Downloads:

SA-MP 0.3c R5 Linux Server: http://files.sa-mp.com/samp03csvr_R5.tar.gz
SA-MP 0.3c R5 Windows Server: http://files.sa-mp.com/samp03csvr_R5_win32.zip

Update 25/07/2011 There was a small issue regarding space padding in the format() function in the original 0.3c R3 release. If you happened to download this version, please download the above 0.3c R3-1 server.
Update 27/07/2011 0.3c R3 server was updated to SA-MP 0.3c R4.
Update 28/07/2011 0.3c R4 server was updated to SA-MP 0.3c R5.

Last edited by Kalcor; 28/07/2011 at 04:49 PM.
Kalcor is offline   Reply With Quote
Old 25/07/2011, 05:26 AM   #2
Retardedwolf
High-roller
 
Retardedwolf's Avatar
 
Join Date: Jun 2009
Posts: 1,558
Reputation: 60
Default Re: SA-MP 0.3c R3 server update

Seems like OnUnoccupiedVehicleUpdate could help some Roleplay servers, thanks for the update Kalcor.
Retardedwolf is offline   Reply With Quote
Old 25/07/2011, 05:28 AM   #3
[HiC]TheKiller
High-roller
 
Join Date: Mar 2008
Location: New Zealand
Posts: 3,016
Reputation: 409
Default Re: SA-MP 0.3c R3 server update

Thanks for the release Kalcor, great as always . The GetPlayerSurfingObjectID will become quite useful.
__________________
[HiC]TheKiller is offline   Reply With Quote
Old 25/07/2011, 05:49 AM   #4
willsuckformoney
High-roller
 
willsuckformoney's Avatar
 
Join Date: Dec 2009
Posts: 1,502
Reputation: 65
Default Re: SA-MP 0.3c R3 server update

Jizzed my pants. Good job
__________________
Fuck the system.
willsuckformoney is offline   Reply With Quote
Old 25/07/2011, 06:15 AM   #5
Toni
High-roller
 
Toni's Avatar
 
Join Date: Aug 2009
Location: United States
Posts: 1,493
Reputation: 156
Default Re: SA-MP 0.3c R3 server update

Great update. I'm looking to more camera functions in the future hopefully those are nice, but maybe some that can be used to create easy made moving cameras? Built-in functions would be much better than those scripts with math equations and server lag timers.
__________________
Toni is offline   Reply With Quote
Old 25/07/2011, 07:33 AM   #6
Paul.eboy
Big Clucker
 
Join Date: Apr 2011
Location: Bacau/Roumanie
Posts: 151
Reputation: 1
Default Re: SA-MP 0.3c R3 server update

truly awesome.
we'll finally get rid of the god damn server attackers
__________________
www.uifserver.net
Paul.eboy is offline   Reply With Quote
Old 25/07/2011, 08:28 AM   #7
Calgon
Godfather
 
Calgon's Avatar
 
Join Date: Jan 2009
Posts: 6,467
Reputation: 1126
Default Re: SA-MP 0.3c R3 server update

Added most of the new functions to the wiki (http://wiki.sa-mp.com/wiki/Special:Recentchanges), with the exception of GetPlayerCameraMode because I can't find any defines (like CAMERA_MODE_AIMING) in a_players.inc.
Calgon is offline   Reply With Quote
Old 25/07/2011, 08:32 AM   #8
Whitetiger
Huge Clucker
 
Whitetiger's Avatar
 
Join Date: Nov 2007
Location: Greenville, NC, USA
Posts: 472
Reputation: 156
Default Re: SA-MP 0.3c R3 server update

I put GetPlayerCameraMode (in a SendClientMessage) in OnPlayerUpdate with the default LVDM.amx on my server, The server crashes within a minute, and doesn't crash when I unload this test FS.

pawn Code:
#include <a_samp>

public OnPlayerUpdate(playerid)
{
    new string[128];
    format(string, sizeof(string), "%d", GetPlayerCameraMode(playerid));
    SendClientMessage(playerid, 0x0FFFFFFFA, string);
    return 1;
}
__________________
GitHub

Author of SA-MP AC

Whitetiger is offline   Reply With Quote
Old 25/07/2011, 09:19 AM   #9
Kalcor
SA-MP Developer
 
Join Date: Apr 2005
Posts: 893
Reputation: 2674
Default Re: SA-MP 0.3c R3 server update

Quote:
Originally Posted by whitetigerswt View Post
I put GetPlayerCameraMode (in a SendClientMessage) in OnPlayerUpdate with the default LVDM.amx on my server, The server crashes within a minute, and doesn't crash when I unload this test FS.

pawn Code:
#include <a_samp>

public OnPlayerUpdate(playerid)
{
    new string[128];
    format(string, sizeof(string), "%d", GetPlayerCameraMode(playerid));
    SendClientMessage(playerid, 0x0FFFFFFFA, string);
    return 1;
}
I'm attempting to confirm this problem. Can you give more info? Are you running this on Windows or Linux? Can you provide the crashinfo.txt file or a gdb backtrace from linux?

Edit:

Unable to confirm problem. I have tested the conditions described on both Windows and Linux servers.
Kalcor is offline   Reply With Quote
Old 25/07/2011, 08:47 AM   #10
Burridge
High-roller
 
Burridge's Avatar
 
Join Date: Nov 2008
Location: England
Posts: 1,874
Reputation: 42
Default Re: SA-MP 0.3c R3 server update

Thanks for the update. What does GetPlayerCameraMode actually return? A string, float, or integer?
Burridge is offline   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
update in server!! marik1599 Help Archive 2 23/07/2011 08:02 PM
how do I server update zimon_5 Server Support 3 09/01/2011 02:13 AM
[Help] How can i update my server to 0.3c? karloz Server Support 4 01/01/2011 10:12 PM
Server update: 0.3a R8 Kalcor Server Support 384 31/10/2010 04:36 PM


All times are GMT. The time now is 10:42 AM.


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