[FilterScript] Record n Play (directly in-game) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Record n Play (directly in-game) (
/showthread.php?tid=271713)
NPCPlayer (play recorded playbacks directly in-game) -
Stylock - 25.07.2011
NPCPlayer
(play recorded playbacks directly in-game)
Information
This is a simple filterscript that allows you to record and play NPCs directly in-game. You can record yourself on foot and in vehicle, but only in separate recordings. In this version it's not possible to do continuous recording session, during which you could drive and walk, but maybe future version will make it possible.
Commands (Admin only)
- /rec start - start recording player data
- /rec stop - stop recording player data
- /rec play - play endless playback
- /rec delete - delete files
Download
Pastebin
Download (Windows only) (Update 1)
None of this would be possible without JaTochNietDan's Execute plugin.
- Download npc_rec.zip.
- Extract npc_rec.pwn into filterscripts directory.
- Open server.cfg and type npc_rec next to filterscripts.
- Don't forget to download execute plugin.
FAQ
Why isn't the NPC connecting to the server?
- make sure you have the execute plugin in the plugins directory.
- make sure you have "plugins exec" line in server.cfg.
- make sure "maxnpc" in server.cfg is set to 32 for example.
- make sure none of the scripts have return 0 under OnPlayerSpawn.
Changelog:
02/08/11:Fixed a minor bug with vehicle spawning
Improved performance
If any bugs occur, report them here or via PM. Also make new suggestions.
Re: Record n Play (directly in-game) -
Desertsoulz - 25.07.2011
Useful!
Re: Record n Play (directly in-game) -
TheArcher - 25.07.2011
Yea pretty nice.
Re: Record n Play (directly in-game) -
tuuler - 25.07.2011
Nice.
Re: Record n Play (directly in-game) -
Joey_euber - 25.07.2011
can I get the .amx for this?
Re: Record n Play (directly in-game) -
Snipa - 25.07.2011
Quote:
Originally Posted by Joey_euber
can I get the .amx for this?
|
Compile it to get the .amx
Re: Record n Play (directly in-game) -
Baboon - 25.07.2011
Gonna try it tomorrow!
Btw is it possible to cut a record into half or 60% for example fro the script?
Re: Record n Play (directly in-game) -
Joey_euber - 25.07.2011
Quote:
Originally Posted by Snipa
Compile it to get the .amx
|
I can't compile thats why I am asking for one
Re: Record n Play (directly in-game) -
Rapgangsta - 26.07.2011
@joey put
#include <exec>
at the top of the script
for me work fine,
but i have found a bug:
when i start a bot recorded with a car it spawns 2 car
and i have two suggestion:
-when a player go in a vehicle the recording mustnt stop but continue (same when player exit vehicle)
-an options to end the loop of the bot (Simple Kick(botid) ) /rec end [recid] then
"/rec stop" for terminate a recording
"/rec end" for terminate a bot loop
Good Job 10/10
Re: Record n Play (directly in-game) -
TheArcher - 26.07.2011
I found this mistake.
exec is not a function in the library. Maybe you wanted to define it as printf