Friday, 3 July 2015

Bank v1.1

This is a updated version of my original Bank filterscript and is more improved, to see what has changed scroll down and read the change log section.

Hi guys i was browsing the SA-MP forums and found this cool fiterscript from a member called UltraScripter, i posted to him and told him his code was good and easy for newbies to work with, in the replies to his topic some members were asking him to make the bank have a interior, and he then went on to tell them he wanted it commands only, and thats all he was doing, so i took it upon myself to show the other comment posters that its easy to add the interior. So when i started i was flooded with ideas, so here is what i have came up with.

Features:

  • Bank Assistants (Actors)
  • Bank Interior
  • Withdraw Money
  • Deposit Money
  • Balance Textdraw


Commands:

  • /gotobank
  • /changelog
  • /balance [Removed]


Requirements:

  • y_ini.inc
  • zcmd.inc
  • SIF.inc
  • sscanf2.inc
  • sscanf.dll/.so
  • Message2.inc
  • streamer.dll/.so
  • streamer.inc


Installation:

  • Copy all the files provided into the correct folders.
  • Add the required plugins into the server.cfg file
  • Add "Bank" to the filterscritpt line in the server.cfg
  • Add "BankAccounts" folder to scriptfiles folder if you have not done so.
  • Compile the Bank.pwn
  • Run your server.
  • Enjoy the filterscript.


Credits:
UltraScripter - For the original code.
Jakwob - For the Bank interior, bank assistants and his Message2.inc.
Southclaw - for his Southclaw's Interaction Framework.
Zeex - For the command processor.
y_less - for his YSI and his sscanf.


Downloads:
Version 1.0
Bank.zip (solidfiles)

Version 1.1
Bank.zip (solidfiles)

Changelog:
03/07/2015


  • REMOVED DIALOG IDS AND ADDED NAMES TO PREVENT ID CONFUSION
  • Moved saving to a seprate function to help clean up code
  • Removed Changelog command.
  • Now your new bank balance shows in the receipt dialog
  • New Balance textdraw for easy viewing
  • Removed Balance dialog and balance command as its no longer needed
  • Added colors to the dialogs
  • SendClientMessage is no longer used!


Screenshots:

Monday, 22 June 2015

Bank System (Jakwob Edit)

Hi guys i was browsing the SA-MP forums and found this cool fiterscript from a member called UltraScripter, i posted to him and told him his code was good and easy for newbies to work with, in the replies to his topic some members were asking him to make the bank have a interior, and he then went on to tell them he wanted it commands only, and thats all he was doing, so i took it upon myself to show the other comment posters that its easy to add the interior. So when i started i was flooded with ideas, so here is what i have came up with.

Original Post here.
UltraScripter SA-MP Profile Click Here
Jakwob's SA-MP Profile Click Here

Features:

  • Bank Assistants (Actors)
  • Bank Interior
  • Withdraw Money
  • Deposit Money
  • Check Balance
Commands:
  • /gotobank
  • /changelog
  • /balance
Requirements:

Installation:
  • Note: All the required includes and plugins are provided with this download.
  1. Copy all the files provided into the correct folders.
  2. Add the required plugins into the server.cfg file
  3. Add "Bank" to the filterscritpt line in the server.cfg
  4. Add "BankAccounts" folder to scriptfiles folder if you have not done so.
  5. Compile the Bank.pwn
  6. Run your server.
  7. Enjoy the filterscript.

Credits:
UltraScripter - For the original code.
Jakwob - For the Bank interior, bank assistants and his Message2.inc.
Southclaw - for his Southclaw's Interaction Framework.
Zeex - For the command processor.
y_less - for his YSI and his sscanf.


Downloads:
Bank.zip (solidfiles)

Screenshots




Saturday, 20 June 2015

Message2.inc

This is the update version of Message.inc.

At the top of your code use #include <message>

Features:

  • Creates an indiviual textdraw for cetian messages
  • Prevents chat spam of unwanted messages



Requirements:


  • zcmd.inc  // #include this into your gamemode before the Message2.inc (without this the include will not function).
  • sscanf2.inc // #include this into your gamemode before the Message2.inc (without this the include will not function).
  • sscanf.dll/.so // Dont forget to put this in your plugin folder and write on the line "plugins" on your server.cfg.


Message Styles:

  • MSG_STYLE_ERROR    1
  • MSG_STYLE_INFO     2
  • MSG_STYLE_USAGE    3



Functions:

  • SendServerMessage(playerid, msgstyle, const message[]);
  • CreateMessageTextDraw(playerid); // Place under OnPlayerConnect(playerid) Otherwise the textdraws will not show
  • DestroyMessageTextDraw(playerid); // Place Under OnPlayerDisconnect(playerid, reason) Otherwise the textdraws will not show


Commands:


  • /msgpos - Usage /msgpos [Custom X] [Custom Y].
  • /defaultmsg


Download:
Message2.inc (solidfiles)
Message2.inc (pastebin)

ChangeLog 20/06/2015


  • Rewrote code to make it more user friendly.
  • Removed textdraws that was not needed.
  • Fixed timer bug.
  • Recolored some of the message titles.
  • Removed some timers.
  • Added Message Styles.
  • Removed SendErrorMessage.
  • Removed SendInfoMessage.
  • Removed SendUsageMessage.
  • Added new Function SendServerMessage.
  • Added checks to see if there is already a TD timer running.
  • New command to change the position of the textdraw so its in your ideal place.
  • New default position command to place your textdraw back to the default position.
  • Added checks to the X, Y positions.


ScreenShot:








Thanks for taking time to look at my work!

Tuesday, 16 June 2015

Message.inc

Message.inc


Hey this is my first include, im sorry if anyone thinks this is useless, but i had the idea to prevent the chat in game being spammed by unwanted messages, and usage messages so i made them as a textdraw to show near the map and disappear after 5 seconds.

At the top of your code use #include <message>

Features:

  • Creates an indiviual textdraw for cetian messages
  • prevents chat spam of unwanted messages



Functions:

  • SendErrorMessage(playerid, const message[]);
  • SendUsageMessage(playerid, const message[]);
  • SendInfoMessage(playerid, const message[]);
  • CreateMessageTDs(playerid); // Place under OnPlayerConnect(playerid) Otherwise the textdraws will not show
  • DestroyMessageTDs(playerid); // Place Under OnPlayerDisconnect(playerid, reason) Otherwise the textdraws will not show


Download:
Message.inc (solidfiles)
Message.inc (pastebin)

ScreenShot:


Note: All comments are welcomed but please instead of posting bad comments, please tell me how i can improve the preformance.

Thanks for taking time to look at my work!

Sunday, 17 May 2015

Gold Bar Hunt Custom - Version 1.0

This filterscript is an event in which Gold Bars will spawn, the objective is for players to hunt and collect the gold bar, it will be a race to see who gets the gold bar.

Note: this filterscript is a custom version to the Gold Bar Hunt Event, as this is always running and more like a server feature than an event. this is smaller and easy to edit. This filterscript will only be updated upon request!



Features

  •  10 Random Gold Bar Spawns (more coming soon)
  • /golddist - View gold bar distance textdraw
  • F key to pick up gold bar.
  • Gold Bar Distance textdraw.
  • Gold Bar Location in textdraw.
  • Gold bar spawns once the other is collected [new]



Requirements

  • SIF.inc
  • streamer.inc
  • zcmd.inc


Installation
Put GBH.amx In your Filterscripts folder
Put 'GBH' on your filterscript line in your server.cfg

Screenshots






How to:

Change Gold Bar Value:
#define GOLD_BAR_VALUE 250000

Add More Gold Bars:
Find
new Float: GoldBarSpawns[][3] ={         {2489.55713, -1648.19702, 14.12130},
{1273.50989, 165.30269, 19.61811},           
        {2297.84546, 1402.68140, 42.90400},         {-2701.21313, 850.51392, 70.42670}
};

Example:
new Float: GoldBarSpawns[][3] ={  
    {Float:x, Float:y, Float:z,},  // Object Float:x/y/z
    {Float:x, Float:y, Float:z,},  // Object Float:x/y/z            
    {Float:x, Float:y, Float:z,},  // Object Float:x/y/z            
    {Float:x, Float:y, Float:z,},  // Object Float:x/y/z
};


Note: Zones are all automatic.

ChangeLog:

