Untagged Release MapRecorder - objects stealer

Status
Not open for further replies.

brandonleeds

Active member
Joined
Oct 15, 2014
Messages
28
Reaction score
0
0x688 link said:
go ahead and add it the source is included.

It's to much of lack coding, that am not good at however, if anybody dose this would be very useful to me.

The source code i edited is below am not sure if correct or not however, it dose not work.

Can you at least give me a hint.
Code:
void CMapRecorder::CMDSave( PCHAR szCmd )
{
	SAMP::CChatWindow* pChatWindow = CCheat::Instance()->ChatWindow();

	if ( Instance()->m_mmObjects.size() == 0 )
	{
		pChatWindow->AddClientMessage( -0, "===================================" );
		pChatWindow->AddClientMessage( -1, " Warning: No objects were recorded." );
		pChatWindow->AddClientMessage( -0, "===================================" );
		return;
	}
	CMDStopRecording( "" );

	char szFileName[ MAX_PATH ] = { 0 };
	char szFile[ MAX_PATH ] = { 0 };
	char format = 0;

	int nParams = sscanf_s( szCmd, "%s %c", szFileName, sizeof( szFileName ), &format, sizeof( format ) );

	if ( nParams < 1 )
	{
		pChatWindow->AddClientMessage( -0, "===================================" );
		pChatWindow->AddClientMessage( -1, " Usage: /mrsave <filename> [format]" );
		pChatWindow->AddClientMessage( -0, "===================================" );
		return;
	}

	const char *szSAMPUserFilesPath = SAMP::Manager::GetPointer< char >( SAMP::MA_USERFILES_SAMP_PATH );
	strcat_s( szFile, szSAMPUserFilesPath );
	strcat_s( szFile, "\\" );
	strcat_s( szFile, szFileName );
	strcat_s( szFile, ".txt" );

	FILE *pFile;
	fopen_s( &pFile, szFile, "w" );

	if ( pFile == NULL )
	{
		pChatWindow->AddClientMessage( -0, "===================================" );
		pChatWindow->AddClientMessage( -1, " Error: Could not create file." );
		pChatWindow->AddClientMessage( -0, "===================================" );
		return;
	}

	for ( std::multimap< short, stObject >::iterator it = Instance()->m_mmObjects.begin(); it != Instance()->m_mmObjects.end(); ++it )
	{
		switch ( format )
		{
		case 'd':
			fprintf_s( pFile, "CreateDynamicObject(%hd, %f, %f, %f, %f, %f, %f);\n", it->first,
				it->second.x, it->second.y, it->second.z,
				it->second.rx, it->second.ry, it->second.rz );
			break;
		default:
			fprintf_s( pFile, "CreateObject(%hd, %f, %f, %f, %f, %f, %f);\n", it->first,
				it->second.x, it->second.y, it->second.z,
				it->second.rx, it->second.ry, it->second.rz );
				
		case `m`:
			fprintf_s(pFile, "SetObjectMaterial(%hd, %f, %f, %f, %f, %f, %f);\n", it->first,
				it->second.x, it->second.y, it->second.z,
				it->second.rx, it->second.ry, it->second.rz );
			break;
	

		};
	}
	fclose( pFile );
	Instance()->m_mmObjects.clear();
	pChatWindow->AddClientMessage( -0, "===================================" );
	pChatWindow->AddClientMessage( -1, " MapRecorder: objects saved!" );
	pChatWindow->AddClientMessage( -0, "===================================" );
}


Code:
 case `m`:
   fprintf_s(pFile, "SetObjectMaterial(%hd, %f, %f, %f, %f, %f, %f);\n", it->first,
    it->second.x, it->second.y, it->second.z,
    it->second.rx, it->second.ry, it->second.rz );
   break;
 

P3ti

