i need Player Disappear header and Player[0] (self) move and move stop header ty.
And My Player Appear Function PID, name, Coordinates , GuildName, Guild Tag :)
And My Player Appear Function PID, name, Coordinates , GuildName, Guild Tag :)
PHP Code:
void PlayerAppear(char *szBuffer, int iLength){
DWORD PlayerID = *(DWORD*)&szBuffer[3];
int NameLen = 0;
char PlayerName[255] = {0};
for(int position = 7;position<=iLength;position++){
if(szBuffer[position]!=0x00 ){
PlayerName[NameLen]= szBuffer[position];
NameLen++;
}else{
break;
}
}
DWORD pX= *(DWORD*)&szBuffer[3+4+NameLen+2];// 3 Byte Header , 4 Byte PlayerID , 2 byte Offset
DWORD pY= *(DWORD*)&szBuffer[3+4+NameLen+2+4];
DWORD pZ= *(DWORD*)&szBuffer[3+4+NameLen+2+4+4];
//Guild Tag Name
int GuildTagLen = 0;
char GuildTagName[14] = {0};
for(int position = NameLen+55;position<=iLength;position++){
if(szBuffer[position]!=0x00 ){
GuildTagName[GuildTagLen]= szBuffer[position];
GuildTagLen++;
}else{
break;
}
}
//Guild Name
int GuildLen = 0;
char GuildName[14] = {0};
for(int position = NameLen+55+GuildTagLen+1;position<=iLength;position++){
if(szBuffer[position]!=0x00 ){
GuildName[GuildLen]= szBuffer[position];
GuildLen++;
}else{
break;
}
}
cout << "Player ->[ " << PlayerName << " ] GuildTag : " << GuildTagName << " GuildName :" << GuildName<<" (x,y,z) <" << pX << "," << pY << "," << pZ << ">"<<endl;
}