13.03.2015, 09:18
Another update:
And 2 new callbacks:
Functions for the new callbacks:
Action types for OnPlayerActionChange:
Example is in the first post.
Thanks for using this everybody! This update is proof that I haven't abandoned this project at all. I will update this project as long as I'm still playing SA:MP.
Код:
- Rewrote a lot of the code. - Added better code to detect if a player is falling. - Renamed a few callbacks: OnPlayerCarJack -> OnPlayerJackVehicle OnPlayerWeaponEmpty -> OnPlayerEmptyWeapon OnPlayerDisableCursor -> OnPlayerHideCursor OnPlayerAnimationFinish -> OnPlayerAnimationPlay - Removed OnPlayerTakePicture. This caused some issues and didn't work properly. - Removed the "Float:height" parameter from OnPlayerFall due to inaccuracy.
pawn Код:
public OnPlayerActionChange(playerid, oldaction, newaction)
{
return 1;
}
public OnPlayerRamPlayer(playerid, driverid, vehicleid, Float:damage)
{
return 1;
}
pawn Код:
stock GetPlayerAction(playerid);
stock IsPlayerSkydiving(playerid);
stock IsPlayerSwimming(playerid);
pawn Код:
#define PLAYER_ACTION_NONE (0)
#define PLAYER_ACTION_SHOOTING (1)
#define PLAYER_ACTION_SWIMMING (2)
#define PLAYER_ACTION_SKYDIVING (3)
#define PLAYER_ACTION_JUMPING (4)
Thanks for using this everybody! This update is proof that I haven't abandoned this project at all. I will update this project as long as I'm still playing SA:MP.