[FilterScript] [0.3e] Dynamic ATM System [zcmd, SQLite, streamer]
#1

Dynamic ATM System

[ame="http://www.youtube.com/watch?v=baqF9aFwrI4"]http://www.youtube.com/watch?v=baqF9aFwrI4[/ame]

Features
  • The ability to create, edit, destroy ATMs dynamically in game.
  • Server sided money. (makes money impossible to hack)
  • Money saving system. Players' bank accounts, and their hand cash are stored in an SQLite database in the scriptfiles folder so no need for another include.
  • ATMs are also stored in an SQLite database in the scriptfiles folder.
Commands
/adeposit - Deposits the specified amount into a player's bank account
/awithdraw - Withdraws the specified amount from a player's account
/abalance - Displays the amount of money in a player's account.
/atmhelp - Displays all the available commands.

/createatm - Creates a dynamic ATM directly in front of the player (Admin-Only)
/editatm - Opens up the object editing tool to edit the closest ATM to the player. (Admin-Only)
/destroyatm - Destroys the nearest ATM. (Admin-Only)
Screenshot
(since the video was in crappy quality)
Download
Pastebin
Changelog
1/07/2012 - v1.0
  • Released the script.
25/7/2012 - v1.1
  • Possibly fixed the commands.
  • Added db_close on filterscript exit. (stupid me)
Credits
Zeex for his ZCMD include
Incognito for his streamer plugin.
VincentDunn for writing the script.
Note: Since this script is so simple, I really don't care what you do with it. Post any bugs/questions below. Enjoy.
Reply
#2

Good FS!
Reply
#3

Good job rep+
Reply
#4

nice FS, maybe i use it
Reply
#5

No saving system?
Reply
#6

nice!!!!
Reply
#7

Quote:
Originally Posted by Lant
Посмотреть сообщение
No saving system?
Read the thread.
Quote:
  • Money saving system. Players' bank accounts, and their hand cash are stored in an SQLite database in the scriptfiles folder so no need for another include.
  • ATMs are also stored in an SQLite database in the scriptfiles folder.
Yes, there is a saving system for player's money, bankaccount, and there is a saving system for all of the ATMs.
Reply
#8

Код:
pawno\include\streamer.inc(156) : error 017: undefined symbol "OBJECT_MATERIAL_SIZE_256x128"
pawno\include\streamer.inc(382) : warning 235: public function lacks forward declaration (symbol "OnPlayerEditObject")
pawno\include\streamer.inc(404) : warning 235: public function lacks forward declaration (symbol "OnPlayerSelectObject")
pawno\include\streamer.inc(406) : error 017: undefined symbol "SELECT_OBJECT_PLAYER_OBJECT"
filterscripts\DynamicATMs.pwn(297) : error 017: undefined symbol "EDIT_RESPONSE_CANCEL"
\filterscripts\DynamicATMs.pwn(301) : error 017: undefined symbol "EDIT_RESPONSE_FINAL"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Reply
#9

Quote:
Originally Posted by Sajeevan
Посмотреть сообщение
Код:
pawno\include\streamer.inc(156) : error 017: undefined symbol "OBJECT_MATERIAL_SIZE_256x128"
pawno\include\streamer.inc(382) : warning 235: public function lacks forward declaration (symbol "OnPlayerEditObject")
pawno\include\streamer.inc(404) : warning 235: public function lacks forward declaration (symbol "OnPlayerSelectObject")
pawno\include\streamer.inc(406) : error 017: undefined symbol "SELECT_OBJECT_PLAYER_OBJECT"
filterscripts\DynamicATMs.pwn(297) : error 017: undefined symbol "EDIT_RESPONSE_CANCEL"
\filterscripts\DynamicATMs.pwn(301) : error 017: undefined symbol "EDIT_RESPONSE_FINAL"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
This filterscript is for SAMP 0.3e, download the latest server package here, and grab the latest version of the streamer plugin here.
Reply
#10

/createatm dont work nor any other commands.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)