Squirrel/Server/Functions/Players/GetIgnored

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Notes)
 
Line 36: Line 36:
 
=== Notes ===
 
=== Notes ===
  
The function [[Squirrel/Server/Functions/Messages/MessagePlayer|MessagePlayer]] [[Squirrel/Server/Functions/Players/FindPlayer|FindPlayer]] and and event [[Squirrel/Server/Events/Player/onPlayerCommand|onPlayerCommand]] were used in this example. More info about them in the corresponding pages.
+
The function [[Squirrel/Server/Functions/Messages/MessagePlayer|MessagePlayer]] and [[Squirrel/Server/Functions/Players/FindPlayer|FindPlayer]] and event [[Squirrel/Server/Events/Player/onPlayerCommand|onPlayerCommand]] were used in this example. More info about them in the corresponding pages.
  
 
== Related Functions ==
 
== Related Functions ==
  
 
{{Squirrel/Server/Functions/Players}}
 
{{Squirrel/Server/Functions/Players}}

Latest revision as of 16:21, 25 October 2010

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

Returns if the player is ignored by the specified player

[edit] Syntax

  1. bool Player.GetIgnored( player )

[edit] Arguments

  • player - The pointer of the player to check against

[edit] Example

This will check if the player has been ignored by Bob when they type '/ignored'.

  1.  
  2. function onPlayerCommand( pPlayer, szCommand, szText )
  3. {
  4. if ( szCommand == "ignored" )
  5. {
  6. local pTarget = FindPlayer( "Bob" );
  7. if ( pTarget )
  8. {
  9. local bIgnored = pPlayer.GetIgnored( pTarget );
  10. MessagePlayer( "Bob's ignore status for you is set to - " + bIgnored, pPlayer );
  11. }
  12. else MessagePlayer( "No player with that name found!", pPlayer );
  13. }
  14. return 1;
  15. }
  16.  
  17.  

[edit] Notes

The function MessagePlayer and FindPlayer and event onPlayerCommand were used in this example. More info about them in the corresponding pages.

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox