[REQ] Friendlist / Adminchecker

Status
Not open for further replies.

noknok12

Active member
Joined
Mar 14, 2014
Messages
38
Reaction score
0
I was wondering if it was possible to change the color of certain names?
Im playing on the server NG-DM, and im getting tired of DM'ing servermods! :D
If it somehow was possible to change the color of their names so i know who NOT to DM.
I have been trying to make a cleo script and even with c++, but i have no idea of what iam doing, and i would really appreciate some help.

I found this cleo, but when i try to decompile it with Sanny Builder, it gives me an error.
And if i try to use the command "/fadd (id)" in game, it says "Syntax Error" and crashes.

I really hope somebody is able to help with this.

In advance, thanks alot!  :trollface:
 

Attachments

  • FriendList.cs
    1.1 KB · Views: 51

democrazy

Active member
Joined
Aug 4, 2014
Messages
65
Reaction score
0
I already had an idea for adminchecker maybe I will look into it..
when samp draws the nametag it is possible to change the name string/color by using code injection  :iknowwhatyoudid:
 

noknok12

Active member
Joined
Mar 14, 2014
Messages
38
Reaction score
0
democrazy link said:
I already had an idea for adminchecker maybe I will look into it..
when samp draws the nametag it is possible to change the name string/color by using code injection  :iknowwhatyoudid:

That would make me the happiest man on earth without a doubt  :eek:h_stop_it_u:
 

noknok12

Active member
Joined
Mar 14, 2014
Messages
38
Reaction score
0
I searched for a string and got this static adress by using cheat engine.

045DED88  ////    samp.dll+20ED88

Now im just confused.. What the fuck should i do with it? :eek:


Here's the rest of the information cheat engine gave me.

EAX=0028F844
EBX=0DEB9324
ECX=0028FA40
EDX=045DED88
ESI=0028F804
EDI=0028FA40
EBP=0028F850
ESP=0028F7B0
EIP=04488B88

Probable base pointer =045DED88

04488B82 - js 04488B8F
04488B84 - mov edx,[ecx]
04488B86 - mov [edx],al
04488B88 - inc [ecx]
04488B8A - movzx eax,al

I would really appreciate some help  :computer_guy:
 

Fu$10N

Expert
Joined
Mar 5, 2014
Messages
1,101
Reaction score
9
Since i`m not an cleo scripter, I think you can use h3x project in order to see your friends and the admins. I have a friendlist and admin checker in my cleo folder, but I`m not giving it though.

H3X it`s better for you, you just putt all files in your samp folder and it has a config file with admins and friends.

It`s :fuck_you: fantastic.
 

noknok12

Active member
Joined
Mar 14, 2014
Messages
38
Reaction score
0
dariusradu link said:
Since i`m not an cleo scripter, I think you can use h3x project in order to see your friends and the admins. I have a friendlist and admin checker in my cleo folder, but I`m not giving it though.

H3X it`s better for you, you just putt all files in your samp folder and it has a config file with admins and friends.

It`s :fuck_you: fantastic.

Since im not a fan of "S0beit" or any of the "wannabe´s". I dont need 90% of them.
Thats why i just want this simple function.  :imoverit:
 

democrazy

Active member
Joined
Aug 4, 2014
Messages
65
Reaction score
0
Well...
I looked into it a little bit, but im noob at this and too lazy so i just give the code
Maybe someone with skillz will make this a proper project


This will rename all nametags which begin with 'a' or 'A' and color it in red
eat my shitty codez:
Code:
#define WIN32_LEAN_AND_MEAN

#include <Windows.h>
#include "detours.h"


DWORD h_samp=0;
DWORD back_foo=0;


void WriteMem(DWORD dwOffset, DWORD dwValue, int len)
{
	unsigned long Protection;
	VirtualProtect((void*)dwOffset, 1, PAGE_READWRITE, &Protection);
	memcpy((void*)dwOffset, (const void*)dwValue, len);
	VirtualProtect((void*)dwOffset, 1, Protection, 0);
}


__declspec ( naked ) int foo() {
    __asm pushad
    __asm push ebp
    __asm mov ebp, esp
    __asm sub esp, 40

	char *str;
	str=(char*)h_samp+0x20ED88;
	if(str[0]=='a' || str[0] == 'A')
	{
		strcpy(str,"{ff0000}Bitch");
	}

    __asm mov esp,ebp
    __asm pop ebp
    __asm popad
    __asm jmp back_foo
}


BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
{
	if(fdwReason==DLL_PROCESS_ATTACH)
	{
		DisableThreadLibraryCalls(hinstDLL);
		h_samp = (DWORD)GetModuleHandle(L"samp.dll");
		back_foo = (DWORD)DetourFunction((PBYTE)h_samp+0x7E730,(PBYTE)foo);
	}
	return TRUE;
}
 

noknok12

Active member
Joined
Mar 14, 2014
Messages
38
Reaction score
0
I would still appreciate some help with this  :computer_guy:
 
Status
Not open for further replies.
Top