Est IsOnly

From EventScripts Community Encyclopedia
Syntax: est_IsOnly <variable> <test string> <test for>
Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Contents

Description

  • If test string only holds the specified letters from test for then return true

Parameters

  • variable - The variable to store the returned value in
    • 0 - false
    • 1 - true
  • test string - String
  • test for - String

Example


event player_activate
{
  es_xset nameallowed 0
  es est_IsOnly nameallowed event_var(es_username) "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@!#$%^&*()-=+[{}]\|;:<,.>/?"
  if(server_var(nameallowed) == 0) then kickid event_var(userid) no Unicode / ASCII names
}

Notes

  • None

See Also

blog comments powered by Disqus