Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if( CLIENT ) then
- function DoFind( target )
- local match
- target = string.lower( target )
- for k, v in ipairs( player.GetAll() ) do
- if( string.find( string.lower( v:Nick() ), target ) ||
- string.find( string.lower( v:Name() ), target ||
- string.find( string.lower( v:SteamID() ), target ) ) ) then
- if( match ) then
- print( "Multiple targets found." )
- return false
- end
- match = v
- end
- end
- return print( match )
- end
- end
Add Comment
Please, Sign In to add comment