Skip to content

Fix deprecations, correct return values #96

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Apr 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ features:
- [GetPlayerClothes](#GetPlayerClothes)
- [RemovePlayerClothes](#RemovePlayerClothes)
- [ShowPlayerMarker](#ShowPlayerMarker)
- [GetVehicleVelocity](#GetVehicleVelocity)
- [SetVehicleVelocity](#SetVehicleVelocity)
- [SetVehicleModel](#SetVehicleModel)

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

Shows or hides the blip of one specific player.

### GetVehicleVelocity

```pawn
native GetVehicleVelocity ( vehicleid, &Float:vx, &Float:vy, &Float:vz );
```

Returns the velocity of a vehicle along the x, y and z axes. No more
manual speed calculation with timers.

### SetVehicleVelocity

```pawn
native SetVehicleVelocity ( vehicleid, Float:vx, Float:vy, Float:vz );
```

Sets the velocity of a vehicle. Make it jump or suddenly come to a halt.

### SetVehicleModel

```pawn
Expand Down
9 changes: 1 addition & 8 deletions amx-deps/a_amx.inc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ forward OnBotConnect(botid, name[]);
forward OnBotEnterVehicle(botid, vehicleid, seatid);
forward OnBotExitVehicle(botid, vehicleid);
forward OnBotDeath(botid, killerid, weaponid, bodypart);
forward OnBotStateChange(botid, newstate, oldstate);
forward OnVehicleDamage(vehicleid, Float:loss);
forward OnPlayerShootingPlayer(playerid, attackerid, bodypart, Float:loss);
forward OnPlayerWeaponSwitch(playerid, previousWeaponID, currentWeaponID);
Expand Down Expand Up @@ -90,8 +91,6 @@ native IsPlayerInWater(playerid);
native IsPlayerOnFire(playerid);
native IsPlayerDucked(playerid);
native IsPlayerOnGround(playerid);
native GetPlayerFightingStyle(playerid);
native SetPlayerFightingStyle(playerid, styleid);
native SetPlayerOnFire(playerid, fire);
native GetPlayerStat(playerid, statid);
native SetPlayerStat(playerid, statid, Float:value);
Expand All @@ -106,15 +105,10 @@ native SetPlayerBlurLevel(playerid, level);
native GetPlayerAlpha(playerid);
native SetPlayerAlpha(playerid, alpha);
native FadePlayerCamera(playerid, fadeIn, Float:timeToFade = 1.0, red = 0, green = 0, blue = 0);
native GetPlayerVehicleSeat(playerid);
native GetPlayerVelocity(playerid, &Float:X, &Float:Y, &Float:Z);
native SetPlayerVelocity(playerid, Float:X, Float:Y, Float:Z);
native SetPlayerControlState(playerid, control[], stateid);

// Vehicles
native GetVehicleMaxPassengers(vehicleid);
native GetVehicleVelocity(vehicleid, &Float:vx, &Float:vy, &Float:vz);
native SetVehicleVelocity(vehicleid, Float:vx, Float:vy, Float:vz);
native SetVehicleModel(vehicleid, model);
native GetVehicleEngineState(vehicleid);
native SetVehicleEngineState(vehicleid, stateid);
Expand All @@ -131,7 +125,6 @@ native SetVehiclePanelState(vehicleid, panelid, stateid);
native GetVehicleAlpha(vehicleid);
native SetVehicleAlpha(vehicleid, alpha);
native GetVehiclePaintjob(vehicleid);
native GetVehicleComponentInSlot(vehicleid, slot);
native GetVehicleSirensOn(vehicleid);
native SetVehicleSirensOn(vehicleid, stateid);
native IsTrainDerailable(vehicleid);
Expand Down
Binary file removed amx-deps/img/lua.png
Binary file not shown.
Binary file removed amx-deps/img/pawn.png
Binary file not shown.
Binary file removed amx-deps/img/screen.png
Binary file not shown.
137 changes: 0 additions & 137 deletions amx-deps/img/style.css

This file was deleted.

Loading