I have a chat command in which I would like to check if the argument supplied is a valid player [B]OR[/B] if the argument is a SteamID. I'm pretty sure I can check if the player is valid using IsValid(args[1]), but would this also count as detecting if the argument is a player? As for the SteamID I think using [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/string/StartWith]string.StartWith[/url] would work.
isPlayer will check if its a player.
[QUOTE=whitestar;50154508]isPlayer will check if its a player.[/QUOTE]
Thanks, I feel really stupid now... :speechless:
Sorry, you need to Log In to post a reply to this thread.