SA-MP 0.3e client/server (now released)
#1

SA-MP 0.3e RC

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

SA-MP 0.3e is mainly a security update. Some new features and models are planned. More will be added during the RC period.

- There are some minor security problems in the previous version which is resulting in servers being attacked with specially made tools. Resolving this issue requires both a client and server update.

Client/server update SA-MP 0.3e RC8

- Fixes TextDraw clicking in windowed mode. Similar issues existed for attachment editing in windowed mode.
- More information added to the crash handler in the Windows server.
- The player's controllable state is reset on the server after respawn.

Optional client update SA-MP 0.3e RC7-3

- Fixes problem with text-based materials not displaying text on certain background colours.

Optional client update SA-MP 0.3e RC7-2

- There were some issues with object material changing (including text materials) where the material changes might effect all objects using the same model ID.

Client/server update SA-MP 0.3e RC7

- Adds SetObjectMaterialText/SetPlayerObjectMaterialText for replacing an object's texture with text.
- Fixes problem with players being randomly cuffed if they spawned for you while alt-tabbed.
- Vehicle seat ID checks are less strict for planes and boats.
- SetPlayerAttachedObject now has 2 additional default parameters for material colour. This will require you to recompile your scripts for 0.3e.
- Material colours are now in ARGB format.
- New models from cessil: Blank squares for creating signs, some replacement buildings and houses.


Client/server update SA-MP 0.3e RC6

- Fixes game crash if your vehicle is deleted while you're using the look behind camera.
- Removes Pay'n'Spray map icons.
- Adds GetVehicleModelInfo() pawn native for getting various information about vehicle models such as size etc.
- Local head movements are automatically disabled when using the attached object editor tool.
- Adds SetObjectMaterial() and SetPlayerObjectMaterial() so you can replace the texture on an object with a texture from another model in the game.
- New objects from cessil: for sale sign, gasmask, grass, poker table.
- Fixes a bug where an uncontrollable player might still appear to have animations (like jumping etc) to other players.

Client/server update SA-MP 0.3e RC5

- There was a new bug introduced in 0.3e RC4 where sunk vehicles might get deleted by the client.
- Fixed: TextDraw still using hover colour after selection was disabled.
- Extra security is added to script callbacks including OnDialogResponse.
- Fixed: Two-sided texture problem with the bucket model.
- Adds per-player TextDraw system with up to 256 TextDraws per player. There are now global-scope TextDraws and player-scope. All TextDraw functions have player variants:

pawn Code:
native PlayerText:CreatePlayerTextDraw(playerid, Float:x, Float:y, text[]);
native PlayerTextDrawShow(playerid, PlayerText:text);
native PlayerTextDrawHide(playerid, PlayerText:text);
native PlayerTextDrawSetString(playerid, PlayerText:text, string[]);
// ..[] etc
Client/server update SA-MP 0.3e RC4

- Should fix vehicle ID messup if a dead vehicle was deleted by the game.
- Player slots for the RC are now uncapped (up to 500 players).
- Fixed texture filtering issue on the new models.
- Added noclip flymode camera example filterscript.
- New models from cessil: 40 more walls, vehicle barrier, bucket, scarf.
- The server can now enable the player's mouse cursor to click on a TextDraw:

pawn Code:
native TextDrawSetSelectable(Text:text, set); // the default is 0 (non-selectable)
native SelectTextDraw(playerid, hovercolor); // enables the mouse so the player can select a textdraw
native CancelSelectTextDraw(playerid)// cancel textdraw selection with the mouse
forward OnPlayerClickTextDraw(playerid, Text:clickedid);
Notes on SelectTextDraw():
- All clickable TextDraws must use TextDrawTextSize to define the clickable area. It is possible to create TextDraws without using this function.
- You should enable the TextDraw box when doing the layout so you can see the region which is clickable. You can disable the box after.

Client/server update SA-MP 0.3e RC3

- Fixed problem where player attached objects might appear floating, not attached to the player - if the game decided to stream the player out.
- Attached objects will be removed when the player respawns or enters class selection, not when the player dies (during the death animation).
- Added new objects from cessil: ~40 new walls including doorways and windows, handcuffs, police lights, speed bump, different coloured headphones.

Screenshots of new handcuffs object:



Client/server update SA-MP 0.3e RC2

