SA-MP Forums Archive
[HELP]Searching for a Bot Recorder - 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: [HELP]Searching for a Bot Recorder (/showthread.php?tid=167474)



[HELP]Searching for a Bot Recorder - MiniDennis - 12.08.2010

I'm searching all the time for a Bot Recorder but i can't find it.
PLS help me to find a bot recorder.
Thanks

(Sorry for my bad english)


Re: [HELP]Searching for a Bot Recorder - akis_tze - 12.08.2010

Код:
//-------------------------------------------------
//
//  Recording player data for NPC playback
//  Kye 2009
//
//-------------------------------------------------

#pragma tabsize 0

#include <a_samp>
#include <core>
#include <float>

#include "../include/gl_common.inc"

//-------------------------------------------------

public OnPlayerCommandText(playerid, cmdtext[])
{
	new cmd[256];
	new idx;
	cmd = strtok(cmdtext, idx);
	
	if(!IsPlayerAdmin(playerid)) return 0; // this is an admin only script
	
	// Start recording vehicle data (/vrecord recording_name[])
	// Find the recording_name[] file in /scriptfiles/
 	if(strcmp(cmd, "/vrecord", true) == 0) {
	    new tmp[512];
      	tmp = strtok(cmdtext, idx);
		if(!strlen(tmp)) {
			SendClientMessage(playerid,0xFF0000FF,"Usage: /vrecord {name}");
			return 1;
		}
		if(!IsPlayerInAnyVehicle(playerid)) {
            SendClientMessage(playerid,0xFF0000FF,"Recording: Get in a vehicle.");
			return 1;
		}
		StartRecordingPlayerData(playerid,PLAYER_RECORDING_TYPE_DRIVER,tmp);
		SendClientMessage(playerid,0xFF0000FF,"Recording: started.");
		return 1;
	}

	// Start recording onfoot data (/ofrecord recording_name[])
	// Find the recording_name[] file in /scriptfiles/
 	if(strcmp(cmd, "/ofrecord", true) == 0) {
	    new tmp[512];
      	tmp = strtok(cmdtext, idx);
		if(!strlen(tmp)) {
			SendClientMessage(playerid,0xFF0000FF,"Usage: /ofrecord {name}");
			return 1;
		}
 		if(IsPlayerInAnyVehicle(playerid)) {
            SendClientMessage(playerid,0xFF0000FF,"Recording: Leave the vehicle and reuse the command.");
			return 1;
		}
		StartRecordingPlayerData(playerid,PLAYER_RECORDING_TYPE_ONFOOT,tmp);
		SendClientMessage(playerid,0xFF0000FF,"Recording: started.");
		return 1;
	}
	
	// Stop recording any data
	if(strcmp(cmd, "/stoprecord", true) == 0) {
		StopRecordingPlayerData(playerid);
		SendClientMessage(playerid,0xFF0000FF,"Recording: stopped.");
		return 1;
	}

	return 0;
}

//-------------------------------------------------
// EOF
Is that are you looking for?


Re: [HELP]Searching for a Bot Recorder - MiniDennis - 12.08.2010

fatal error 100: cannot read from file: "../include/gl_common.inc"

I have SA-MP 3.0B


Re: [HELP]Searching for a Bot Recorder - Jakku - 12.08.2010

Add "gl_common.inc" to your server -> includes- folder


Re: [HELP]Searching for a Bot Recorder - MiniDennis - 12.08.2010

and what is /vrecord and /ofrecord ?


Re: [HELP]Searching for a Bot Recorder - Jakku - 12.08.2010

/ofrecord = Start recording on foot
/vrecord = Start recording in a vehicle

/stoprecord = Stop recording


Re: [HELP]Searching for a Bot Recorder - MiniDennis - 12.08.2010

I have recorded a bot and placed the .rec in npcmode's and now i don't see the bot ingame...


Re: [HELP]Searching for a Bot Recorder - akis_tze - 12.08.2010

http://forum.sa-mp.com/showthread.ph...light=creating