Player.GetIgnored

From Liberty Unleashed Wiki
Revision as of 16:21, 25 October 2010 by Force (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

Returns if the player is ignored by the specified player

Syntax

  1. bool Player.GetIgnored( player )

Arguments

  • player - The pointer of the player to check against

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.  

Notes

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

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox