[HELP]Searching for a Bot Recorder
#1

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)
Reply
#2

Код:
//-------------------------------------------------
//
//  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?
Reply
#3

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

I have SA-MP 3.0B
Reply
#4

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

and what is /vrecord and /ofrecord ?
Reply
#6

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

/stoprecord = Stop recording
Reply
#7

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)