This is a squirrel plugin to create bots in the server.Quote Download plugins
actor32.dll
actor64.dll
Installation ( very easy )
Copy the actor64.dll into plugins folder. Open server.cfg find the line plugins, add 'actor64' to the last. see pic below


Functions
Only two functions now,
create_actor(name, skinId, x, y, z, angle), set_actor_angle
Examples
Code: [Select]
create_actor("john");
create_actor("kevin",5); will spawn a medic with name 'kevin'
create_actor("Edward",1,-656,756,11.2,0); will spawn a cop at downtown facing north.
setport("8193"); ( in case your port is not 8192, but 8193 );
Notes
1. actorid and playerid are different.
2. create_actor returns an integer which is 0 for 1st bot, 1 for 2nd bot and so on. We can call it actor id.
3. create_actor function will take a little time to create bots.
4. If your server has registration system, you must add the bots name to database. Otherwise the bots cannot spawn.
For detailed documentation, see click Source code below and view readme file.
Note: This project was built with Visual Studio 2019. Source code
Linux Version
64 bit actor64.so
32 bit actor32.so
Source code
Functions are same except set_port. The parameter inside set_port must be integer. eg. set_port( 8193 ). Default is 8192.
actor32.dll
actor64.dll
Installation ( very easy )
Copy the actor64.dll into plugins folder. Open server.cfg find the line plugins, add 'actor64' to the last. see pic below


Functions
Only two functions now,
create_actor(name, skinId, x, y, z, angle), set_actor_angle
Examples
function onScriptLoad()
{
create_actor( "medic", 5, -656, 756, 11.2, 1.5 ); //5 == ambulance man
create_actor( "emma", 65, -660, 758, 11.2, -1.5 );
}
create_actor("john");
create_actor("kevin",5); will spawn a medic with name 'kevin'
create_actor("Edward",1,-656,756,11.2,0); will spawn a cop at downtown facing north.
setport("8193"); ( in case your port is not 8192, but 8193 );
Notes
1. actorid and playerid are different.
2. create_actor returns an integer which is 0 for 1st bot, 1 for 2nd bot and so on. We can call it actor id.
3. create_actor function will take a little time to create bots.
4. If your server has registration system, you must add the bots name to database. Otherwise the bots cannot spawn.
For detailed documentation, see click Source code below and view readme file.
Note: This project was built with Visual Studio 2019. Source code
Linux Version
64 bit actor64.so
32 bit actor32.so
Source code
Functions are same except set_port. The parameter inside set_port must be integer. eg. set_port( 8193 ). Default is 8192.