- Fixed bug where the player might get teleported to 0,0,0 if they're surfing a vehicle that gets respawned/deleted.
- New pawns:
pawn Code:
native AttachPlayerObjectToVehicle(playerid, objectid, vehicleid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:RotZ);
native InterpolateCameraPos(playerid, Float:FromX, Float:FromY, Float:FromZ, Float:ToX, Float:ToY, Float:ToZ, time, cut = CAMERA_CUT);
native InterpolateCameraLookAt(playerid, Float:FromX, Float:FromY, Float:FromZ, Float:ToX, Float:ToY, Float:ToZ, time, cut = CAMERA_CUT);
native AttachCameraToObject(playerid, objectid);
native AttachCameraToPlayerObject(playerid, playerobjectid);

Client/server update SA-MP 0.3e RC1

- Fixed a bug introduced in 0.3d where a player might be able to avoid death if they have a custom animation applied.
- An issue setting the player colour of player IDs greater than 500 has been resolved.
- An issue where a player might get kicked if the server used SpawnPlayer() has been fixed.
- Fixed an issue with the server browser where it might crash if invalid data was returned by the server.

Although SA-MP 0.3e is mainly a security update, there are a few new features:

- Added some new models models made by cessil including tophat, cane, several different wall sections.
- Scripted dialogs now have a caption bar.

- The server can get the exact revision of the client using GetPlayerVersion().
pawn Code:
native GetPlayerVersion(playerid, const version[], len); // Returns the SA-MP client revision as reported by the player
- A parameter has been added to SetPlayerCameraLookAt() so that the camera will move to the new position, rather than teleport.
pawn Code:
#define CAMERA_CUT  2
#define CAMERA_MOVE 1
native SetPlayerCameraLookAt(playerid, Float:x, Float:y, Float:z, cut = CAMERA_CUT);
- A new tool has been added to make it easier to find positions for player attached objects. This new tool can also be used on ordinary objects.
Reply
#2

Wow 0.3e already
Reply
#3

wow, thanks
Reply
#4

wow samp is getting even better. keep it up!
Reply
#5

good news
Reply
#6

Nice work!
Reply
#7

Explended.Waiting
Reply
#8

Yes 0.3e)
Reply
#9

Yeppie!
Reply
#10

Great to see another version being released.
Reply
#11

Woooooow: CAMERA_MOVE.

Is that what I think? Move the camera from one position to another (Like MoveObject)?

Will update once the Linux server is available.
Reply
#12

Wauw, what a surprise!
Reply
#13

There's something that AMAZES me: absolutely NO ONE wondered what these security issues were.
For my part, I think that this version is motivated by the MULTIPLICATION of fake players attacks on servers. These fake players do use slots on the servers, and having a ton of fake players eats the bandwidth. And since 2-3 months, there are like 10 times more fake players attacks on the servers than what we used to have.

It's NEEDED to fight against these attacks, and against the servers who use fake players to boost their player count and be higher in the server list (ordered by players).

Am I right about the main reason of this update?
Reply
#14

Quote:
Originally Posted by thebwgg
View Post
Nice news, but this version is appeared too fast
Are you bloody kidding me? People are moaning that SA:MP is developed too slow, and since one guy I know was so kind to send a bug report instead of spreading the exploit all over net and Kye has fixed it now - how the hell are you saying it's too fast?

Quote:
Originally Posted by decondelite
View Post
Am I right about the main reason of this update?
No, it was a REALLY serious security threat involving exploit in master list and client, can't give more info about it, all i can say is that that Kye got the report and reacted accoordingly to it
Reply
#15

Using the holding object tool on created objects:

[ame]http://www.youtube.com/watch?v=0Kvev_MX_AQ[/ame]

http://de.xfire.com/video/551c8c/
Reply
#16

Quote:
Originally Posted by Drebin
View Post
Using the holding object tool on created objects:

http://www.youtube.com/watch?v=0Kvev_MX_AQ

http://de.xfire.com/video/551c8c/
Can you share this a script?
Reply
#17

Amazing! Edit Object Tool really comes in handy!
And also liked so much the new param of SetPlayerCameraLookAt.
Reply
#18

Cool ^^

But i hope in this Version Kalcor releasing...
pawn Code:
SetPlayerAir(playerid, Float:air); // set air under water
pawn Code:
Float:GetPlayerAir(playerid); // get air under water
pawn Code:
IsPlayerInWater(playerid); // is Player under Water?
pawn Code:
IsPlayerOnWater(playerid); // is player in water? example for cars in water...
And the best...
pawn Code:
GetPlayerCursor(playerid, &Float:x, &Float:y); // Where is the player Cursor?

Then i think everyone can made really good Gamemodes
Reply
#19

Jizzed my pants after seeing EditObject, scripting of map editor seems like matter of skill now...
Also how bloody easy will it be to edit offsets of vehicle objects
Reply
#20

Cool, so now lacks CreatImage and Ban by Serial
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)