SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Closed Thread
 
Thread Tools Display Modes
Old 16/01/2014, 12:01 PM   #1
Kalcor
SA-MP Developer
 
Join Date: Apr 2005
Posts: 619
Reputation: 1894
Flowers SA-MP 0.3z RC5


SA-MP 0.3z RC

Note: SA-MP 0.3z is now released. This thread will be archived.

SA-MP 0.3z is mainly a security update that we hope to push to release quickly. There are a few new features and there should be time to address some existing 0.3 bugs during the RC.

Updated shooting sync for bullet weapons

Shots fired by players are now lag compensated, meaning you can aim at the skin instead of lead aiming.

The server can now get access to the full bullet information to tell if it hit a player, vehicle or object.

pawn Code:
#define BULLET_HIT_TYPE_NONE            0
#define BULLET_HIT_TYPE_PLAYER          1
#define BULLET_HIT_TYPE_VEHICLE         2
#define BULLET_HIT_TYPE_OBJECT          3
#define BULLET_HIT_TYPE_PLAYER_OBJECT   4

forward OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ);

The give/take damage callbacks now contain the body part hit ID. If your script uses these callbacks, you will need to update the definition in your script.

pawn Code:
forward OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart);
forward OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart);

Other stuff

- A network level setting for server.cfg 'messageholelimit' has been added to deal with DoS attacks.
- The Rivershell gamemode has been updated to version 2.

Updates:

SA-MP 0.3z RC5-2 Client update

- Fixed: Player with the highest player ID was not sending any unoccupied vehicle updates.

SA-MP 0.3z RC5 Client/Server update

- Fixed range check error in the server browser if you added an erroneous port (like 77777).
- Some internal optimisation in the client should improve performance.
- Fixed problem where PVars were not accessible in OnPlayerDisconnect during a gamemode restart.
- Added pawn native GetServerTickRate() to return the current tickrate (like FPS) of the server.
- Fixed problem with 3DText/NameTag LoS tests on server objects.

- Changes to the behaviour and parameters of OnUnoccupiedVehicleUpdate.

In previous server versions, clients could send updates about vehicles that aren't being controlled/driven by other players,
although the server had no ability to cancel these updates. The script will now be notified about such updates before the
vehicle is updated internally. GetVehiclePos would return the existing position, not the updated position. Newly added parameters
describe the player's requested update position. The script can now return 0 to cancel the update or return 1 to allow the update through.

All scripts using OnUnoccupiedVehicleUpdate will need to be updated and recompiled for 0.3z.

pawn Code:
forward OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z);

- server.cfg option 'lagcompmode'
The server.cfg option 'shotcompmode' was replaced with 'lagcompmode' as it will be used for other lag compensation settings in future SA-MP versions.
Quote:
lagcompmode 0 ; lag compensation is disabled
lagcompmode 1 ; (default) lag compensation is enabled
lagcompmode 2 ; lag compensation enabled, position only.
- The server browser will now show a 'lagcomp' setting in the rules window.
- When lag compensation is disabled, legacy shot mode will now function exactly as it did in previous SA-MP versions (no calls to OnPlayerWeaponShot etc).

SA-MP 0.3z RC4 Client/Server update

- Fixed problem where long distance shots might go missing
- Nametag LoS tests will also apply to server objects
- OnPlayerGiveDamage is now called for NPCs
- Added GetPlayerLastShotVectors for extended information on bullet shots
- Added legacy mode for shot firing (shotcompmode 2 server.cfg setting) which uses only the camera for aiming and allows joypad auto-aiming
- Fixed: players could not be shot while surfing a vehicle
- Added some extended player camera information like aspect ratio and zoom level (for sniper)
- Extended 'netstats' functions so the script can get lower level network information without having to parse the stats string

pawn Code:
native GetPlayerLastShotVectors(playerid, &Float:fOriginX, &Float:fOriginY, &Float:fOriginZ, &Float:fHitPosX, &Float:fHitPosY, &Float:fHitPosZ);

native Float:GetPlayerCameraAspectRatio(playerid);
native Float:GetPlayerCameraZoom(playerid);

// Extended admin network stats
native NetStats_GetConnectedTime(playerid);
native NetStats_MessagesReceived(playerid);
native NetStats_BytesReceived(playerid);
native NetStats_MessagesSent(playerid);
native NetStats_BytesSent(playerid);
native NetStats_MessagesRecvPerSecond(playerid);
native Float:NetStats_PacketLossPercent(playerid);
native NetStats_ConnectionStatus(playerid);
native NetStats_GetIpPort(playerid, ip_port[], ip_port_len);

SA-MP 0.3z RC3 Client/Server update

