Advertisement
dcomicboy

example from nolf source

Mar 20th, 2012
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. if (hClientTarget)
  2. {
  3. uint32 nTargetID = g_pLTServer->GetClientID (hClientTarget);
  4. uint32 nPlayerID = g_pLTServer->GetClientID (hClientPlayer);
  5.  
  6. CAutoMessage cMsg;
  7. cMsg.Writeuint8(MID_PLAYER_SCORED);
  8. cMsg.Writebool(false);
  9. cMsg.Writeuint32(nTargetID);
  10. cMsg.Writeuint32(nPlayerID);
  11. g_pLTServer->SendToClient(cMsg.Read(), LTNULL, MESSAGE_GUARANTEED);
  12. }
  13.  
  14. if( g_pGameServerShell )
  15. {
  16. g_pGameServerShell->SetUpdateGameServ();
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement