Manual:DIL Manual/isplayer()

From DikuMUD Wiki
< Manual:DIL Manual
Revision as of 13:08, 27 May 2020 by Nove (talk | contribs) (XML import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Function:  integer isplayer( pcname : string ) ;
  pcname
         the name of the player being checked
  Return
         Returns an integer TRUE if pcname is a player FALSE if not
This function is used to find out if a string you pass to it is a player or not.
This can be used and is used to find out if a player is truly a player that an
Administrator is deleting with out having that player on line.
Example:

---~---~---~---~---~---~---~---~---
if (not isplayer(arg))
        {
        sendtext (arg+" is not a character.&n",self);
        quit;
        }


---~---~---~---~---~---~---~---~---


---~---~---~---~---~---~---~---~---