SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 14/06/2016, 01:56 AM   #1
TwinkiDaBoss
Gangsta
 
Join Date: Jul 2014
Posts: 822
Reputation: 51
Default Dynamic Actors

Read notes and installation guide otherwise you will get shitton of errors!


Introduction
No this DOESNT NOT remove limit of 1000 actors per server! With this filterscript you can simply create actors and edit them while online without editing the script or such. All actors are saved inside the SQL



Installation
- Execute the query with my SQL code for the actors.
- Download latest MySQL plugin and place it inside your Plugins folder
- Download sscanf2 and place it inside your plugins folder
- Download ZCMD and place it inside your include folder
- Download Streamer and place it inside your include folder
- Edit your server config and add "mysql sscanf streamer" under "plugins".
NOTE: mysql must be FIRST inside server.cfg under plugins! First add mysql/mysql.so (.so if you are on linux) and save it!



Notes
- In order for actors for actor to appear you have to do /reloadactors
- Actor will read player animation when editing or creating it and save it.



Commands
- createactor [skin id] [Name] - It will create a new actor at your location with YOUR animation with some name
- setactorskin [actorid] [skinid] - Sets some actor to certain skin id
- setactorname [actorid] [new name] - Sets some actor name to certain name
- moveactor [actorid] - moves the actor to your current position
- reloadactors - destroys and re-creates all actors. This can take a long time to execute (up to 10-15 seconds delay caused) since it has to destroy and re-create all of them.


SQL Structure
In order to run this code you will have to run this code inside your query in mysql. You will also have to create a database manualy where you want to store this table!And dont forget to edit source code to your new DB. Change #define db "survival" to your database name!
https://paste2.org/EzxGVhw6




Download
v.1.0: http://paste2.org/LvXf4FN7
v.1.0: http://www.megafileupload.com/fldZ/fs.pwn


Credits
- Zeex for ZCMD
- Y_Less SSCANF
- Incognito for the streamer
- BlueG for mysql plugin
- Kye for SA:MP
- People from SA:MP & skype that helped me out to test this
- Alcatrik for helping me out all these years and teaching me how to script!


Screenshots


TwinkiDaBoss is offline   Reply With Quote
Old 14/06/2016, 01:57 AM   #2
oktokt1
Big Clucker
 
oktokt1's Avatar
 
Join Date: Jan 2016
Location: Egypt, Cairo
Posts: 160
Reputation: 14
Default Re: Dynamic Actors

Great Job.
Keep it Up.
__________________

Mapping.
--------------------
Learning Scripting.
Helping Newbies Mappers.
oktokt1 is offline   Reply With Quote
Old 14/06/2016, 02:22 AM   #3
Pottus
Godfather
 
Pottus's Avatar
 
Join Date: Jun 2012
Posts: 5,316
Reputation: 1171
Default Re: Dynamic Actors

Could be edited as a framework to extend Texture Studio maps with some editing
Pottus is offline   Reply With Quote
Old 14/06/2016, 02:22 AM   #4
TwinkiDaBoss
Gangsta
 
Join Date: Jul 2014
Posts: 822
Reputation: 51
Default Re: Dynamic Actors

Quote:
Originally Posted by Pottus View Post
Could be edited as a framework to extend Texture Studio maps
That would be lovely!
TwinkiDaBoss is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help With Actors. CarRamper Scripting Help 2 04/06/2016 11:54 AM
Actors bug zamaleksc Scripting Help 14 16/01/2016 07:56 PM
[Ajuda] actors fdsda PortuguÍs/Portuguese 10 12/11/2015 09:53 PM
Actors. Antoniohl Scripting Help 10 30/07/2015 06:55 PM


All times are GMT. The time now is 05:08 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.