Active member
Joined
Feb 15, 2014
Messages
66
Reaction score
3
Fonia5 Designs link said:
Code:
 case `m`:
   fprintf_s(pFile, "SetObjectMaterial(%hd, %f, %f, %f, %f, %f, %f);\n", it->first,
    it->second.x, it->second.y, it->second.z,
    it->second.rx, it->second.ry, it->second.rz );
   break;
:face_palm:
 

abeceda

New member
Joined
Mar 6, 2015
Messages
1
Reaction score
0
Hi, and thanks for this wonderful tool, I'm using it to store objects from servers which don't last long - so I can play on epic map even if server which used that maps is dead.
But, this only works on 0.3z and not in new 0.3.7 RC2 version.
As source code is released with this mod, I'll nicely request someone with enough knowledge to edit code/compile it and made compatible with 0.3.7 version.
Thanks in advance!
 

0x_

Wtf I'm not new....
Staff member
Administrator
Joined
Feb 18, 2013
Messages
1,123
Reaction score
174
Fonia5 Designs link said:
Face palm LOL! P3ti if you know what your doing at least do it.
He does enough for enough unthankful people (RakSAMP 0.3z) and the latest la pirula with damn russians copying it and removing every kind of credits (scumbags).

but we should not go too offtopic.

abeceda link said:
Hi, and thanks for this wonderful tool, I'm using it to store objects from servers which don't last long - so I can play on epic map even if server which used that maps is dead.
But, this only works on 0.3z and not in new 0.3.7 RC2 version.
As source code is released with this mod, I'll nicely request someone with enough knowledge to edit code/compile it and made compatible with 0.3.7 version.
Thanks in advance!
Wait for full release of 0.3.7...
 

FixmeH

Active member
Joined
Feb 27, 2014
Messages
33
Reaction score
0
tried to put it on a script and run it on the server but it doesnt work lol
 

Crayder

Active member
Joined
Mar 6, 2014
Messages
148
Reaction score
0
Somebody should add autosave, or live-save. I always forget to save damn it.
 

ManDown

New member
Joined
Mar 21, 2015
Messages
2
Reaction score
0
Hey!

Any possible way to learn and change .asi working on SAMP 0.3.7 RC2 or above? I know its testing version of samp but I hope to someone who skilled can translate to their version. IF someone teach how translate when I am glad to learn this.

Thank you!
 

fatlir1x

Member
Joined
Oct 2, 2014
Messages
6
Reaction score
0
omg wtf i getting crashed when i join a server  :bawww: :bawww: :bawww: help pls  :eek:key:
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,721
Solutions
1
Reaction score
111
good luck with that
 

Lelz

Active member
Joined
Jan 5, 2015
Messages
76
Reaction score
1
If you ever plan on updating this, it would be nice if it detected RemoveBuildingForPlayer as well as vehicles. Still a great tool though.  :urtheman:
 

Garfield

Active member
Joined
Sep 15, 2013
Messages
88
Reaction score
0
DedeRaditya link said:
How to use?  :me_gusta:

/mrhelp - For Help
/mrstart - To Start Map Recording
/mrstop - To Stop Map Recording
/mrsave - [File Name] [D] <~ That "D" u should put it always  :youdontsay:
 

Lelz

Active member
Joined
Jan 5, 2015
Messages
76
Reaction score
1
Garfield link said:
/mrhelp - For Help
/mrstart - To Start Map Recording
/mrstop - To Stop Map Recording
/mrsave - [File Name] [D] <~ That "D" u should put it always  :youdontsay:

That "D" is only if you want dynamic objects.
 

Nikita52

New member
Joined
Dec 31, 2014
Messages
2
Reaction score
0
SA-MP 0.3.7 is released!
Translate Map Recorder to SA:MP 0.3.7,please!
 

HooThaFuck

Active member
Joined
Apr 18, 2015
Messages
51
Reaction score
0
You mother fucks already begging for a 0.3.7 version, WAIT A BIT! IT WAS ONLY RELEASED TODAY, PERIOD.
 
Status
Not open for further replies.
Top