[WIP]nfPlugin - Simplifying the scripters life
#1

  • 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.

  • 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)
Reply
#2

nice
but this can made with a simeple filterscript or include
anyway good work
Reply
#3

I wanted to write this plugin in C++ since it has faster execution times than PAWN and I'm also quite new to C++, whereas PAWN is an old friend of mine.
Reply
#4

Not bad Ettans, especially since your new to C++.

Nice job
Reply
#5

All the above natives are now finished, also added IsPlayerVehicleSpecial(playerid);. Please give me ideas on what to add.
Reply
#6

nice but why do you need a Plugin for this? I mean this can be also via includes
Reply
#7

Well, you don't, actually. I will add different natives too of course, ones you can't make via includes/filterscripts etc. I know some people are all about 'speed' in their gamemodes, so this might be a bit useful for them.
Reply
#8

Is it ok to suggest some callbacks?
Reply
#9

Yes, of course.
Reply
#10

Will be this public ?
Reply
#11

Yes it will be public,otherwise it wouldn't be here.


Awesome job Ettans,although i don't know a thing about C++. lol
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)