Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //force vote kick v1
- void force ( int idplayer, idtime, idmotivokick, LPDIRECT3DDEVICE9 pDevice )
- {
- if((*(BYTE *)GameStatus == 1) && force)
- {
- if(ValidPointer(g_LTClient))
- {
- CAutoMessage Msg;
- Msg.Writeuint8(206);
- 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
- Msg.Writeuint8(idplayer);
- Msg.Writeuint8(idmotivokick); //id do motivo do kick [1-6]
- g_LTClient->SendToServer(Msg.Read(), MESSAGE_GUARANTEED);
- force = 0;
- }
- else
- {
- g_LTClient = *(CLTClient**)ADDR_LTCLIENTDLL;
- g_CommonLT = g_LTClient->Common();
- return;
- }
- }
- }
- //v2
- void force ( int idplayer, idtime, idmotivokick, LPDIRECT3DDEVICE9 pDevice )
- {
- if((*(BYTE *)GameStatus == 1) && force)
- {
- if(ValidPointer(g_LTClient))
- {
- CAutoMessage Msg;
- Msg.Writeuint8(206);
- 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
- Msg.Writeuint8(idplayer);
- Msg.Writeuint32(idmotivokick); //id do motivo do kick [1-6]
- g_LTClient->SendToServer(Msg.Read(), MESSAGE_GUARANTEED);
- force = 0;
- }
- else
- {
- g_LTClient = *(CLTClient**)ADDR_LTCLIENTDLL;
- g_CommonLT = g_LTClient->Common();
- return;
- }
- }
- }
- //v3
- void force ( int idplayer, idtime, idmotivokick, LPDIRECT3DDEVICE9 pDevice )
- {
- if((*(BYTE *)GameStatus == 1) && force)
- {
- if(ValidPointer(g_LTClient))
- {
- CAutoMessage Msg;
- Msg.Writeuint8(206);
- Msg.Writeuint8(1);
- Msg.Writeuint8(1);
- Msg.Writeuint8(idplayer);
- Msg.Writeuint8(idmotivokick); //id do motivo do kick [1-6]
- g_LTClient->SendToServer(Msg.Read(), MESSAGE_GUARANTEED);
- force = 0;
- }
- else
- {
- g_LTClient = *(CLTClient**)ADDR_LTCLIENTDLL;
- g_CommonLT = g_LTClient->Common();
- return;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement