UnregisterRemoteFunc

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This function unregister a remote function previus registered by RegisterRemoteFunc

Syntax

  1. UnregisterRemoteFunc ( string Function )

Arguments

  • Function - The function to unregister

Example

Unregister the function 'HelloWorld!' previus registered by RegisterRemoteFunc typing /unregister

  1.  
  2. function onPlayerCommand ( pPlayer, szCommand, szParams ) {
  3.  
  4. switch ( szCommand ) {
  5.  
  6. case "unregister": {
  7.  
  8. UnregisterRemoteFunc ( "HelloWorld!" );
  9.  
  10. return;
  11. }
  12. }
  13. }
  14.  

Notes

The function UnregisterRemoteFunc and call onPlayerCommand were used in in this example. More info about them in corresponding pages.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox