SA-MP Forums

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

Thread Tools Display Modes
Old 28/11/2010, 11:26 AM   #1
SA-MP Developer
Join Date: Apr 2005
Posts: 1,016
Reputation: 2802
Default SA-MP 0.3c RC client/server (Now released)

SA-MP 0.3c RC

Update: SA-MP 0.3c is now released. This is thread will be archived.

SA-MP 0.3c is mainly a feature update. Bugs will be fixed throughout the RC, so they can be reported. Higher priority will be given to bugs in any of the new features.


SA-MP 0.3c RC is now in feature lockdown. Only critical bugs will be fixed.

0.3c RC7 client/server update

- Fixed problems with "car parking" other players and also problems exiting a moving vehicle.
- The samp.img/.ide/custom.img files etc. have been moved from the \models folder in to the \SAMP folder. The old img files will be removed when you install RC7, or when you uninstall any previous RC.
- Some additional netcode security updates have been added.

0.3c RC6 client/server update

- Fixed a syncing problem when players were surfing moving 'player' objects.
- More improvements to the vehicle and object surfing.
- Fixed a rendering problem while inside the LS Office floors building.
- Some other minor crash fixes.

0.3c RC5 client/server update

- Improved player sync on moving objects (object surfing). This works only on global objects, not player objects.
- Added support for the "Test" button in Jernej's Map Editor.
- Includes many new objects including a virtual map of San Andreas and each city.
- A texture filtering problem on the samp.img models has been fixed.
- The LS office floors building fix (collision etc) is now applied to San Andreas by default - no need for the external object.

0.3c RC4-2-2 very minor client update

- This fixes some missing models in the samp.img like the '?' NoModelFile. The actual client is exactly the same as RC4-2.

0.3c RC4-2 optional client update

- You can now driveby as a passenger with any bullet-type weapon. This will only work for RC4-2 clients.
- SetPlayerArmedWeapon now works when the player is in a vehicle.

0.3c RC4 client/server update

- The server is now slot unlimited (500 players)
- RC4 includes the latest version of the samp.img models.
- Changes to ShowPlayerDialog: If button2 is a 0 length string, only 1 button will be displayed.

0.3c RC3-3 optional client update

- Fix for deleting MAPICON_LOCAL_CHECKPOINT map icons.
- Changed the colour of the default checkpoint marker back to red.
- Vehicle model loading changes have been reverted since it's causing some rendering problems.
- Attemping to fix colour embedding in unicode strings again.

0.3c RC3 client/server update

- The SA-MP weapon font is now loaded from the SA folder. This should fix the problem with missing death icons.
- Fixed a problem using menus in vehicles with the engine off.
- Fixed objects disappearing when underground.
- Some further tweaks to the vehicle model loading.

SetPlayerMapIcon now has a 'style' parameter:

pawn Code:
#define MAPICON_LOCAL             0 // displays in the player's local area
#define MAPICON_GLOBAL            1 // displays always
#define MAPICON_LOCAL_CHECKPOINT  2 // displays in the player's local area and has a checkpoint marker
#define MAPICON_GLOBAL_CHECKPOINT 3 // displays always and has a checkpoint marker

native SetPlayerMapIcon(playerid, iconid, Float:x, Float:y, Float:z, markertype, color, style = MAPICON_LOCAL);

The style allows you to set whether the radar icon is always shown, no matter where the player is on the map. You can also set the style to include a small checkpoint marker. This checkpoint marker is for display only and won't trigger OnPlayerEnterCheckpoint. If the markertype is 0 (normal square marker) the 'color' parameter can now be an RGBA colour.

0.3c RC2-2 optional client update

- Based on feedback, the vehicle engine control has been modified slightly. You can still steer the vehicle with the engine off. The tail lights won't come on when the engine is off.
- Increased the number of preloaded vehicle models which will improve the vehicle model loading lag for servers that use more than 100 vehicle models.
- Attempts to fix a startup crash right after the loading screen.

0.3c RC2 client/server update

- This release attempts to fix some of the issues with text colour embedding, like misaligned colours and interferring with character encoding. If there are still problems, please report them.
- The server is now 50 slot.
- The 0.3c RC server list is now online.
- We are monitoring client crash reports so please do report them in the crash window or paste the report in this forum section.

0.3c RC1-2 client update

- Fixes a crash with player attached objects if you are using the GTA SA EU version.

SA-MP 0.3c RC1 release information is below

Important changes needed to make 0.3b scripts work with 0.3c

The functions SetPlayerHoldingObject, IsPlayerHoldingObject and StopPlayerHoldingObject have been removed. These functions were limited in the fact that they could only attach 1 object to each player. New functions have been added which allow you to attach up to 5 objects to each player.

pawn Code:
#define MAX_PLAYER_ATTACHED_OBJECTS 5 // This is the number of attached indexes available ie 5 = 0-4

native SetPlayerAttachedObject(playerid, index, modelid, bone, Float:fOffsetX = 0.0, Float:fOffsetY = 0.0, Float:fOffsetZ = 0.0, Float:fRotX = 0.0, Float:fRotY = 0.0, Float:fRotZ = 0.0, Float:fScaleX = 1.0, Float:fScaleY = 1.0, Float:fScaleZ = 1.0);
native RemovePlayerAttachedObject(playerid, index);
native IsPlayerAttachedObjectSlotUsed(playerid, index);

If you have a lot of script bound to SetPlayerHoldingObject, these defines below might be useful. You can add them to the top of your pwn file after is included. These will use player attached object slot number 4.

pawn Code:
#define SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9) SetPlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1,%2,%3,%4,%5,%6,%7,%8,%9)
#define StopPlayerHoldingObject(%1) RemovePlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
#define IsPlayerHoldingObject(%1) IsPlayerAttachedObjectSlotUsed(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)

Colour embedding:

You can use {RRGGBB} (hex) strings embedded in text to change the text colour. This works in the chat window, in dialogs, in 3D text labels, and in numberplates. Colour codes are automatically filtered with () in player chat text. The only exception to the colour code filtering is input dialog response text.

The return of SetVehicleNumberplate()

While the function name is the same, it works differently. All cars now have a generic numberplate "XYZR 000". The numberplate will only change if SetVehicleNumberPlate() is used. The string limit for a numberplate is 32 characters, which gives you enough space for an 8 character numberplate plus some additional room for colour codes. Please use this function with care and don't go assigning custom numberplates to vehicles that don't have plates (like planes/boats etc), as this would result in unneeded processing time on the client.


New extended parameters for vehicles that allow you to change the state of the
vehicle engine, lights, alarm, doors locked, bonnet open/closed, boot open/closed, objective status.
These don't have to be set for each player anymore like SetVehicleParamsForPlayer(). They're
automatically replicated to all players.

pawn Code:

native SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
native GetVehicleParamsEx(vehicleid, &engine, &lights, &alarm, &doors, &bonnet, &boot, &objective);


