Advertisement
Guest User

Untitled

a guest
Sep 29th, 2010
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #include maps\mp\_utility;
  2. #include common_scripts\utility;
  3.  
  4. giveHighlight( ref, value )
  5. {
  6. highlightCount = getClientMatchData( "highlightCount" );
  7. if ( highlightCount < 18 ) // must match MaxHighlights in clientmatchdata definition
  8. {
  9. setClientMatchData( "highlights", highlightCount, "award", ref );
  10. setClientMatchData( "highlights", highlightCount, "clientId", self.clientMatchDataId );
  11. setClientMatchData( "highlights", highlightCount, "value", value );
  12.  
  13. highlightCount++;
  14. setClientMatchData( "highlightCount", highlightCount );
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement