[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


Messages In This Thread
AE - Actors Everywhere - by RogerCosta - 08.10.2015, 23:47
Re: AE - Actors Everywhere - by Alex Magaсa - 08.10.2015, 23:55
Re: AE - Actors Everywhere - by RogerCosta - 08.10.2015, 23:56
Re: AE - Actors Everywhere - by DeitY - 09.10.2015, 01:14
Re: AE - Actors Everywhere - by tysanio - 09.10.2015, 01:18
Re: AE - Actors Everywhere - by RogerCosta - 09.10.2015, 01:20
Re: AE - Actors Everywhere - by IDarkness - 09.10.2015, 01:26
Re: AE - Actors Everywhere - by DeitY - 09.10.2015, 01:45
Re: AE - Actors Everywhere - by RogerCosta - 09.10.2015, 14:02
Re: AE - Actors Everywhere - by FrAnKiN1 - 09.10.2015, 18:01
Re: AE - Actors Everywhere - by vegaltasendai - 09.10.2015, 21:23
Re: AE - Actors Everywhere - by RogerCosta - 09.10.2015, 21:34
Re: AE - Actors Everywhere - by RogerCosta - 11.10.2015, 20:03
Re: AE - Actors Everywhere - by codeshadow - 11.10.2015, 20:24
Re: AE - Actors Everywhere - by RogerCosta - 11.10.2015, 20:50
Re: AE - Actors Everywhere - by codeshadow - 11.10.2015, 21:16
Re: AE - Actors Everywhere - by Ritzy2K - 12.10.2015, 02:00
Re: AE - Actors Everywhere - by langit - 09.11.2017, 02:32

Forum Jump:


Users browsing this thread: 1 Guest(s)