Client/Server update SA-MP 0.3d RC3- Some tweaks to the GTA:SA engine should result in increased FPS, smoother game-play, and less CPU usage for most players.
- Added final rotation parameters for MoveObject() (as default parameters).
- Added AttachObjectToObject() and object surfing on attached moving objects.
- Added example scripts: cargo ship, pirate ship, ferris wheel, for MoveObject rotation and AttachObjectToObject.
- Fixed buffer overflow in server config exec command described here:
http://www.exploit-db.com/exploits/17893As always, we recommend server owners never use config files or scripts from untrusted sources. Always edit your own config files and compile any pawn scripts your server uses from the .pwn file.
Important: The changes to MoveObject will not require you to change your script, however, all scripts that use MoveObject must be recompiled for SA-MP 0.3d.
__________________________________________________________________________________________________________________________
Client/Server update SA-MP 0.3d RC2
- Added OnPlayerTakeDamage script callback for tracking damage events on a player
- Fixed problems with tow trucks losing their tow around other players
- Added DIALOG_STYLE_PASSWORD for ShowPlayerDialog() which shows a masked input box
- The audio stream will stop playing once the player is disconnected from the server
- Fixed problems playing certain audio IDs above 2000 in PlayerPlaySound
- Added /audiomsg command to disable audio stream URL messages in the chat
- The 0.3d server lists are now live
cessil has been working on some new models for SA-MP 0.3d.
Included in SA-MP 0.3d RC2 are replacement jail cell doors, a replacement SFPD interior model with the cell doors removed, taxi signs which can be attached to any vehicle.
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
OnPlayerTakeDamage is called when a player takes damage and loses health.
playerid is the player who has taken damage. issuerid might be the player responsible for the damage. If the player has lost health as the result of a fall or collision, the issuerid will be INVALID_PLAYER_ID. The Float:amount contains the amount of health lost by the player from this damage event. weaponid contains the weapon type which might have caused the damage, similar to OnPlayerDeath.
Changes for SA-MP 0.3d:- Support for Shoutcast/Icecast internet radio
- All misson sounds (IDs greater than 2000) from GTA:SA single player can now be used with PlayerPlaySound
- RemoveBuildingForPlayer can be used to remove any building or object from the game
- Fixed issue with radar jumping up and down while passengering in a vehicle
- Fixed quite a few issues with the vehicle sync which might cause vehicles to warp or to appear to be moving sideways
- Fixed problems with the motorbike/pushbike sync
- Fixed surfing on train carriages
- MAX_OBJECTS has been increased to 1000
- MAX_PICKUPS has been increased to 4096
- The frame limiter will now default to 50 fps
- Fixed some small issues with the vehicle exiting animation
- Fixed game crashes related to escalators
- Server has a feature to monitor internal frame rate in the network stats string
- Fixed an issue where you might respawn on top of the last vehicle you were surfing
- Removed the PED FACTALK animation from showing up in GetPlayerAnimationIndex
- Fixed the collision on the elevator model which would allow you to jump out while it was moving down
native PlayAudioStreamForPlayer(playerid, url[], Float:posX = 0.0, Float:posY = 0.0, Float:posZ = 0.0, Float:distance = 50.0, usepos = 0);
native StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer is used so that the player can hear a shoutcast or icecast audio stream. Formats supported are ogg/vorbis streams and MP3 streams. The audio can either by played in the background like the normal San Andreas radio, or it can be played at a particular position, and heard over a certain distance, when 'usepos' is set to 1.
The volume of the audio stream playback is controlled by the player using their San Andreas radio volume. If their San Andreas radio volume is set to 0 they will not play any audio stream sent by the server.
Under most circumstances, audio streaming should just work. If the player requires a proxy to access the web, the SA-MP client will use the proxy they have set in their Windows internet settings. However, there is an option to override the proxy by adding audioproxyoff=1 to the sa-mp.cfg file.
native RemoveBuildingForPlayer(playerid, modelid, Float:fX, Float:fY, Float:fZ, Float:fRadius);
RemoveBuildingForPlayer can remove existing objects and buildings from San Andreas for a particular player. This function only needs to be called once and the model ID you specify will be removed for that player around the given point and radius. You can specify a large radius to remove all objects of particular model ID.
native PlayerPlaySound(playerid, soundid, Float:x, Float:y, Float:z);
This function can now play most sound IDs found in the \data\AudioEvents.txt file in your GTA San Andreas folder.
Notes: - The 0.3d server lists are not yet operational.
- This release is for scripting only.
- More features and models will be added throughout the RC phase.
0.3d filesLatest:SA-MP 0.3d RC3 Client:
http://team.sa-mp.com/RC/03d/sa-mp-0.3d-RC3-install.exeSA-MP 0.3d RC3 Windows Server (20 slot):
http://team.sa-mp.com/RC/03d/samp03dsvr_RC3_win32.zipSA-MP 0.3d RC3 Linux Server (20 slot):
http://team.sa-mp.com/RC/03d/samp03dsvr_RC3.tar.gz__________________________________________________________________________________________________________________________
0.3d old filesSA-MP 0.3d RC2 Client:
http://team.sa-mp.com/RC/03d/sa-mp-0.3d-RC2-install.exeSA-MP 0.3d RC2 Windows Server (20 slot):
http://team.sa-mp.com/RC/03d/samp03dsvr_RC2_win32.zipSA-MP 0.3d RC2 Linux Server (20 slot):
http://team.sa-mp.com/RC/03d/samp03dsvr_RC2.tar.gz0.3d old files
SA-MP 0.3d RC1 Client:
http://team.sa-mp.com/RC/03d/sa-mp-0.3d-RC1-install.exeSA-MP 0.3d RC1 Windows Server (20 slot):
http://team.sa-mp.com/RC/03d/samp03dsvr_RC1_win32.zipSA-MP 0.3d RC1 Linux Server (20 slot):
http://team.sa-mp.com/RC/03d/samp03dsvr_RC1.tar.gz[/QUOTE]