|
|
#1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Sep 2011
Posts: 979
Reputation: 278
|
Introduction
This script adds some useful functions that the SA:MP team decided to not include in the default server package. This include requires your server to be running on 0.3e. Functions
Callbacks
Maximum Definitions
Preset Variable Sizes You can now define variables using a couple of new macros I have created. They have preset sizes specifically for the function they'll be used for.
Bugs and Suggestions Please reply to this thread with your bug report or suggestion for the include. All of these posts will be reviewed carefully and dealt with. Versions The download links and the include itself will be updated occasionally. Version 1.4 - Pastebin | Mediafire | Assembla Direct Download Version 1.3 - Pastebin | Mediafire | Assembla Direct Download Version 1.2 - Pastebin | Mediafire | Assembla Direct Download Version 1.1 - Pastebin | Mediafire | Assembla Direct Download Version 1.0 - Pastebin | Mediafire | Assembla Direct Download Don't want to wait for updates? I'm currently uploading all of my changes to an Assembla account. Assembla will be updated before updates are released. If you wish to get the files directly from Assembla, use SVN Checkout with this URL: https://subversion.assembla.com/svn/sv-libraries/ My latest updates to Assembla are below: ![]() Changelog
Using To begin using this include, drag the file to your pawno > includes folder and put pawn Code:
at the top of your script. Credits SuperViper - Creating the script Last edited by SuperViper; 07/10/2012 at 02:41 PM. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|
#2 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Nov 2008
Location: Vatican City
Posts: 528
Reputation: 37
|
Well done, some really useful functions. Granted some have been posted before, but great all the same.
|
|
|
|
|
|
#3 |
|
Little Clucker
![]() Join Date: May 2012
Location: Uruguay
Posts: 44
Reputation: 0
|
omg nice functions, thanks a lot
|
|
|
|
|
|
#4 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Jul 2010
Posts: 223
Reputation: 0
|
O: very userfull, tnx dude
|
|
|
|
|
|
#5 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Mar 2011
Location: The Netherlands
Posts: 726
Reputation: 138
|
Code:
stock IsPlayerInSpray(playerid)
{
return (GetPlayerCameraMode(playerid) == 15) ? 1 : 0;
}
This is very unreliable and the Wiki is quite wrong here. I regret that I can't change it, I don't have a Wiki account. (I have asked, no response.)Yes, camera mode 15 is Pay & Spray. But Pay & Spray is not the only camera mode 15. I prefer calling camera mode 15 'scripted static camera'. It's used for a lot of different stuff, like:
|
|
|
|
|
|
#6 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Jul 2010
Location: Latvia,Riga
Posts: 728
Reputation: 74
|
Really useful, thanks
|
|
|
|
|
|
#7 | |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Sep 2011
Posts: 979
Reputation: 278
|
Quote:
|
|
|
|
|
|
|
#8 |
|
Godfather
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2011
Location: England
Posts: 5,265
Reputation: 748
|
The SA:MP wiki is edited by anyone (that has an account) - so it's not OFFICIAL OFFICIAL.
|
|
|
|
|
|
#9 |
|
Beta Tester
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2008
Location: 629
Posts: 13,319
Reputation: 1910
|
Very good effort. Just one tiny minor point. The callback hooks should use "CallLocalFunction" not "CallRemoteFunction" or you could end up having callbacks being called multiple times if this include is used in multiple scripts.
|
|
|
|
|
|
#10 |
|
Little Clucker
![]() Join Date: Apr 2012
Posts: 17
Reputation: 0
|
Nice man
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [FilterScript] Nice Addons For Gym | kuberaland | Filterscripts | 4 | 25/04/2011 03:26 PM |
| [FS/MAP]Area 51 Addons (Decide to release now) | HlHl | Filterscripts | 2 | 14/03/2010 05:25 AM |
| [FS/MAP]Area 51 Addons | HlHl | Filterscripts | 3 | 02/03/2010 10:38 AM |
| [Map] [MAP] Unity Station Addons | RastamaN[BzD] | Maps | 11 | 11/12/2009 04:51 AM |
| Useful FireFox addons :D [List on first post :P ] | Rozzie | Everything and Nothing | 19 | 18/01/2009 10:16 PM |