[FilterScript] AE - Actors Everywhere
#1

Hi, first, sorry my bad english, please!

This filterscript add actors in San Andreas, according current time of you server, or add statics actors, staying setted in same positions everytime. 1 actor can be created during the day, afternoon, night and dawn. You define the positions and animations for each time, and when the server time is passing the actors are deleted automaticaly and created automaticaly too.


Defines
AE_MAX_ACTORS - used to define max actors in array.
AE_MAX_OBJECTS - used to define max objects in array.
AE_ACTORS_CREATE_TYPE - type of create actors, if 0 actors are created staticaly in same position, everytime. If 1, actors are created in differents positions and anims acoording current time of server.
AE_USE_STREAMER - 1 if your prefeer use Incognito Streamer for creating objects, 0 used SA-MP CreateObjects.
AE_USE_GIVE_ACTOR_DMG - If FS used OnGiveDamageActor.
AE_USE_RESPAWN_ACTOR - If actor shooted, he executes anims, if 0 actor dont respawn. If 1, after shoot, actor execute anims and respawn to early position in time that you choose.
AE_TIME_RESPAWN_ACTOR - Time to respawn actor (in ms)

How to add more actors
Found array ACTORS_INFO and go to last line, add:
Код:
{
    "ACTOR_NAME",
    {X, Y, Z, R STANDARD POSITIONS},
    {X, Y, Z, R DAY POSITIONS},
    {X, Y, Z, R AFTERNOON POSITIONS},
    {X, Y, Z, R NIGHT POSITIONS},
    {X, Y, Z, R DAWN POSITIONS},
    SKIN_ID_STANDARD,  SKIN_ID_DAY,  SKIN_ID_AFTERNOON,  SKIN_ID_NIGHT,  SKIN_ID_DAWN, 
    "PED",		"endchat_03",  1, // Anim Lib, Anim Name and Loop for Standard
    "PED",		"endchat_03",  1, // Anim Lib, Anim Name and Loop for Day
    "NONE",		"NONE",  0, // Anim Lib, Anim Name and Loop for Afternoon
    "NONE",		"NONE",  0, // Anim Lib, Anim Name and Loop for Night
    "NONE",		"NONE",  0, // Anim Lib, Anim Name and Loop for Dawn
    true // true if actor invulnerable, 0 not
},
*Note: if you not want create actor in particular hour, leave position of hour in 0.0.

CallRemoteFunction
Код:
AE_HOUR = CallRemoteFunction("PUBLIC_NAME_RETUNING_HOUR", "d", 1);
Important you create function in your gamemode, returning SERVER TIME, variable AE_HOUR get the current time, and delete & create actors automatically. Replace PUBLIC_NAME_RETUNING_HOUR to name of your function in you gamemode.

Versions
Current is 1.0.

Soon 2.0, features: commands for create actors in-game, and save actors in .INI or MySQL.

Images
https://www.youtube.com/watch?v=JuHf5PtFaMg(toggle 1080p)

Download
Pastebin (Updated)

*the topic is confusing, I know, I will try to fix, sorry
Reply
#2

Good job! Keep it up!
Reply
#3

Quote:
Originally Posted by Alex Magaсa
Посмотреть сообщение
Good job! Keep it up!
Thanks Alex. My english is bad, topic was confused
Reply
#4

Could u make that actors are created by command?
Reply
#5

Good job mate!
Reply
#6

Quote:
Originally Posted by DeitY
Посмотреть сообщение
Could u make that actors are created by command?
you can modify according to your taste
but I think better that automatic.

Quote:
Originally Posted by tysanio
Посмотреть сообщение
Good job mate!
Thanks
Reply
#7

Awesome, keep it up!
Reply
#8

Quote:
Originally Posted by RogerCosta
Посмотреть сообщение
you can modify according to your taste
but I think better that automatic.


Thanks
I meant dynamic in game creation and saving mysql/ini?
Reply
#9

Quote:
Originally Posted by DeitY
Посмотреть сообщение
I meant dynamic in game creation and saving mysql/ini?
In first time, I preferred this way even release, manually. But i think update FS with commands for create actors (positions, anims) in-game and save in .INI or MySQL.
Reply
#10

Nice work.
But i need fs to write (cmd-actor id-anim id) and actor be create in the place which i'm in.
Reply
#11

Error

Код:
puka.pwn(256 -- 264) : error 017: undefined symbol "STREAMER_OBJECT_SD"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Код:
puka.pwn(257 -- 266) : error 017: undefined symbol "STREAMER_OBJECT_DD"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
define and error

Код:
\puka.pwn(258 -- 266) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Reply
#12

Quote:
Originally Posted by vegaltasendai
Посмотреть сообщение
Error

Код:
puka.pwn(256 -- 264) : error 017: undefined symbol "STREAMER_OBJECT_SD"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Код:
puka.pwn(257 -- 266) : error 017: undefined symbol "STREAMER_OBJECT_DD"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
define and error

Код:
\puka.pwn(258 -- 266) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Try update you Streamer for the last version:
https://github.com/samp-incognito/sa...lugin/releases
Reply
#13

1. In first update, actors can be create in interior 0;
2. if AE_ACTORS_CREATE_TYPE equal 0, actors are create using POSITIONS_STANDARD, and execute animations with ANIM_LIB_STANDARD, ANIM_NAME_STANDARD, ANIM_LOOP_STANDARD, only. The actor stay created in same positions until server finish or unloading FS.

if AE_ACTORS_CREATE_TYPE equal 1, you have to use CallRemoteFunction function, to get a HOUR from your gamemode, and set all positions (day, afternoon, night and dawn) with respectives skins, and animations for each time (day, afternoon, night, dawn).

Quote:

do not crash me only if I use your stock actors but if I add new actor and go near them I crash

You added +1 in define AE_MAX_ACTORS? In my example, i use 7 actors (#define AE_MAX_ACTORS 7). Please, show me how to added new actor in ACTORS_INFO array.
Reply
#14

http://pastebin.com/2napVyZc
Reply
#15

I tested here, and normally, not crash. Also, if you use TYPE == 0, define ANIM_LIB_STANDARD, ANIM_NAME_STANDARD, ANIM_LOOP_STANDARD. Like this:
Код:
        // # ACTOR 8
        {
                "femalecop",
                {1538.7629,-1663.6542,13.5469,178.2657},
                {0.0, 0.0, 0.0, 0.0}, // Set if TYPE == 1
                {0.0, 0.0, 0.0, 0.0}, // Set if TYPE == 1
                {0.0, 0.0, 0.0, 0.0}, // Set if TYPE == 1
                {0.0, 0.0, 0.0, 0.0}, // Set if TYPE == 1
                306,            306,    306,     306,     306,
                "POLICE",                       "CopTraf_Come", 1,
                "NONE",                         "NONE", 0, // Set if TYPE == 1
                "NONE",                         "NONE", 0, // Set if TYPE == 1
                "NONE",                         "NONE", 0, // Set if TYPE == 1
                "NONE",                       "NONE", 0,   // Set if TYPE == 1
                true
        }
Image of your actor: http://imgur.com/qyzRzVP
Reply
#16

Thanks buddy keep up the good work.
Reply
#17

Nice
Reply
#18

how to set actor in interior and virtual world
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)