SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 30/11/2019, 08:13 PM   #1
Markski
Big Clucker
 
Markski's Avatar
 
Join Date: Apr 2015
Location: La Plata, Argentina
Posts: 101
Reputation: 17
Default Surfing callbacks

SA-MP Surf Callbacks

Nothing too special to it, simply adds 3 callbacks which are triggered when:

- A player begins surfing a vehicle.
- A player stops surfing a vehicle.
- A player hops from surfing a vehicle to another.

Implementation is detailed in README.md and in the include's comments itself.

Instructions & Download
Markski is offline   Reply With Quote
Old 01/12/2019, 12:19 PM   #2
OstGot
Gangsta
 
OstGot's Avatar
 
Join Date: Mar 2013
Location: Gomel, Belarus
Posts: 865
Reputation: 325
Default Re: Surfing callbacks

What about surfing on objects?
__________________
aka Nexius
Don't want to always check for updates of my scripts?
Include it the last, after all others
Nexius's Update Checker
OstGot is offline   Reply With Quote
Old 01/12/2019, 01:43 PM   #3
JamesBaxter
Little Clucker
 
JamesBaxter's Avatar
 
Join Date: Nov 2017
Posts: 10
Reputation: 6
Default Re: Surfing callbacks

Good
JamesBaxter is offline   Reply With Quote
Old 01/12/2019, 03:35 PM   #4
Pottus
High-roller
 
Pottus's Avatar
 
Join Date: Jun 2012
Posts: 4,852
Reputation: 1313
Default Re: Surfing callbacks

Quote:
Originally Posted by OstGot View Post
What about surfing on objects?
Code:
GetPlayerSurfingState(playerid)

- Object
- In Air
- Vehicle

GetPlayerSurfingObject(playerid, &objectid, &type)
I feel like you do this is a shallow release that could be a lot better and useful with just a bit more work. I'd say this is a 1-star release right now but could be a lot better with only a few more support functions.
Pottus is offline   Reply With Quote
Old 02/12/2019, 03:13 PM   #5
Markski
Big Clucker
 
Markski's Avatar
 
Join Date: Apr 2015
Location: La Plata, Argentina
Posts: 101
Reputation: 17
Default Re: Surfing callbacks

It is a shallow release indeed because I made it to solve a problem and only one problem that I was facing. But I'll add support for objects soon, since I didn't think of that.
Markski is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
callbacks.pwn(1213) : warning 213: tag mismatch callbacks.pwn(1217) : warning 213: tag mismatch callbacks.pwn(1221) : wa Dawkin Scripting Help 14 30/07/2018 01:58 PM
Unoccupied vehicle sync, boat surfing pausing issue, parachute with vehicle issue, surfing w/ skydiving issue Kar Bug Reports 2 10/06/2013 10:24 AM
Car Surfing Script Jay_Dixon Scripting Help 3 30/05/2013 05:58 PM
[ASK]What is Surfing??? VirSpectorX Help Archive 2 23/04/2010 10:57 AM
Car surfing in 0.3 Kuwaiti_17 General 4 17/10/2009 03:39 PM


All times are GMT. The time now is 10:49 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.