Version 1.0

  • Replaced and altered textdraws.
  • Cleaned code.
  • Textdraws visable all the time.
  • Removed all timers.
  • '/goldbar' is now /golddist.
  • 6 new gold bar spawns.


Credits

  • Jakwob (me) - Idea and writing the code
  • Incognito - For his streamer
  • Southclaw - For his Southclaws Interaction Framework
  • Zeex - For his command processor

Custom Download
Version 1.0
GBHCustom.pwn (solidfiles.com)

Portable House - Version 1.0

This filterscript is very simple but fun, it is a DFT-30 with a house attached to the rear,
it was made just for fun and is not for serious use.

Features:
  • Vehicle Spawns on you position.
  • /ph - Spawn the portable house.
  • /destroyph - Destroy the portable house.
  • 1 Portable house can be spawned.

Requirements:
  • zcmd.inc
  • streamer.inc
  • streamer.dll/.so

Installation:
  • Place 'PH.pwn' in your filterscript folder.
  • Open 'PH.pwn' and compile.
  • Add 'PH' to the filterscript line in the server.cfg.

Download:

PH.pwn (solidfiles)


Screenshots:


















Thursday, 14 May 2015

Exp/Level/Prestige System - Version 1.4

Experiance, level and prestige system, it can be customized so for example you complete a job or DM then you can make it give the player the desired amount of xp, on leveling up you will receive a payment for you success on leveling up and you will recieve a huge $1 million when you prestige. The system saves individual level profile in a seprate folder to where your accounts will be saved.

Features

  • Experience points
  • Levels
  • Prestige Levels
  • Fully Saving (not affecting player saving)
  • Auto Level up
  • Payday on level up
  • Textdraws

Commands

  • /givexp <playerid> <1 - 99>
  • /givelevel <playerid> <1 - 99>
  • /giveprestige <playerid> <1 - 99>
  • /veh - Only players with Prestige can use /veh
  • /myrank
  • /resetrank <playerid> (Reset a players rank)
  • /rankhelp - player command
  • /rdm - Ranks Debug Mode (printing messages on console)


Installation

You will need the required includes in order to run this filterscript;

  • zcmd
  • YSI

Also make a folder in scriptfiles called "Levels"

Downlaods
Version 1.2:
Ranks.pwn (solidfiles)

Version 1.3:
Ranks.pwn (solidfiles)

Version 1.4:
Ranks.pwn (solidfiles)

Screenshots:





Gold Bar Hunt - Version 1.1

This filterscript is an event in which every 30 minutes a Gold Bar will spawn, the objective is for players to hunt and collect the gold bar, it will be a race to see who gets the gold bar.



Features

  •  4 Random Gold Bar Spawns (more coming soon)
  • Command to get distance from Gold Bar
  • F key to pick up Gold Bar.
  • Gold Bar Distance Textdraw [new]
  • Gold Bar Event start textdraws [new]
  • Gold Bar Location in textdraws [new]



Requirements

  • SIF.inc
  • streamer.inc
  • zcmd.inc


Installation
Put GBH.amx In your Filterscripts folder
Put 'GBH' on your filterscript line in your server.cfg

Screenshots


How to:

Change Gold Bar Value:
#define GOLD_BAR_VALUE 250000

Add More Gold Bars:
Find
new Float: GoldBarSpawns[][3] ={         {2489.55713, -1648.19702, 14.12130},
{1273.50989, 165.30269, 19.61811},            
        {2297.84546, 1402.68140, 42.90400},         {-2701.21313, 850.51392, 70.42670}
};

Example:
new Float: GoldBarSpawns[][3] ={     {Float:x, Float:y, Float:z,},  // Object Float:x/y/z  
    {Float:x, Float:y, Float:z,},  // Object Float:x/y/z              
    {Float:x, Float:y, Float:z,},  // Object Float:x/y/z              
    {Float:x, Float:y, Float:z,},  // Object Float:x/y/z
};


Note: Zones are all automatic.

Credits

  • Jakwob (me) - Idea and writing the code
  • Incognito - For his streamer
  • Southclaw - For his Southclaws Interaction Framework
  • Zeex - For his command processor

Download
Version 1.0
GBH.pwn (solidfiles.com)

Version 1.1
GBH.pwn (solidfiles.com)