Skip to content
Callbacks for SA-MP when players start/stop surfing a vehicle, or jump from a vehicle to another.
Pawn
Branch: master
Clone or download
markski1 Merge pull request #1 from markski1/dev
Add (some) support for objects
Latest commit 711ac5f Dec 4, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Begin development of object support Dec 2, 2019
README.md Update README.md Dec 4, 2019
surf-callbacks.inc properly initialize players Dec 4, 2019

README.md

SA-MP Surf Callbacks

Callbacks for SA-MP when players start/stop surfing a vehicle, or jump from a vehicle to another.

Install

If you have y_hooks, simply include the .inc file and everything will work as if by magic.

If you don't have y_hooks, then, besides from including the file you must: - Call 'mrksSurf_InitializePlayer(playerid)' at the beggining of OnPlayerConnect - Call 'mrksSurf_InitializeTimer()' at any point in OnGameModeInit

Usage

To use, you must define each callback as a public function anywhere in your script. The code within will be run when the callback's given condition is met. They're already forwarded in the include file.

Description and instructions per each callback are in the comments of the .inc itself.

Collaborating

Just make a PR m8

You can’t perform that action at this time.