Untitled
unknown
plain_text
2 years ago
633 B
4
Indexable
else if (actual_command.substr(0, 6) == "/team ")
{
int val = 0;
val = atoi(str.substr(6, cch.length() - 6 - 1).c_str());
PlayerMoving data;
//data.packetType = 0x14;
data.packetType = 0x1B;
//data.characterState = 0x924; // animation
data.characterState = 0x0; // animation
data.x = 0;
data.y = 0;
data.punchX = val;
data.punchY = 0;
data.XSpeed = 0;
data.YSpeed = 0;
data.netID = ((PlayerInfo*)(peer->data))->netID;
data.plantingTree = 0;
SendPacketRaw(4, packPlayerMoving(&data), 56, 0, peer, ENET_PACKET_FLAG_RELIABLE);
} Editor is loading...