07.07.2009, 17:30
- nfPlugin - Native Functions Plugin
Work in progress!
Website: http://www.ettans.co.uk/nfplugin
IRC: irc.ffsnetwork.com @ #nfPlugin
Credits
Peter Beverloo - Plugin invoke function.
Information
nfPlugin is a server-side plugin for SA:MP (San Andreas: Multiplayer). It allows the scripters to use a lot of new and useful native functions, to improve their script(s). nfPlugin is very easy to install, as it comes with a readme and an example script. The main idea of this plugin is to make your, the scripters, life easier, so you don't have to waste time thinking on how to make complex functions and can just use your energy and time on making the script.
We're always glad to help you out, should you need any assistance regarding nfPlugin. If you can't find answers to your questions in the readme file, feel free to visit us on our IRC channel and ask your questions there.
Note: I'm currently looking for ideas on what natives I should add. Remember, the purpose of this plugin is to make the scripters life easier, so he doesn't have to make all the complex/long functions himself, nor download dozens of filterscripts/includes. You can share your suggestions on our forum or the IRC channel.
Natives
- IsVehicleOccupied(vehicleid);
- Checks if the given vehicle is occupied, if yes, returns 1, otherwise returns 0.
- IsPlayerVehicleCar(playerid);
- Checks if the given player is in a car, if yes, returns 1, otherwise returns 0.
- IsPlayerVehicleBike(playerid);
- Checks if the given player is in a bike, if yes, returns 1, otherwise returns 0.
- IsPlayerVehicleBicycle(playerid);
- Checks if the given player is in a bicycle, if yes, returns 1, otherwise returns 0.
- IsPlayerVehicleBoat(playerid);
- Checks if the given player is in a boat, if yes, returns 1, otherwise returns 0.
- IsPlayerVehiclePlane(playerid);
- Checks if the given player is in a plane, if yes, returns 1, otherwise returns 0.
- IsPlayerVehicleHeli(playerid);
- Checks if the given player is in a helicopter, if yes, returns 1, otherwise returns 0.
- IsPlayerVehicleSpecial(playerid);
- Checks if the given player is in a special vehicle, if yes, returns 1, otherwise returns 0.
- IsVehicleOccupied(vehicleid);
- Special vehicles: Article Trailer(435), Tram(449), Article Trailer 2(450), Brownstreak(537), Freight(53
, Freight Flat Trailer(569), Streak Trailer(570), Petrol Trailer(584), Freight Box(590), Article Trailer 3(591), RC Cam(594), Baggage Trailer(606), Baggage Trailer "B"(607), Tug Stairs Trailer(60
, Farm Trailer/Plow(610), Utility Trailer(611)