NPC Playback - 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: NPC Playback (
/showthread.php?tid=275149)
NPC Playback -
iPLEOMAX - 08.08.2011
EDIT:
pawn Код:
public OnNPCSpawn()
{
if(fexist("npc.im"))
{
new File:npc = fopen("npc.im", io_read);
fread(npc, npcread); fclose(npc);
} else print("WARNING: Unabled to locate any NPC.IM file.");
}
I don't have any npc.im file. But i don't get the warning?
It's in an NPC script.
Re: NPC Playback -
MadeMan - 08.08.2011
You can make a cmd that connects an NPC and another cmd that sets the .rec file to play.
Re: NPC Playback -
iPLEOMAX - 08.08.2011
Quote:
Originally Posted by MadeMan
You can make a cmd that connects an NPC and another cmd that sets the .rec file to play.
|
But I can't add a_npc include & use StartRecordingPlayback(); in normal filterscripts.. :/
Re: NPC Playback -
MadeMan - 08.08.2011
You still have to make the NPC script.
Re: NPC Playback -
iPLEOMAX - 08.08.2011
Quote:
Originally Posted by MadeMan
You still have to make the NPC script.
|
Yep, that's the problem.. I'll think of alternative methods.
I'll try to create a simple app which will convert the things for me in realtime.
Re: NPC Playback -
MadeMan - 08.08.2011
I mean you can use 1 NPC script for any recording.
Re: NPC Playback -
iPLEOMAX - 08.08.2011
Quote:
Originally Posted by MadeMan
I mean you can use 1 NPC script for any recording.
|
Ok that probelm seems to be solved. Now I have another problem:
Edited above.
Re: NPC Playback -
MadeMan - 08.08.2011
Use SendClientMessage in a cmd in GM/FS to send the data to the NPC and then use OnClientMessage in NPC script for the playback.