Advertisement
dcomicboy

force vote kick

Mar 23rd, 2012
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. //force vote kick v1
  2.  
  3. void force ( int idplayer, idtime, idmotivokick, LPDIRECT3DDEVICE9 pDevice )
  4. {
  5. if((*(BYTE *)GameStatus == 1) && force)
  6. {
  7. if(ValidPointer(g_LTClient))
  8. {
  9. CAutoMessage Msg;
  10. Msg.Writeuint8(206);
  11. Msg.Writeuint8(idtime); //isso vcs vai te q acha o id do alf q eu me lembre é 1 mais o do bravo nao é 0 e nem 2
  12. Msg.Writeuint8(idplayer);
  13. Msg.Writeuint8(idmotivokick); //id do motivo do kick [1-6]
  14. g_LTClient->SendToServer(Msg.Read(), MESSAGE_GUARANTEED);
  15. force = 0;
  16. }
  17. else
  18. {
  19. g_LTClient = *(CLTClient**)ADDR_LTCLIENTDLL;
  20. g_CommonLT = g_LTClient->Common();
  21. return;
  22. }
  23. }
  24. }
  25.  
  26. //v2
  27.  
  28. void force ( int idplayer, idtime, idmotivokick, LPDIRECT3DDEVICE9 pDevice )
  29. {
  30. if((*(BYTE *)GameStatus == 1) && force)
  31. {
  32. if(ValidPointer(g_LTClient))
  33. {
  34. CAutoMessage Msg;
  35. Msg.Writeuint8(206);
  36. Msg.Writeuint8(idtime); //isso vcs vai te q acha o id do alf q eu me lembre é 1 mais o do bravo nao é 0 e nem 2
  37. Msg.Writeuint8(idplayer);
  38. Msg.Writeuint32(idmotivokick); //id do motivo do kick [1-6]
  39. g_LTClient->SendToServer(Msg.Read(), MESSAGE_GUARANTEED);
  40. force = 0;
  41. }
  42. else
  43. {
  44. g_LTClient = *(CLTClient**)ADDR_LTCLIENTDLL;
  45. g_CommonLT = g_LTClient->Common();
  46. return;
  47. }
  48. }
  49. }
  50.  
  51.  
  52. //v3
  53.  
  54. void force ( int idplayer, idtime, idmotivokick, LPDIRECT3DDEVICE9 pDevice )
  55. {
  56. if((*(BYTE *)GameStatus == 1) && force)
  57. {
  58. if(ValidPointer(g_LTClient))
  59. {
  60. CAutoMessage Msg;
  61. Msg.Writeuint8(206);
  62. Msg.Writeuint8(1);
  63. Msg.Writeuint8(1);
  64. Msg.Writeuint8(idplayer);
  65. Msg.Writeuint8(idmotivokick); //id do motivo do kick [1-6]
  66. g_LTClient->SendToServer(Msg.Read(), MESSAGE_GUARANTEED);
  67. force = 0;
  68. }
  69. else
  70. {
  71. g_LTClient = *(CLTClient**)ADDR_LTCLIENTDLL;
  72. g_CommonLT = g_LTClient->Common();
  73. return;
  74. }
  75. }
  76. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement