Advertisement
Guest User

[ReUnion] Get User Protocol

a guest
Jul 22nd, 2017
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.32 KB | None | 0 0
  1. stock get_user_protocol(id)
  2. {
  3.     // Get the pointer to our cvar
  4.     new pCvarProtocol = get_cvar_pointer("dp_r_protocol")
  5.  
  6.     // Let Reunion set players right protocol
  7.     server_cmd("dp_clientinfo %d", id)
  8.     server_exec()
  9.    
  10.     // Get the protocol
  11.     new iProtocol = get_pcvar_num(pCvarProtocol)
  12.    
  13.     // Return it
  14.     return iProtocol;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement