02.09.2009, 10:55
The following is a quick list of what you will likely need to do to get your script to work with 0.3 fully.
SetDisabledWeapons - REMOVED. This function no longer exists, so don't use it - Use OnPlayerUpdate to check for weapon
EnableTirePopping - REMOVED. This function no longer exists. It is now ON at all times.
OnPlayerPrivmsg - REMOVED. This function no longer exists, as well as it's team variant (See below)
The following default commands are removed; /tpm /pm. Check the base.pwn in /filterscripts/ for a replacement /pm command.
If you lock vehicles;
You will need to re-apply locks at OnVehicleStreamIn, for example, see: http://pastebin.com/f54879d35
Full locking script by kc here: http://pastie.org/602932 (It's also on reply #6 of this thread)
If you attach objects to players;
You will need to re-apply the attachment at OnPlayerStreamIn. Example: http://pawn.pastebin.com/f71c9c389 (untested, by lavamike, may work)
If you wish to enable a shop, even when enter/exits are disabled, then you can use SetPlayerShopName(playerid,shop); to load the details for that area. This does NOT work for casinos. See: https://sampwiki.blast.hk/wiki/SetPlayerShopName
The Area 51 block objects are removed (the jet pack roof vent, and the little vent to the side of the entrance), to replace them as they where before, use;
If you use G-sTyLeZzZ MySQL plugin, it doesn't work on 0.3, however the fixed version is available here;
http://forum.sa-mp.com/index.php?topic=79352.0
AllowPlayerTeleport only works if AllowAdminTeleport is also enabled.
To fully repair a vehicle, use RepairVehicle(); - This also repairs any damage, as well as fixes smoke.
Callbacks for NPCs have NPC variants of callbacks, such as OnNPCExitVehicle, or OnNPCConnect.
Full info on 0.3s limits are here: https://sampwiki.blast.hk/wiki/Limits
For NPC info, and how to create them properly, see this thread by kc: http://forum.sa-mp.com/index.php?topic=119947.0
Traffic lights ARE synced, but currently over time they form a slightly lag and de-sync in time. Kye has stated this will be fixed in future versions.
Remember to replace the new includes with the old SA:MP ones. (Backup the old ones, unless you're not going to update your old script for 0.2 anymore)
When using trains, CreateVehicle may not work, use AddStaticVehicle(Ex)
This scripting release has a max players of 16. The full has 500.
If you wish to edit the rate of which objects and vehicles are streamed, see server.cfg. The max is 500. (default is 400)
The below is a list of releases on this forum which apparantly cause issues on the current scripting release;
Seif Vehicles (seif_vehicles.inc) (See: http://forum.sa-mp.com/index.php?topic=119949.0) - Fixed
SetDisabledWeapons - REMOVED. This function no longer exists, so don't use it - Use OnPlayerUpdate to check for weapon
EnableTirePopping - REMOVED. This function no longer exists. It is now ON at all times.
OnPlayerPrivmsg - REMOVED. This function no longer exists, as well as it's team variant (See below)
The following default commands are removed; /tpm /pm. Check the base.pwn in /filterscripts/ for a replacement /pm command.
If you lock vehicles;
You will need to re-apply locks at OnVehicleStreamIn, for example, see: http://pastebin.com/f54879d35
Full locking script by kc here: http://pastie.org/602932 (It's also on reply #6 of this thread)
If you attach objects to players;
You will need to re-apply the attachment at OnPlayerStreamIn. Example: http://pawn.pastebin.com/f71c9c389 (untested, by lavamike, may work)
If you wish to enable a shop, even when enter/exits are disabled, then you can use SetPlayerShopName(playerid,shop); to load the details for that area. This does NOT work for casinos. See: https://sampwiki.blast.hk/wiki/SetPlayerShopName
The Area 51 block objects are removed (the jet pack roof vent, and the little vent to the side of the entrance), to replace them as they where before, use;
Код:
CreateObject(3095,268.94,1884.14,16.06,0.00,0.00,0.00); // JetPack room block CreateObject(3117,245.952,1862.810,19.49,0.0,0.0,-140.998); // Vent Block
http://forum.sa-mp.com/index.php?topic=79352.0
AllowPlayerTeleport only works if AllowAdminTeleport is also enabled.
To fully repair a vehicle, use RepairVehicle(); - This also repairs any damage, as well as fixes smoke.
Callbacks for NPCs have NPC variants of callbacks, such as OnNPCExitVehicle, or OnNPCConnect.
Full info on 0.3s limits are here: https://sampwiki.blast.hk/wiki/Limits
For NPC info, and how to create them properly, see this thread by kc: http://forum.sa-mp.com/index.php?topic=119947.0
Traffic lights ARE synced, but currently over time they form a slightly lag and de-sync in time. Kye has stated this will be fixed in future versions.
Remember to replace the new includes with the old SA:MP ones. (Backup the old ones, unless you're not going to update your old script for 0.2 anymore)
When using trains, CreateVehicle may not work, use AddStaticVehicle(Ex)
This scripting release has a max players of 16. The full has 500.
If you wish to edit the rate of which objects and vehicles are streamed, see server.cfg. The max is 500. (default is 400)
The below is a list of releases on this forum which apparantly cause issues on the current scripting release;
Seif Vehicles (seif_vehicles.inc) (See: http://forum.sa-mp.com/index.php?topic=119949.0) - Fixed