Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onScriptLoad()
- {
- BindKey( 'B', BINDTYPE_DOWN, "StartSpyDisguise" );
- ...
- return 1;
- }
- function StartSpyDisguise()
- {
- CallServerFunc( "TF2/main.nut", "GetClosestPlr", pPlayer );
- }
- function SpyDisguise( pClosest )
- {
- ...
- }
- /* Server func */
- function GetClosestPlr( pPlayer )
- {
- local pClosest = GetClosestPlayer( pPlayer )
- if ( pClosest ) CallClientFunc( pPlayer, "script.nut", "SpyDisguise", pClosest );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement