funcs.txt 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*-------------------------------------------------------------------------*//**
  2. * <param name="p">Script.</param>
  3. * <remarks>
  4. * Set the current provider to use for all commands being added. Basically
  5. * allows us to have the same command name in different scripts and have them
  6. * do different things, with different players targetting different ones.
  7. * </remarks>
  8. *//*------------------------------------------------------------------------**/
  9. foreign void:Command_SetProvider(p);
  10. global void:Command_SetProvider(p)
  11. {
  12. }
  13. /*-------------------------------------------------------------------------*//**
  14. *//*------------------------------------------------------------------------**/
  15. foreign void:Command_SetDeniedDisplay(bool:set);
  16. global void:Command_SetDeniedDisplay(bool:set)
  17. {
  18. if (set)
  19. YSI_g_sCommandFlags |= e_COMMAND_FLAGS_HIDDEN;
  20. else
  21. YSI_g_sCommandFlags &= ~e_COMMAND_FLAGS_HIDDEN;
  22. }
  23. /*-------------------------------------------------------------------------*//**
  24. *//*------------------------------------------------------------------------**/
  25. foreign bool:Command_GetDeniedDisplay();
  26. global bool:Command_GetDeniedDisplay()
  27. {
  28. return YSI_g_sCommandFlags & e_COMMAND_FLAGS_HIDDEN;
  29. }