seroff

cmd_player.inc

Dec 27th, 2015
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. /* AMX Mod X functions
  2. *
  3. * by the AMX Mod X Development Team
  4. * originally developed by OLO
  5. *
  6. * This file is provided as is (no warranties).
  7. */
  8.  
  9. stock console_client_cmd(const id, const szCmd[])
  10. {
  11. message_begin(MSG_ONE, SVC_DIRECTOR, _, id)
  12. write_byte(strlen(szCmd) + 2)// command length in bytes
  13. write_byte(10)
  14. write_string(szCmd) // banner file
  15. message_end()
  16. }
  17.  
  18. /* Sends command to console.
  19. native console_client_cmd(id,const cmd[],any:...);
  20. */
Add Comment
Please, Sign In to add comment