Skip to content

Commit ca0c9ee

Browse files
authored
Merge pull request #96 from NexiusTailer/develop
Fix deprecations, correct return values
2 parents 15f6cd2 + 29ed9f1 commit ca0c9ee

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1929
-2617
lines changed

README.md

-19
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ features:
6666
- [GetPlayerClothes](#GetPlayerClothes)
6767
- [RemovePlayerClothes](#RemovePlayerClothes)
6868
- [ShowPlayerMarker](#ShowPlayerMarker)
69-
- [GetVehicleVelocity](#GetVehicleVelocity)
70-
- [SetVehicleVelocity](#SetVehicleVelocity)
7169
- [SetVehicleModel](#SetVehicleModel)
7270

7371
- In addition to these new native functions, gamemodes run in *amx*
@@ -324,23 +322,6 @@ native ShowPlayerMarker ( playerid, show );
324322

325323
Shows or hides the blip of one specific player.
326324

327-
### GetVehicleVelocity
328-
329-
```pawn
330-
native GetVehicleVelocity ( vehicleid, &Float:vx, &Float:vy, &Float:vz );
331-
```
332-
333-
Returns the velocity of a vehicle along the x, y and z axes. No more
334-
manual speed calculation with timers.
335-
336-
### SetVehicleVelocity
337-
338-
```pawn
339-
native SetVehicleVelocity ( vehicleid, Float:vx, Float:vy, Float:vz );
340-
```
341-
342-
Sets the velocity of a vehicle. Make it jump or suddenly come to a halt.
343-
344325
### SetVehicleModel
345326

346327
```pawn

amx-deps/a_amx.inc

+1-8
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ forward OnBotConnect(botid, name[]);
2020
forward OnBotEnterVehicle(botid, vehicleid, seatid);
2121
forward OnBotExitVehicle(botid, vehicleid);
2222
forward OnBotDeath(botid, killerid, weaponid, bodypart);
23+
forward OnBotStateChange(botid, newstate, oldstate);
2324
forward OnVehicleDamage(vehicleid, Float:loss);
2425
forward OnPlayerShootingPlayer(playerid, attackerid, bodypart, Float:loss);
2526
forward OnPlayerWeaponSwitch(playerid, previousWeaponID, currentWeaponID);
@@ -90,8 +91,6 @@ native IsPlayerInWater(playerid);
9091
native IsPlayerOnFire(playerid);
9192
native IsPlayerDucked(playerid);
9293
native IsPlayerOnGround(playerid);
93-
native GetPlayerFightingStyle(playerid);
94-
native SetPlayerFightingStyle(playerid, styleid);
9594
native SetPlayerOnFire(playerid, fire);
9695
native GetPlayerStat(playerid, statid);
9796
native SetPlayerStat(playerid, statid, Float:value);
@@ -106,15 +105,10 @@ native SetPlayerBlurLevel(playerid, level);
106105
native GetPlayerAlpha(playerid);
107106
native SetPlayerAlpha(playerid, alpha);
108107
native FadePlayerCamera(playerid, fadeIn, Float:timeToFade = 1.0, red = 0, green = 0, blue = 0);
109-
native GetPlayerVehicleSeat(playerid);
110-
native GetPlayerVelocity(playerid, &Float:X, &Float:Y, &Float:Z);
111-
native SetPlayerVelocity(playerid, Float:X, Float:Y, Float:Z);
112108
native SetPlayerControlState(playerid, control[], stateid);
113109
114110
// Vehicles
115111
native GetVehicleMaxPassengers(vehicleid);
116-
native GetVehicleVelocity(vehicleid, &Float:vx, &Float:vy, &Float:vz);
117-
native SetVehicleVelocity(vehicleid, Float:vx, Float:vy, Float:vz);
118112
native SetVehicleModel(vehicleid, model);
119113
native GetVehicleEngineState(vehicleid);
120114
native SetVehicleEngineState(vehicleid, stateid);
@@ -131,7 +125,6 @@ native SetVehiclePanelState(vehicleid, panelid, stateid);
131125
native GetVehicleAlpha(vehicleid);
132126
native SetVehicleAlpha(vehicleid, alpha);
133127
native GetVehiclePaintjob(vehicleid);
134-
native GetVehicleComponentInSlot(vehicleid, slot);
135128
native GetVehicleSirensOn(vehicleid);
136129
native SetVehicleSirensOn(vehicleid, stateid);
137130
native IsTrainDerailable(vehicleid);

amx-deps/img/lua.png

-667 Bytes
Binary file not shown.

amx-deps/img/pawn.png

-393 Bytes
Binary file not shown.

amx-deps/img/screen.png

-47.8 KB
Binary file not shown.

amx-deps/img/style.css

-137
This file was deleted.

0 commit comments

Comments
 (0)