Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. function onScriptLoad()
  2. {
  3.     BindKey( 'B', BINDTYPE_DOWN, "StartSpyDisguise" );
  4.     ...
  5.  
  6.     return 1;
  7. }
  8.  
  9. function StartSpyDisguise()
  10. {
  11.     CallServerFunc( "TF2/main.nut", "GetClosestPlr", pPlayer );
  12. }
  13.  
  14. function SpyDisguise( pClosest )
  15. {
  16.     ...
  17. }
  18.  
  19. /* Server func */
  20.  
  21. function GetClosestPlr( pPlayer )
  22. {
  23.     local pClosest = GetClosestPlayer( pPlayer )
  24.     if ( pClosest ) CallClientFunc( pPlayer, "script.nut", "SpyDisguise", pClosest );
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement