You are viewing our Forum Archives. To view or take place in current topics click here.
MW2 TU8 All Client Coding Issue
Posted:

MW2 TU8 All Client Coding IssuePosted:

xROCKxISxAWESOMEx
  • Junior Member
Status: Offline
Joined: Jun 15, 201212Year Member
Posts: 93
Reputation Power: 3
Status: Offline
Joined: Jun 15, 201212Year Member
Posts: 93
Reputation Power: 3
So, for noclip for example, the code is
{
if(Noclip[i] == false)
{
Noclip[i] = true;
*(int *)(getPlayerState(i) + 0x3420) = 0x01;
SV(i, 1,"f \"^3Noclip:^2On\"");
break;
}
else
{
Noclip[i] = false;
*(int *)(PlayerState(i) + 0x3420) = 0x04;
SV(i, 1, "f \"No Clip OFF\"");
break;
}




But where it says PlayerState and getPlayerState, I am getting an error saying it's undefined. So how do I define PlayerState?
#2. Posted:
Hugh
  • Prospect
Status: Offline
Joined: Apr 13, 201212Year Member
Posts: 628
Reputation Power: 36
Status: Offline
Joined: Apr 13, 201212Year Member
Posts: 628
Reputation Power: 36
int PlayerState(int ClientIndex)
{
return(0x830CBF80 + (ClientIndex * 0x3700));

}

Add as a int
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.