pawn Code:
new engine,lights,alarm,doors,bonnet,boot,objective;

    if(strcmp(cmd, "/startengine",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
        if(vid != INVALID_VEHICLE_ID) {
        return 1;
    if(strcmp(cmd, "/stopengine",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
        if(vid != INVALID_VEHICLE_ID) {
        return 1;

You can also write wrapper functions around this function e.g.

pawn Code:
        new engine,lights,alarm,doors,bonnet,boot,objective;


ManualVehicleEngineAndLights() can be used in OnGameModeInit(), or somewhere before players connect. It will instruct all clients that the server controls both the vehicle engines and the lights. That means the engine will not automatically start when the player enters the vehicle and the lights will not automatically come on at night. This is useful for role playing servers where the player might manually have to start/stop the engine. The behaviour of SetVehicleParamEx with manual engine/lights control is different depending on whether manual (server) engine and lights control is enabled.


Hopefully this one is self-explanatory.

New objects, particle objects, samp.img, samp.ide

There are a lot of things that need to be documented regarding this. Some useful information should appear on the SA-MP wiki within the next few weeks. To give a brief overview, thanks to the SA-MP beta team, SA-MP now includes hundreds of new objects, including particle objects. These objects use model/object IDs that are not normally available in San Andreas. A full list of IDs can be found in your GTA SA folder under models\samp.ide after you install any version of SA-MP 0.3c.

0.3c files

SA-MP 0.3c is now released. Files are on the official download page.

Last edited by Kalcor; 29/12/2010 at 03:21 AM.
Kalcor is offline  
Old 28/11/2010, 11:44 AM   #2
WillyP's Avatar
Join Date: Jul 2010
Location: England
Posts: 2,027
Reputation: 63
Default Re: SA-MP 0.3c RC client/server (RC1)

once average now terrible
WillyP is offline  
Old 28/11/2010, 11:45 AM   #3
Hiddos's Avatar
Join Date: Sep 2008
Posts: 3,307
Reputation: 2184
Default Re: SA-MP 0.3c RC client/server (RC1)

Originally Posted by [FU]Victious View Post
That simply sums up what I was going to say.

Thanks, I'll really enjoy scripting.
Originally Posted by DeWolf View Post
For fuck's sake people, this whole thread is fucked up now.
Hiddos is offline  
Old 28/11/2010, 11:45 AM   #4
Beta Tester
JernejL's Avatar
Join Date: Jan 2006
Location: Slovenia
Posts: 583
Reputation: 418
Default Re: SA-MP 0.3c RC client/server (RC1)

Please, do no message me anymore, i'm no longer part of sa-mp scene.

I will not reply to private messages.
JernejL is offline  
Old 28/11/2010, 11:46 AM   #5
Join Date: Oct 2007
Location: Click To Show
Posts: 1,479
Reputation: 102
Default Re: SA-MP 0.3c RC client/server (RC1)

Nice! Testing the bugs on my topic.

EDIT: All the bugs are still there.

Last edited by Karlip; 28/11/2010 at 12:23 PM.
Karlip is offline  
Old 28/11/2010, 11:46 AM   #6
Huge Clucker
Join Date: Aug 2009
Location: Slovenia
Posts: 259
Reputation: 3
Default Re: SA-MP 0.3c RC client/server (RC1)

Nice! lol jernej xD
SloProKiller is offline  
Old 28/11/2010, 11:51 AM   #7
Huge Clucker
CrunkBankS's Avatar
Join Date: Feb 2009
Location: Novorossiysk
Posts: 471
Reputation: 9
Default Re: SA-MP 0.3c RC client/server (RC1)


Music Producer

CrunkBankS is offline  
Old 28/11/2010, 11:51 AM   #8
Join Date: Aug 2010
Posts: 543
Reputation: 88
Default Re: SA-MP 0.3c RC client/server (RC1)

EDIT: Nvm fixed,

iTorran is offline  
Old 28/11/2010, 11:52 AM   #9
Join Date: Jun 2007
Location: Western Germany
Posts: 4,899
Reputation: 1597
Default Re: SA-MP 0.3c RC client/server (RC1)

This made my day/week/month/year
Mauzen is offline  
Old 28/11/2010, 11:52 AM   #10
Little Clucker
Join Date: Jun 2010
Posts: 5
Reputation: 0
Default Re: SA-MP 0.3c RC client/server (RC1)

It's cool
Game94 is offline  

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
Client: Server not supported Shadow_Gengar Server Support 0 08/06/2010 07:12 PM
Can't even install client server! carcio Client Support 3 01/11/2009 08:21 PM
Client crashes often.. Does my server causes that? SiJ Client Support 8 20/07/2009 12:43 PM
Difference b/w Client and Server ? xmen General 7 12/11/2008 04:36 PM

All times are GMT. The time now is 03:25 AM.

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