Guest User

Untitled

a guest
Nov 19th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. public class loginalert : Interfaces.ipacket
  2. {
  3. byte[] buffer;
  4. public loginalert(uint data)
  5. {
  6. buffer = new byte[264 + 8];
  7. writer.writeuint16(264, 0, buffer);
  8. writer.writeuint16(2078, 2, buffer);
  9. writer.writeuint32(data, 4, buffer);
  10. }
  11. public void deserialize(byte[] buffer)
  12. {
  13. this.buffer = buffer;
  14. }
  15. public byte[] toarray()
  16. {
  17. return buffer;
  18. }
  19. public void send(client.gamestate client)
  20. {
  21. client.send(buffer);
  22. }
  23. }
Add Comment
Please, Sign In to add comment