Change guns

Posts 16–30 of 31 · Page 2 of 3
is patched,,
thanks for posting
lol... this is so old! read the date when i post it ...
Quote Originally Posted by poizn View Post
where i put the code?
NoWhere, if you dont know programming, dont try to use it...
m60 to rbk plzzzz i need help iam new here
which cf? ^^
...
it gave me an error for cf eu ... a week after i postet it :P
All Version...
just alter the given source and you're good to go

Where Imagination is more Important than Knowledge....
Quote Originally Posted by asianism View Post
All Version...
just alter the given source and you're good to go

Where Imagination is more Important than Knowledge....
#include <string>
#define WeaponMgr 0xAB7270
ChangeWep (17, 61); // M60 --> RPK
void ChangeWep (int From, int To)
{
DWORD myCSHELL = (DWORD)GetModuleHandle(Name_Cshell);//Get Handle of CrossFire!
DWORD myWCLASS = *(DWORD*)(myCSHELL+WeaponMgr);//10136889 68 34562F10 PUSH CShell.102F5634 ; ASCII "WeaponClass"
memcpy((DWORD*)(myWCLASS+From*4),(DWORD*)(myWCLASS +To*4),4);//copying ACR -> M16, 4 Bytes
}
ChangeWep (25, 333) // M16 --> M4A1 Stripes
void ChangeWep (int From, int To)
{
DWORD myCSHELL = (DWORD)GetModuleHandle(Name_Cshell);//Get Handle of CrossFire!
DWORD myWCLASS = *(DWORD*)(myCSHELL+WeaponMgr);//10136889 68 34562F10 PUSH CShell.102F5634 ; ASCII "WeaponClass"
memcpy((DWORD*)(myWCLASS+From*4),(DWORD*)(myWCLASS +To*4),4);//copying ACR -> M16, 4 Bytes
}
ChangeWep (5,576) // KNIFE --> Katana
void ChangeWep (int From, int To)
{
DWORD myCSHELL = (DWORD)GetModuleHandle(Name_Cshell);//Get Handle of CrossFire!
DWORD myWCLASS = *(DWORD*)(myCSHELL+WeaponMgr);//10136889 68 34562F10 PUSH CShell.102F5634 ; ASCII "WeaponClass"
memcpy((DWORD*)(myWCLASS+From*4),(DWORD*)(myWCLASS +To*4),4);//copying ACR -> M16, 4 Bytes
}
^
|
|
|
|
am i going to repeat another one if i like to make another gun change like this??
Quote Originally Posted by [NGZ*Euricka] View Post
#include <string>
#define WeaponMgr 0xAB7270
ChangeWep (17, 61); // M60 --> RPK
void ChangeWep (int From, int To)
{
DWORD myCSHELL = (DWORD)GetModuleHandle(Name_Cshell);//Get Handle of CrossFire!
DWORD myWCLASS = *(DWORD*)(myCSHELL+WeaponMgr);//10136889 68 34562F10 PUSH CShell.102F5634 ; ASCII "WeaponClass"
memcpy((DWORD*)(myWCLASS+From*4),(DWORD*)(myWCLASS +To*4),4);//copying ACR -> M16, 4 Bytes
}
ChangeWep (25, 333) // M16 --> M4A1 Stripes
void ChangeWep (int From, int To)
{
DWORD myCSHELL = (DWORD)GetModuleHandle(Name_Cshell);//Get Handle of CrossFire!
DWORD myWCLASS = *(DWORD*)(myCSHELL+WeaponMgr);//10136889 68 34562F10 PUSH CShell.102F5634 ; ASCII "WeaponClass"
memcpy((DWORD*)(myWCLASS+From*4),(DWORD*)(myWCLASS +To*4),4);//copying ACR -> M16, 4 Bytes
}
ChangeWep (5,576) // KNIFE --> Katana
void ChangeWep (int From, int To)
{
DWORD myCSHELL = (DWORD)GetModuleHandle(Name_Cshell);//Get Handle of CrossFire!
DWORD myWCLASS = *(DWORD*)(myCSHELL+WeaponMgr);//10136889 68 34562F10 PUSH CShell.102F5634 ; ASCII "WeaponClass"
memcpy((DWORD*)(myWCLASS+From*4),(DWORD*)(myWCLASS +To*4),4);//copying ACR -> M16, 4 Bytes
}
^
|
|
|
|
am i going to repeat another one if i like to make another gun change like this??
no you define the function once and then use the parameters later.

btw this is my function you should really give credits.

source:http://www.mpgh.net/forum/242-crossf...sfire-bas.html
Quote Originally Posted by dakr54 View Post
no you define the function once and then use the parameters later.

btw this is my function you should really give credits.

source:http://www.mpgh.net/forum/242-crossf...sfire-bas.html
sry :P found it in my base ^^ but its my function :P i made a function from ur source ^^
Quote Originally Posted by pceumel View Post
sry :P found it in my base ^^ but its my function :P i made a function from ur source ^^
It's ok man, I posted an exact function like this somewhere XD.

BTW I saw your base a long time ago, and it was coded pretty well .
#include <string>
#define WeaponMgr 0xAB7270
ChangeWep (17, 61); // M60 --> RPK
void ChangeWep (int From, int To)
{
DWORD myCSHELL = (DWORD)GetModuleHandle(Name_Cshell);//Get Handle of CrossFire!
DWORD myWCLASS = *(DWORD*)(myCSHELL+WeaponMgr);//10136889 68 34562F10 PUSH CShell.102F5634 ; ASCII "WeaponClass"
memcpy((DWORD*)(myWCLASS+From*4),(DWORD*)(myWCLASS +To*4),4);//copying ACR -> M16, 4 Bytes
}
ChangeWep (25, 333) // M16 --> M4A1 Stripes
void ChangeWep (int From, int To)
{
DWORD myCSHELL = (DWORD)GetModuleHandle(Name_Cshell);//Get Handle of CrossFire!
DWORD myWCLASS = *(DWORD*)(myCSHELL+WeaponMgr);//10136889 68 34562F10 PUSH CShell.102F5634 ; ASCII "WeaponClass"
memcpy((DWORD*)(myWCLASS+From*4),(DWORD*)(myWCLASS +To*4),4);//copying ACR -> M16, 4 Bytes
}
ChangeWep (5,576) // KNIFE --> Katana
void ChangeWep (int From, int To)
{
DWORD myCSHELL = (DWORD)GetModuleHandle(Name_Cshell);//Get Handle of CrossFire!
DWORD myWCLASS = *(DWORD*)(myCSHELL+WeaponMgr);//10136889 68 34562F10 PUSH CShell.102F5634 ; ASCII "WeaponClass"
memcpy((DWORD*)(myWCLASS+From*4),(DWORD*)(myWCLASS +To*4),4);//copying ACR -> M16, 4 Bytes
}
^
|
|
|
|
am i going to repeat another one if i like to make another gun change like this??
where must I put this code?
Thank You
isn't weapon hack gives client error after joining the room? because i tried it with old source 2 month ago on eu and it gave me client error. too lazy to check this source, seems like it do the same things.
Posts 16–30 of 31 · Page 2 of 3

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us