- Fixed: Joypad target switching still enabled autoaiming.
- Fixed: Sniper bullets were not working when vectored outside the SA land area.
- Extra server data for investigating any player shot data corruption.
- Added VectorSize pawn function.

SA-MP 0.3z RC2 Client/Server update

- Removes autoaim ability from the joypad controls
- Adds BULLET_HIT_TYPE_PLAYER_OBJECT 4
- Fixes gunshell/smoke particle offset problem

Downloads:

0.3z RC5-2 Client
SA-MP 0.3z RC5 Client Installer

0.3z RC5 Server
SA-MP 0.3z RC5 Windows Server
SA-MP 0.3z RC5 Linux Server

0.3z RC4 Client
SA-MP 0.3z RC4 Client Installer

0.3z RC4 Server
SA-MP 0.3z RC4 Windows Server
SA-MP 0.3z RC4 Linux Server

0.3z RC3 Client
SA-MP 0.3z RC3 Client Installer

0.3z RC3 Server
SA-MP 0.3z RC3 Windows Server
SA-MP 0.3z RC3 Linux Server

0.3z RC2 Client
SA-MP 0.3z RC2 Client Installer

0.3z RC2 Server
SA-MP 0.3z RC2 Windows Server
SA-MP 0.3z RC2 Linux Server

0.3z RC1 Client
SA-MP 0.3z RC1 Client Installer

0.3z RC1 Server
SA-MP 0.3z RC1 Windows Server
SA-MP 0.3z RC1 Linux Server

Last edited by Kalcor; 13/02/2014 at 10:34 AM.
Kalcor is offline  
Old 16/01/2014, 12:41 PM   #2
iBeast
Big Clucker
 
Join Date: Aug 2013
Posts: 107
Reputation: 22
Default Re: SA-MP 0.3z RC1

This is some really cool shit!
__________________
PAWN || HTML || CSS || PHP
Currently developing a TDM.
CODING THE FUTURE
iBeast is offline  
Old 16/01/2014, 12:42 PM   #3
Kindred
Banned
 
Join Date: Aug 2011
Location: The Netherlands
Posts: 1,383
Reputation: 261
Default Re: SA-MP 0.3z RC1

Good boy Kalcor. Good buy dugi. :3
Kindred is offline  
Old 16/01/2014, 12:42 PM   #4
iZN
High-roller
 
iZN's Avatar
 
Join Date: Jun 2010
Posts: 2,143
Reputation: 365
Default Re: SA-MP 0.3z RC1

Amazing!
__________________
(I no longer help anyone with any scripting issues - so all the PMs or Skype messages will be ignored by now)

Fractal-Hub (Support Staff) | iVPS (Support Staff) | Real Stunt World (Server Admin) | Movie Server Reloaded

iZN is offline  
Old 16/01/2014, 12:42 PM   #5
AIped
Huge Clucker
 
AIped's Avatar
 
Join Date: Feb 2011
Location: Netherlands
Posts: 452
Reputation: 20
Default Re: SA-MP 0.3z RC1

yes! thanks for this
AIped is offline  
Old 16/01/2014, 12:43 PM   #6
Kirollos
Gangsta
 
Kirollos's Avatar
 
Join Date: Jun 2010
Location: Cairo, Egypt
Posts: 588
Reputation: 79
Default Re: SA-MP 0.3z RC1

Awesome! i will surely test it!
__________________

My Work:
Language
Project
Additional hyperlink
PHP
it is nice to be important but it is more important to be nice!
Kirollos is offline  
Old 16/01/2014, 12:44 PM   #7
[WA]iRonan
Gangsta
 
Join Date: May 2012
Location: A box in the sea
Posts: 614
Reputation: 101
Default Re: SA-MP 0.3z RC1

Awesome, Love it already!
__________________



Save Our Souls - A SAMP Survival Server - 151.236.29.108:7960
[WA]iRonan is offline  
Old 16/01/2014, 12:44 PM   #8
Walkie
Big Clucker
 
Join Date: Dec 2013
Posts: 50
Reputation: 0
Default Re: SA-MP 0.3z RC1

it's the full update of 0.3z version ?
Walkie is offline  
Old 16/01/2014, 12:44 PM   #9
IstuntmanI
High-roller
 
IstuntmanI's Avatar
 
Join Date: Mar 2009
Posts: 1,641
Reputation: 220
Default Re: SA-MP 0.3z RC1

Holy sh*t !!! Awesome ! <3
__________________


IstuntmanI is offline  
Old 16/01/2014, 12:44 PM   #10
Blunt
Huge Clucker
 
Blunt's Avatar
 
Join Date: Sep 2011
Posts: 295
Reputation: 51
Default Re: SA-MP 0.3z RC1

Nice
Blunt is offline  
Closed Thread

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



All times are GMT. The time now is 06:48 AM.


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