Record and play NPC's 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Record and play NPC's in-game. (
/showthread.php?tid=140856)
Record and play NPC's in-game. -
rbN. - 10.04.2010
Hi guys..
How can you create bots in-game? Like, you record yourself, and then you do /play (slot), and you get a bot that is doing that record. (my english sucks)
So, like you can record yourself, a bot is replaying, and then you can see it
.
How can you make that ;o?
Re: Record and play NPC's in-game. -
Gamer_Z - 10.04.2010
you have to install a plugin onto your server that can move files, move to the correct folde and run the easy few lines that connect and run a npc...
but anyways i think it won't work because you need to compile the script in npc modes, however maybe you can compile a 'dynamic' script where you can do /play (slot) (type) etc..
Re: Record and play NPC's in-game. -
rbN. - 11.04.2010
Quote:
Originally Posted by gamer_Z
you have to install a plugin onto your server that can move files, move to the correct folde and run the easy few lines that connect and run a npc...
but anyways i think it won't work because you need to compile the script in npc modes, however maybe you can compile a 'dynamic' script where you can do /play (slot) (type) etc..
|
i dunno lol. Thats why I'm asking ;o
Re: Record and play NPC's in-game. -
Gamer_Z - 11.04.2010
pawn Код:
#include <a_npc>
#include <strtok>
public OnPlayerText(playerid, text[]){
new stext[256],idx;
stext = strtok(text,idx);
if(!strcmp(stext,"RUN_BOT",false)){
new tmp[256],name[256];
tmp = strtok(text,idx);
name = strtok(text,idx);
if(strlen(tmp) && strlen(name)){
StartRecordingPlayback(strval(tmp),name);
}
return 0;
}
return 1;
}
now you just only have to make a command to move files with *.rec to npcmodes>recordings ... ;p i dunnop if it will work lol
btw u need a FILE PLUGIN
Re: Record and play NPC's in-game. -
¤Adas¤ - 11.04.2010
Quote:
Originally Posted by gamer_Z
btw u need a FILE PLUGIN
|
Yes. Or ask Kye.
Re: Record and play NPC's in-game. -
Babul - 11.04.2010
you can create a hardlink from "scriptfiles/" to "npcmodes/recordings" directory, then a simple command will be able to save a recording with the players' name as filename.
Re: Record and play NPC's in-game. -
rbN. - 16.08.2010
I know I'm bumping a very old topic atm.. I'm still very interested in what I just said on first post..
Well, does somebody got an idea to make this?